Wietse Venema wrote: > juodu...@gmail.com: > > > Why does postfix accept mail to 'RCPT TO: <Postmaster>' on submission > > > port, even when smtpd_recipient_restrictions are set to > > > permit_sasl_authenticated,reject? > > See RFC 5321, the document that defines SMTP. > > Wietse >
Thanks for the reply. I find it strange that postfix accepts <postmaster>, but rejects <postmas...@my-domain.com> on this port (both variants are working on 25/smtp). I think it should be either all or none. In addition to saying that the reserved mailbox name <postmaster> MUST be accepted, RFC 5321 also says that <postmas...@my-domain.com> MUST be supported: The requirement to accept mail for postmaster implies that RCPT commands that specify a mailbox for postmaster at any of the domains for which the SMTP server provides mail service, as well as the special case of "RCPT TO:<Postmaster>" (with no domain specification), MUST be supported. Is there a way to direct mail with <postmaster> recipient to amavis-external content_filter as opposed to amavis-auth, which I intend to use for mail coming in through the submission service? Also, Google is violating the RFC: $ openssl s_client -connect smtp.gmail.com:587 -starttls smtp -quiet 250 SMTPUTF8 HELO localhost 250 smtp.gmail.com at your service MAIL FROM: <tes...@gmail.com> 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 https://support.google.com/mail/answer/14257 l7sm11474238wjx.14 - gsmtp RCPT TO: <Postmaster> 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 https://support.google.com/mail/answer/14257 l7sm11474238wjx.14 - gsmtp -- juodumas