Where in the sendmail.cf file would I put that?
-----Original Message----- From: Xymon User in Richmond [mailto:hobbit at epperson.homelinux.net] Sent: Thursday, September 24, 2009 5:20 PM To: hobbit at hswn.dk Subject: RE: [hobbit] SV: ack an alert with email or phone
On Thu, September 24, 2009 15:11, Kevin Kelly wrote:
Ok, I finally got my xymon server to accept outside mail. Since I am using sendmail and the man page has procmailrc, is there a standard configuration to use with sendmail?
You need the procmail package installed. You need
define(PROCMAIL_MAILER_PATH',/usr/bin/procmail')dnl
FEATURE(local_procmail,',procmail -t -Y -a $h -d $u')dnl
MAILER(procmail)dnl
in your sendmail.mc file (and regenerate sendmail.cf with make). Or if you're editing sendmail.cf directly, you need
Mprocmail, P=/usr/bin/procmail, F=DFMSPhnu9, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP, A=procmail -Y -m $h $f $u Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, A=procmail -t -Y -a $h -d $u
in there. I think having procmail enabled is the default with most sendmail installs, so it's probably already there.
Then according to the hobbit-mailack manpage you need in ~xymon/ a .procmailrc file with
DEFAULT=$HOME/Mailbox LOGFILE=$HOME/procmail.log :0 | $HOME/server/bin/hobbit-mailack --env=$HOME/server/etc/hobbitserver.cfg
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email