How to rewrite mail subject with exim?

netlook

Well-Known Member
Mar 25, 2004
334
0
166
Hello,

I want to rewrite mail subject in my system it such condition:

If there is word "rolex" in message body, then rewrite Subject with *SPAM* subject.

Hope somebody will help me, I'm fighting with this all day. I don't have Spamassasin, only Exim+exiscan+clamav

Thanks
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,450
31
473
Go on, have a guess
I'd suggest that you look into how to configure SpamAssassin rules on their site. You could also add SARE rules:
http://www.rulesemporium.com

Modifying emails in such a way really is not the responsibility of the MTA. An alternative would be to use an exim filter (e.g. modify the system_filter /etc/antivirus.exim) have a read of the exim Filters docs on how to do that:
http://www.exim.org/exim-html-4.50/doc/html/filter_toc.html