LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Sendmail Redirect by Message Subject? (https://www.linuxquestions.org/questions/linux-networking-3/sendmail-redirect-by-message-subject-242615/)

rld1025 10-14-2004 11:54 AM

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

tlowk 10-26-2004 02:04 PM

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


All times are GMT -5. The time now is 04:27 AM.