Am 06.10.2014 um 20:30 schrieb Francisco Leon:
Hello everyone. We are using postfix to deliver mail sent from users in a Windows domain through Exchange, using Exchange's Smart host feature to relay all mail sent to "[email protected]". The email then gets fed to Request Tracker, a popular Helpdesk software, which itself uses a perl script called rt-mailgate which is called from /etc/aliases. The issue is that all mails sent through Exchange have their bodies appended with several lines of text. Exchange 2007 doesn't seem to be able to remove the disclaimer as an exception if the mail account isn't in the Active Directory contact database, so i am stuck trying to figure out if i can filter the text from every email sent to the account above. I have read the Postfix Content Inspection document, and i don't have clear if i need a before queue (light or medium weight), after queue, body_checks, sendmail's milter mechanism or another. I just need mails from our Exchange Server sent to the email above (and other emails in the same format, [email protected]) to delete some specific lines from the body of the message before delivery to the rt-mailgate script called in /etc/aliases. I just need a pointer and maybe a basic example and i can take it from there.
solve the problem of idiotic disclaimers at the root cause and don't add them at all or live with them - they are nothing but annoyance for anybody reveive or quote mails and have no lgeal meaning at all
there is no software which can magically strip parts of a mailbody which should not exist - add them is easier and even in that case: don't mangle email - period - you have no clue of the resulting damage in case of signed messages and so on
