Re: Disclaimer to forwarded mails to external domain?
Michael Orlitzky <[email protected]> Tue, 31 Jul 2012 11:33:37 -0400
| Newsgroups | gmane.linux.gentoo.server |
|---|---|
| Message-ID | <[email protected]> |
On 07/31/12 01:57, Vin=C3=ADcius Ferr=C3=A3o wrote: > Hello dudes, >=20 > I'm considering to implement a new feature in my Postfix Mail > Filtering Gateway. >=20 > It would be great to add a disclaimer note to forwarded mails to an > external domain. Since I'm already running amavisd-new, with all his > friends, I was thinking to invite alterMIME to the party. Is this so that people won't mark those messages as spam (thus pinning the blame on your mail server)? If so, let me assure you that it will be ignored. I've even called some of our customers with forwarded addresses on the phone and personally asked them to stop marking stuff as spam. They still ignore me. > The tricky part is how to detected which messages are automatically > forwarded to an external domain. If this is a filtering gateway, I'm guessing all of your recipients are listed in relay_recipient_maps? If so, you should be able to override the default_transport (which defaults to smtp:). For example, you could set up a disclaimer-only instance of amavis on port 10029, and then set the default_transport to smtp:[localhost]:10029. I would beware of unintended consequences, though. You're liable to stick a disclaimer on some things by accident.