"Real" SMTP servers often reply with 550 in response to the RCPT command, so that the SMTP client doesn't have to send message data for a recipient that doesn't exist on the server. Would it be possible to add a hook in aiosmtpd.smtp.SMTP.smtp_DATA to validate incoming recipients immediately instead of just adding them blindly to envelope.rcpt_tos?
I've been running an SMTP mailing list forwarder based on smtpd for two years and am looking into porting that to aiosmtpd when 1.0 is released.
"Real" SMTP servers often reply with 550 in response to the RCPT command, so that the SMTP client doesn't have to send message data for a recipient that doesn't exist on the server. Would it be possible to add a hook in aiosmtpd.smtp.SMTP.smtp_DATA to validate incoming recipients immediately instead of just adding them blindly to envelope.rcpt_tos?
I've been running an SMTP mailing list forwarder based on smtpd for two years and am looking into porting that to aiosmtpd when 1.0 is released.