Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

smtpd and custom MAIL_FROM/RCPT_TO validation

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


ask at me

Aug 25, 2006, 12:28 AM

Post #1 of 2 (97 views)
Permalink
smtpd and custom MAIL_FROM/RCPT_TO validation

Hi,

I use smtpd for the SMTP server in my app, but I need a little bit more
as far as immediate MAIL_FROM/RCPT_TO validation. Returning from
process_message is too late SMTP protocol-wise.

The ad hoc solution is to create own SMTPServer2 by deriving from and
own SMTPChannel2 by deriving SMTPChannel. What bothers me that some
code duplication from SMTPServer.__init__ and
SMTPChannel.smtp_MAIL/RCPT will have to take place.


Is there any way to avoid it. Probably not :-( ...

--
alf
--
http://mail.python.org/mailman/listinfo/python-list


raluk_th3blu3_star at yahoo

Nov 7, 2009, 1:30 AM

Post #2 of 2 (80 views)
Permalink
Re: smtpd and custom MAIL_FROM/RCPT_TO validation [In reply to]

Am o întrebare, vă rugăm: De ce nu-mi trimit messages from Romania to America? :(

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.