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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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 = ( [EMAIL PROTECTED] )
>
>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


_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to