[Mimedefang] don't filter outbound

Barry Byrne barry.byrne at wbtsystems.com
Mon Aug 25 14:16:01 EDT 2003


You could define a function like the one below to check if the relay address
is local or if the user has been authenticated. The last condition is only
applicable if you use SMTP AUTH.

 - Barry

************************************

sub is_local_sender {
    if ($RelayAddr =~ /192\.168\.101\.\d+/
                || $RelayAddr =~ /127\.0\.0\.1/
                || exists($SendmailMacros{'auth_authen'})) {
       return 1;
    } else {
       return 0;
    }
}

************************************

--
Barry Byrne, IT Manager,
WBT Systems, Block 2, Harcourt Centre
Harcourt Street, Dublin 2, Ireland


> -----Original Message-----
> From: mimedefang-admin at lists.roaringpenguin.com
> [mailto:mimedefang-admin at lists.roaringpenguin.com]On Behalf Of Keith
> Dowell

> Subject: [Mimedefang] don't filter outbound
>
>
> is there a way to setup no filtering on outbound mail, only inbound??




More information about the MIMEDefang mailing list