Hello,
IF SMTP error code = 5.7.1
AND remote server = GMail
DON’T generate a bounce message (my server)
ELSE
Generate bounce messages (my server)
I use following approach for this problem, which not only affects GMail,
but also T-Online and any other service rejecting e-mails before or after
reception. The suggestion to not forward e-mail is useless in my eyes, as
this disables a very important feature of the e-mail system.
I use following settings in /etc/aliases
myuser: whateveremailaddress@toforwardyouwant
owner-myuser: postmaster
Postfix is told to deliver to "myuser" which is then forwarded. Any
bounces don't go to the original user, but to the postmaster instead which
in my case is a SPAM filtered mailbox.
This way you don't prevent bounce messages for the forwards, but instead
receive them yourself. If something goes wrong you will see it, but no
backscatter is going out.
In case of valid bounces (never really happens here) you need to inform
the sender manually.
Note that myuser should not be used otherwise or you will also get any
other bounces, not only the forwards.
There is probably also a documentation for that somewhere, but I wasn't
able to find it with a short search ;-)
Ciao
--
http://www.dstoecker.eu/ (PGP key available)