On Thu, 24 Mar 2005, Keith Patton wrote:

> A filter routine was posted for mimedefang( used as a relay gateway )
> to check to see if the recipient existed on the destination box.

   You do that in filter_recipient.  Here are a couple of examples.  The
first one checks one server against one subdomain name.  classweb.uah.edu
is the ultimate destination and smtp-in1.uah.edu is the external relay
running MD:

  if ($recipient =~ /[EMAIL PROTECTED]>?/i) {
    return md_check_against_smtp_server($sender, $recipient,
                               "smtp-in1.uah.edu", "classweb.uah.edu")
  }

   Here is an example of checking one server that handles multiple
addresses ([EMAIL PROTECTED], [EMAIL PROTECTED], and [EMAIL PROTECTED]):

  if ($recipient =~ /.+\@(?:(?:email|math)\.)?uah\.edu>?/i) {
    return md_check_against_smtp_server($sender, $recipient,
                                      "smtp-in1.uah.edu", "email.uah.edu")
  }

   Note that $sender and $recipient not MD globals, but are whatever you
call them when you grab the arguments.

   HTH...

Jim McCullars
University of Alabama in Huntsville


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

Reply via email to