Keith:

If your destination box gives an error for unknown users, you can enable filter recipient and use MD's md_check_against_smtp_server routine. On my boxes, I edit /etc/sysconfig/mimedefang to enable filter recipient and I have routines like this in my filter:

sub filter_recipient {
my($recip, $sender, $ip, $host, $first, $helo, $rcpt_mailer, $rcpt_host, $rcpt_addr) = @_;


 my($answer, $explanation);

if ($recip =~ /@domaintocheck.com>?$/i) {
($answer, $explanation) = md_check_against_smtp_server($sender, $recip, "intel1.peregrinehw.com", "mail.domaintocheck.com");
if ($answer eq 'TEMPFAIL') { # This let's me be a backup MX if the primary server is down.
$answer = 'CONTINUE';
}
return ($answer, $explanation);
}


return ('CONTINUE', "ok");
}
----- Original Message ----- From: "Keith Patton" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, March 24, 2005 11:54 AM
Subject: [Mimedefang] Routine to check validity of user on remote box



All,

Forgive me, I know this was posted once and I have yet to find the prior posting..

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

Can anyone point me to were that was posted?

thanks,
Keith

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


_______________________________________________ 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