[Mimedefang] Routine to check validity of user on remote box
Jim McCullars
jim at info.uah.edu
Thu Mar 24 12:32:49 EST 2005
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 =~ /.+\@classweb\.uah\.edu>?/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 (user at uah.edu, user at email.uah.edu, and user at math.uah.edu):
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
More information about the MIMEDefang
mailing list