On Tue, 9 Mar 2004, Murat Isik wrote:

> I have a mail account on my redhat box to which I pop3 from various places
> and I need to know to whom I send mail. So is there a way to set the
> mimedefang to both bounce my mails back to me while also sending them out?

You mean cc you, not bounce them, right?

> sub filter_recipient {
>      my ($recipient, $sender, $ip, $hostname, $first, $helo,
>             $rcpt_mailer, $rcpt_host, $rcpt_addr) = @_;
>           if ($sender=~ /^<[EMAIL PROTECTED]>?$/i) {
>
>                    # do something
>           }

Will not work.  Here's what you need:

sub filter_begin {
        if ($Sender eq '<[EMAIL PROTECTED]>') {
                add_recipient('<[EMAIL PROTECTED]>');
        }
}

--
David.
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to