Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
This is more then likely a simple thing to do but hey i haven't found anything so i thought you guys might be able to help.
What i am trying to do is redirect anything that has been marked as spam (this is marked by an ironport, it adds "X-IronPort-SPAM: = (SPAM)" to the extended email header) from the user it was being sent to, to another account such as "fwdspam@example.com". I am wanting to do this by getting sendmail to look at the subject of the email and pass it onto that address(being "fwdspam@example.com").
Example;
Email sent to "foo.bar@example.com" -> IronPort
IronPort marks as spam adding "X-IronPort-SPAM: = (SPAM)" to extended header -> Sendmail
Sendmail sees "X-IronPort-SPAM: = (SPAM)" and redirects email to "fwdspam@example.com"
The reason why I am trying to do it in sendmail and not the IronPort is because i do not have control over the IronPort so it is the easiest way(i hope... if it is even possible).
IronPort > MTA > LDA (Procmail), in which a procmail recipe can act on '* ? (formail -x X-IronPort-SPAM:' or '* ^X-IronPort-SPAM:.*'? That's to say, I don't know how to do it the Milter way :-]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.