On Wed, Dec 22, 2010 at 1:52 PM,  <no-re...@cfengine.com> wrote:
> Forum: Cfengine Help
> Subject: [SMTP] How to specify fully-qualified from address (cfengine2)
> Author: raffen
> Link to topic: https://cfengine.com/forum/read.php?3,19876,19876#msg-19876
>
> My email provider has a SMTP server that refuses to send email unless the 
> "from" address is valid.  It looks like cfexecd uses 'root' as email from 
> address, which is rejected by my email provider's relay.  Can I specify 
> "from" address anywhere in the cfagent.conf ?

in the control: section

control:
        any::

                # When should cfexecd in daemon mode wake up the agent?
                schedule        = ( Min00_05 Min20_25 Min40_45 )

                EmailMaxLines   = ( 5000 ) # max lines of output to email
                EmailFrom       = ( cfeng...@domain.tld )
                sysadm          = ( sys...@domain.tld ) # where to mail output
                smtpserver      = ( mailserver.domain.tld) # mail
relay over SMTP

                cfrunCommand    = ( "$(cf_base_path)/cfagent" )

-- 
natxo
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to