August 24, 2006

[Redhat/Fedora] Sendmail smrsh ? Forwarding email to a program

Filed under: Unix Admin — HanaDaddy @ 11:50 pm

By default, Redhat & Fedora comes with smrsh activated.
In order to forward an email to a handler program, the handler program must be in /etc/smrsh (I am not sure if link is sufficient)

Refer to /etc/mail/sendmail.mc
Below line means that smrsh is used.

FEATURE(`smrsh',`/usr/sbin/smrsh')dnl

/etc/aliases

localemail:  |/etc/smrsh/mailhandler.sh

run newaliases to update the aliases db.

Also the /etc/smrsh/mailhandler.sh should read the input from the STDIN.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

 

50 queries. 0.406 seconds. Powered by WordPress