setting up a central outlook disclaimer in Linux
3 Replies
> 11. How can I add or append a disclaimer (or other text) to the bottom of every email that gets sent from my mail server?
By design this is not implemented in Postfix directly. It's not the job of an MTA, and it's not as simple a problem as it seems because of MIME and digital signatures. MIME messages have a structure that can be very complex. Digital signatures attest to the fact that a signed message has not been modified. Adding a footer to the bottom of a message, breaks both of these. Some people add short text to the headers of email messages, but the text is not likely to be seen by most users. The real solution is to configure your clients to add whatever text is required.
Having said that, it is possible to configure a content filter that appends the text for you. Follow the directions for configuring Postfix to work with a content filter. Your filter should be MIME aware, and you should be aware that digital signatures will no longer work.
Sooo yes.. if any of your users are using digital sigs, it will break those. If not, I would suggest googleing "content filter postfix footer" and see where to go from there
Here's a good Slate article on them:
http://www.slate.com/id/2101561/
Like knehcsa quoted: signatures and disclaimers should really be done by the MTA.
Now if you're thinking about appending information like most free webmail sites do (ads usually), then you should pursue the content filter as that will give you the most options and flexibility.
The software you need is altermime:
http://www.pldaniels.com/altermime/
I've not used this with postfix, though have got it working on exim quite happily. Incoming emails are piped through a shell script which runs altermime with the necessary parameters and inserts the 'line noise' onto the email.
Paul (L) Daniels is also very good with support for this software - I've submitted a number of bug reports which have been duely fixed (and have even had personal emails from him alerting me to the fact that the latest release fixes my problem).
Hope this helps