Answers above:
On Jul 31, 2012, at 12:33 PM, Michael Orlitzky <
michael@orlitzky.com>
wrote:
On 07/31/12 01:57, Vinícius Ferrão wrote:
Hello dudes,
I'm considering to implement a new feature in my Postfix Mail
Filtering Gateway.
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.
Actually we have user that automatic redirect messages to their personal accounts. And this behaviour is not 100% approved by the university. So I want to put a disclaimer in those people, as example:
john@university.com redirects to
john@gmail.com. I want to put a disclaimer in *ALL* messages redirected to external domains.
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.
There's no recipient check in my mail filtering gateway. I leave this job to my final destination. It's not easy to get the final destination since we have some different end destination servers and a separate mailman server.
I can't really understand your example: in this situation everything will be "disclaimed"; and I just want to modify messages to people that receive their corporate emails in their personal account.
Thanks for you help and sorry about the delay to answer your message.