Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Backup MX: verifying addresses

2006-12-08 by Guy Feltin

Dans son message, Oliver Fromme ecrivait :
----------------------------------------------


 > Does such a milter exist?  

With sendmail you can use mimedefang (http://www.mimdefang.org) with the function : 
md_check_against_smtp_server:

md_check_against_smtp_server($sender, $recip, $helo, $server, $port)
              This function  connects  to  the  SMTP server $server and pretends to send mail from 
$sender to $recip.
              The return value is always a two-element array.  If the RCPT TO: command succeeds, 
the return value
              is ("CONTINUE", "OK").  If the RCPT fails with a permanent failure, the return value 
is ("REJECT", $msg),
              where $msg is the message from the SMTP server.  Any temporary failures, connection 
errors, etc. result
              in a return value of ("TEMPFAIL", $msg).
              The optional argument $port specifies the TCP port to connect to.  If it is not 
supplied, then
              the default SMTP port of 25 is used.




-- 
  Guy  Feltin   -   03 83 68 24 30

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.