I have a Mail server (FQDN: mail.ours.com) using Postfix and Dovecot, users having email address like [email protected]. Like many others SMTP server, if user claim that they are from @ours.com, they need to pass sasl or should be in mynetwork parameter according to the restriction setting; so if user do not pass sasl and not having the ip address in mynetwork, they may got some error message like “sender not login”.
The situation is when a user [email protected] want to send email to [email protected], but Bob do the setting to let his email forward to [email protected]. So SMTP server from external.com will interact with ours SMTP server and claim that the sender is from [email protected] wanted to send mail to [email protected]. After the request, SMTP from external.com will receive the error message from ours SMTP server said that “([email protected]) sender not login”, and Amy will finally got this bounce error message.
I have no idea how to deal with this situation, very appreciate if anyone can give me the solution or leave some comment, thanks.
smtp_server_restrictions
is not the proper mechanism for what you are trying to do.