[hobbit] SV: ack an alert with email or phone

Xymon User in Richmond hobbit at epperson.homelinux.net
Fri Sep 25 00:20:27 CEST 2009


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





More information about the Xymon mailing list