smtpd and custom MAIL_FROM/RCPT_TO validation

A

alf

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 :-( ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top