Sendmail / Email copy
Robert Boucneau
rboucneau at tuckernt.net
Wed Mar 17 21:23:34 UTC 2004
> The customer has an emergency@ email address on this server, which works
> fine with POP and IMAP. But now we wants the email to go to the POP/IMAP
> account, and also the emails to be sent to Sprint PCS phones and a on-call
> pager.
One clean option would be to create a procmail script for the emergency
"user" (edit or create .procmailrc in /home/emergency).
You'd need a "recipe" that would look something like:
SHELL = /bin/sh
# Don't forget to rotate or delete the log from time to time
LOGFILE = /home/emergency/pm.log
LOGABSTRACT = "all"
VERBOSE = "on"
# Deliver to Sprint PCS phone
:0 c
|/usr/sbin/sendmail -oi address at sprint.net
# Deliver to pager
:0 c
|/usr/sbin/sendmail -oi address at pager.com
# Deliver to mailbox
:0
/var/spool/mail/emergency
See "http://pm-doc.sourceforge.net/pm-tips.html" for real instructions...
Bob
More information about the fedora-list
mailing list