Drew
2015-01-21 23:39:00 UTC
I have configured a Postfix server which is being used by various internal SMTP clients to send mail. I have enabled SASL+Cyrus and TLS successfully, and have the following restrictions configured in main.cf:
smtpd_client_restrictions = permit_sasl_authenticated, reject
smtpd_relay_restrictions = permit_sasl_authenticated, reject
# reject messages upon the MAIL FROM command when domain is invalid
smtpd_sender_restrictions = reject_unknown_sender_domain
# reject messages upon the RCPT TO command when domain is invalid
smtpd_recipient_restrictions = reject_unknown_recipient_domain
However, in its current state, Postfix does not behave in the way I'd like for the following scenario:
A client attempts to use my server to send an e-mail to "***@yahoo.com", and at the moment, that is not a valid Yahoo e-mail address, so the distant Yahoo SMTP server responds with the error code: "554 delivery error: dd This user doesn't have a yahoo.com account (***@yahoo.com)."
However, my Postfix server does not "forward" that 554 error code back to the original SMTP client, which is what I'd like to happen; rather, it simply responds with a 250 OK.
How do I configure Postfix to forward back error codes from remote SMTP servers back to the original client, instead of responding with 250 OK?
Thanks a bunch,
Drew
smtpd_client_restrictions = permit_sasl_authenticated, reject
smtpd_relay_restrictions = permit_sasl_authenticated, reject
# reject messages upon the MAIL FROM command when domain is invalid
smtpd_sender_restrictions = reject_unknown_sender_domain
# reject messages upon the RCPT TO command when domain is invalid
smtpd_recipient_restrictions = reject_unknown_recipient_domain
However, in its current state, Postfix does not behave in the way I'd like for the following scenario:
A client attempts to use my server to send an e-mail to "***@yahoo.com", and at the moment, that is not a valid Yahoo e-mail address, so the distant Yahoo SMTP server responds with the error code: "554 delivery error: dd This user doesn't have a yahoo.com account (***@yahoo.com)."
However, my Postfix server does not "forward" that 554 error code back to the original SMTP client, which is what I'd like to happen; rather, it simply responds with a 250 OK.
How do I configure Postfix to forward back error codes from remote SMTP servers back to the original client, instead of responding with 250 OK?
Thanks a bunch,
Drew