Xymon Mailing List Archive search

ack an alert with email or phone

list Xymon User in Richmond
Thu, 24 Sep 2009 18:20:27 -0400
Message-Id: <user-71894adee931@xymon.invalid>

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