Xymon Mailing List Archive search

ack an alert with email or phone

list Kevin Kelly
Fri, 25 Sep 2009 09:54:28 -0500
Message-Id: <user-e39299a87037@xymon.invalid>

Where in the sendmail.cf file would I put that?

-----Original Message-----
From: Xymon User in Richmond [mailto:user-24d6f8323faa@xymon.invalid] 
Sent: Thursday, September 24, 2009 5:20 PM
To: user-ae9b8668bcde@xymon.invalid
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


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email