RE: Sendmail / Email copy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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@xxxxxxxxxx

# Deliver to pager
:0 c
|/usr/sbin/sendmail -oi address@xxxxxxxxx

# Deliver to mailbox
:0
/var/spool/mail/emergency

See "http://pm-doc.sourceforge.net/pm-tips.html"; for real instructions...

Bob




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux