[Mimedefang] bounce and send at the same time?

David F. Skoll dfs at roaringpenguin.com
Tue Mar 9 08:27:13 EST 2004


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=~ /^<?murat\@murat\.com>?$/i) {
>
>                    # do something
>           }

Will not work.  Here's what you need:

sub filter_begin {
	if ($Sender eq '<murat at murat.com>') {
		add_recipient('<murat at murat.com>');
        }
}

--
David.



More information about the MIMEDefang mailing list