LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-14-2004, 11:54 AM   #1
rld1025
LQ Newbie
 
Registered: Sep 2001
Posts: 12

Rep: Reputation: 0
Sendmail Redirect by Message Subject?


Hello,

I am trying to see if sendmail can be configured to redirect incoming messages to any user based on the subject line of the message.

Anyone know if this can be done?


Thanks

Bob
 
Old 10-26-2004, 02:04 PM   #2
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 151

Rep: Reputation: 23
I don't know how to do it just using sendmail, but if you combine it with procmail
it is very easy.

in ~/.procmailrc of the receiving user you put this type of content

:0
* ^Subject:.*to.be.forwarded
someOtherUser@host.domain.tld

:0 (just accept it, takes more explanation)
* a line with a regular expression to look for
an adress in case it matches

'man procmailrc' can be helpful for more details,


tlowk
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
sendmail subject via script ryedunn Linux - Newbie 3 01-08-2005 12:11 PM
subject parameter for sendmail? pwtct Linux - Software 4 08-06-2004 10:58 AM
sendmail.cf , filter by subject using regular expression? linuxlah Linux - Software 0 01-30-2004 11:01 PM
The subject is smaller than the message adoyee LQ Suggestions & Feedback 2 07-26-2003 06:33 PM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 09:57 PM


All times are GMT -5. The time now is 07:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration