Hi,

i use a filter_sender clause to skip any filtering if the mail is sent by authentified users from smtp_auth

ii mimedefang 2.69-1 e-mail filter program for sendmail ii sendmail 8.14.3-9.4 powerful, efficient, and scalable Mail Transport Agent


sub filter_sender {

        read_commands_file();
if( (defined($SendmailMacros{"auth_authen"})) && ($SendmailMacros{"auth_authen"} != 'monitoringemail') ){ md_syslog('warning',"smtp auth depuis $ip, $name, $sender, $MsgID");
                return ('ACCEPT_AND_NO_MORE_FILTERING', "ok");
        }elsif($RelayAddr eq "127.0.0.1") {
                md_syslog('warning', "local Email, $MsgID");
                return ('ACCEPT_AND_NO_MORE_FILTERING', "ok");
        }else{
md_syslog('warning',"pas de smtp auth depuis $ip, $name, $sender, $MsgID ");
                return('CONTINUE', "ok");
        }
}


my issue is when a user connect with smtp auth on port 587 and send a mail to a local user ( someone from the same domain) then it get filtered and never trigger the defined($SendmailMacros{"auth_authen"})) part. Is there any solution to that ? It seems that smtp auth is simply ignored for local delivery even if the log show a successful smtp-auth for this connection.

the filter_sender works for external recipient and skip all filtering but impossible to do it for this case. I want to skip filtering because spamassassin trigger a LOT of false positive rules when in this configuration (all RCPT and HELO rules).

best regards,
Ghislain.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to