[issue8503] smtpd SMTPServer does not allow domain filtering

2010-04-23 Thread mike s
mike s added the comment: I don't think that is a suitable solution for this problem, because the expected SMTP behavior is to reject an unsuitable RCPT TO directly after it is proposed by the client. However, I think it would be a great idea to have such a method being called after th

[issue8503] smtpd SMTPServer does not allow domain filtering

2010-04-23 Thread mike s
Changes by mike s : -- title: smtpd module does not allow domain filtering -> smtpd SMTPServer does not allow domain filtering ___ Python tracker <http://bugs.python.org/iss

[issue8503] smtpd module does not allow domain filtering

2010-04-23 Thread mike s
Changes by mike s : -- title: smtpd module does not allow -> smtpd module does not allow domain filtering ___ Python tracker <http://bugs.python.org/iss

[issue8503] smtpd module does not allow

2010-04-23 Thread mike s
New submission from mike s : The SMTPServer supplied by the smtpd library allows clients to send mail to any domain. This makes the server attractive to spammers, thinking they have found an open relay. The patch below adds an "accept_domain" method to SMTPServer (documented below)