[Mimedefang] Interesting Front-End Configuration Question

Kevin A. McGrail kmcgrail at pccc.com
Wed Jun 27 14:04:10 EDT 2007


I have an exchange mail server with an MD server in front of it.

On the exchange server, it only knows about one domain, let's say abc.com.

On the MD server, I have sendmail with a virtusertable file that points 
abc.net to %1%3 at abc.com.

I then have an access file that says kmcgrail at abc.com is valid.

My hopes is to use the MD Server to allow as many domains to be used 
interchangeably without changing a single thing on the exchange server.

However, when checking the recipients on the first server, it seems that the 
access level checks are done prior to the rewrites of the recipient per the 
virtusertable.


So my solution so far is to use a filter_recipient routine that checks using 
md_check_against_smtp_server after rewriting the recipient.

  #OTHER DOMAINS LIKE ABC.NET
  if ($recip =~ /\@abc.net>?$/i) {
    #REWRITE THE RECIPIENT WITH ABC.COM AND CHECK
    $recip =~ s/<?(.*)\@.*>?$/$1\@abc.com/i;

    md_syslog('warning', "Recipient rewritten to $recip");

    ($answer, $explanation) = md_check_against_smtp_server($sender, $recip, 
"smtp.abc.com", "192.168.1.50");
    if ($answer eq 'TEMPFAIL') {
      $answer = 'CONTINUE';
    }
    return ($answer, $explanation);
  }

This might be the best answer, I was just wondering if any knows if I just 
have something set wrong in my sendmail configuration.

Regards,
KAM 




More information about the MIMEDefang mailing list