[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: cfengine doesn't send mail
From: |
Martin, Jason H |
Subject: |
RE: cfengine doesn't send mail |
Date: |
Mon, 22 Aug 2005 08:28:58 -0700 |
Do you have any 'groups' statements that would cause any sort of output
to stdout? I've seen cases where the following seems to confuse the mail
system:
groups:
Somegroup = ( ReturnsZero(/usr/bin/grep foobar /some/file) )
The better way is:
Somegroup = ( ReturnsZero(/usr/bin/grep foobar /some/file >/dev/null
2>&1) )
I'm guessing that the 'early' output is confusing the smtp client; I
haven't debugged it to the code level yet.
-Jason Martin
-----Original Message-----
From: help-cfengine-bounces+jason.h.martin=cingular.com@gnu.org
[mailto:help-cfengine-bounces+jason.h.martin=cingular.com@gnu.org] On
Behalf Of Jamie Wilkinson
Sent: Monday, August 22, 2005 1:33 AM
To: help-cfengine@gnu.org
Subject: Re: cfengine doesn't send mail
This one time, at band camp, Bruno Bonfils wrote:
>
>Hi all,
>
>I'm using cfengine (GNU cfengine 2.1.15) running on Solaris 10 with the
>following lines include in cfagent.conf :
>
>control:
>
> smtpserver = ( mail.fimasys.fr )
> sysadm = ( infra@fimasys.fr )
>
>import:
>
>[..]
>
>But cfengine never send mail, with automatically cfagent neither
>manually with cfrun.
>
>Can you tell me if I miss something ?
You want cfexecd, which is the program that does the sending.
Try:
cfexecd -F
from command line or cron, or without the -F to run as a daemon.
_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine