In article <[EMAIL PROTECTED]>, David Bremner wrote:
> It is (AFAIK) still just as conservative as smtp-check-sender; it
> will only return 0 (a match for a tmda pipe) if it gets a confirmed 
> 5xx code.   All timeouts, etc... are considered non-matches.

I think you need to handle SMTPConnectError in checkAddr.  I tested this and
got:

Traceback (most recent call last):
  File "test", line 232, in ?
    checkMsg(q.pendingdir,qEntry)
  File "test", line 123, in checkMsg
    if checkAddr(address_to_verify)==0:
  File "test", line 169, in checkAddr
    server = smtplib.SMTP(primx)
  File "//usr/lib/python2.2/smtplib.py", line 243, in __init__
    raise SMTPConnectError(code, msg)
smtplib.SMTPConnectError: (550, 'blah blah blah')

A peek in smtplib.py shows SMTPException is the base class of all
exceptions it raises, and SMTPResponseException is the base class of
all its exceptions that include an STMP error code.

> This could be a drop in replacement for smtp-check-sender. The downside
> is that the location of tmda is hardcoded. I did not yet have the 
> patience to get some autolocation type stuff working.  

Note that this isn't necessary if TMDA is installed site-wide.  I
commented them out with no ill effects.

Ed

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to