[Mimedefang] Mimedefang 2.36 and how to drop a blocked attachment message - action_bounce?

David F. Skoll dfs at roaringpenguin.com
Mon Sep 29 21:04:01 EDT 2003


On Mon, 29 Sep 2003, Kenneth Porter wrote:

> Following this idea, how might one set up MD on an office gateway server to
> NOT let locally-generated (on the same host) bounces escape the premises, but
> pass bounces from other internal servers?

Sample:

sub filter_begin {
    if ($Sender eq "<>" and $RelayAddr eq "127.0.0.1") {
        my $recip;
	foreach $recip (@Recipients) {
            unless ($recip =~ /\@mydomain\.net>?$/) {
                delete_recipient($recip);
            }
        }
    }
}

--
David.



More information about the MIMEDefang mailing list