[Mimedefang] skip filtering if smtp auth even for local mail

Ghislain gadnet at aqueos.com
Wed Apr 16 05:53:48 EDT 2014


  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 {

         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 "") {
                 md_syslog('warning', "local Email, $MsgID");
                 return ('ACCEPT_AND_NO_MORE_FILTERING', "ok");
                 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,

More information about the MIMEDefang mailing list