Badly formed return address causes TMDA exception
Lloyd Zusman <[email protected]> Fri, 08 May 2009 07:26:28 -0400
| Newsgroups | gmane.mail.spam.tmda.devel |
|---|---|
| Organization | Take a hippopotamus to lunch today. |
| Message-ID | <[email protected]> |
Someone recentlystarted sending messages with a badly formed return
address to one of my tmda-enabled email accounts. The address contains
more than one "@" character, and it causes the following TMDA exception
(see below).
What's the recommended method for fixing this?
Ideally, I'd like to catch the exception in the appropriate place within
the TMDA code, because there are a number of ways to send bogus return
addresses, and I don't want to try to come up with a pattern that
matches every possible form of a bad address.
Thanks in advance.
Here's the exception I'm getting:
Uncaught Python 2.3.5 Exception (Sat May 2 12:03:41 2009):
-----------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/tmda/bin/tmda-filter", line 53, in ?
execfile(os.path.join(execdir, 'tmda-rfilter'))
File "/usr/local/tmda/bin/tmda-rfilter", line 888, in ?
main()
File "/usr/local/tmda/bin/tmda-rfilter", line 884, in main
'bounce_incoming.txt')
File "/usr/local/tmda/bin/tmda-rfilter", line 475, in do_default_action
bouncegen('request')
File "/usr/local/tmda/bin/tmda-rfilter", line 775, in bouncegen
send_bounce(bounce_message, mode)
File "/usr/local/tmda/bin/tmda-rfilter", line 447, in send_bounce
ar.send()
File "./TMDA/AutoResponse.py", line 226, in send
File "/usr/local/tmda/TMDA/Util.py", line 598, in sendmail
server.sendmail(envsender, envrecip, msgstr)
File "./TMDA/SMTP.py", line 61, in sendmail
File "/usr/lib/python2.3/smtplib.py", line 687, in sendmail
raise SMTPRecipientsRefused(senderrs)
SMTPRecipientsRefused: {'UniqueHealthSupply@[email protected]':
(501, '5.1.3 Bad recipient address syntax')}
--
Lloyd Zusman
[email protected]
God bless you.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
tmda-workers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmda-workers