Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


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

Rep: Reputation: 0
Sendmail Redirect by Message Subject?


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?


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

Rep: Reputation: 25
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

* ^Subject:.*

: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,



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 , 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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:25 PM.

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