LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-11-2008, 09:56 PM   #1
Shinigami101
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Rep: Reputation: 0
Sendmail, spam redirection to different account


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).

Many Thanks for any ideas or help

I shall also keep on looking.
 
Old 11-13-2008, 04:36 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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 :-]
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird LQ DNS / Redirection -> Spam ?? WTF? tredegar LQ Suggestions & Feedback 26 07-15-2007 12:02 PM
how to find out what account sent spam? izghitu Linux - Newbie 3 01-13-2006 04:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration