cfengine 3.7.4 - how to disable mail messages

67 views
Skip to first unread message

Xander Cage

unread,
Jan 11, 2017, 8:41:45 AM1/11/17
to help-cfengine

hi,

just upgraded to 3.7.4 community and now it spams my mailbox with this junk messages on every run ->


Return-Path: <root@sag01138>
Received: from sag01138 (loopback [127.0.0.1])
        by stp12pr.sozvers.at (AIX7.1/8.14.4/8.11.0) with SMTP id v0BDEFQ421954770
        for <root@>; Wed, 11 Jan 2017 14:14:15 +0100
Date: Wed, 11 Jan 2017 14:14:15 +0100
Message-Id: <201701111314.v...@somedomain.bla>
Subject: [sag01138/172.17.10.138]
X-CFEngine: vfqhost="some host";ip-addresses=" 127.0.0.1";policyhub="172.17.8.1";pkhash="MD5=d23adfea6f7da257c70340fb8b7420ce"
From: root@sag01138
To:

Active Memory Expansion        : Disabled
R: Garbage Collection was done at ( Wed Jan 11 14:14:13 2017 ).
R: ITSV hostgroup:  VIE
R: ITSV hostgroup:  GBG
R: ITSV hostgroup:  HA_HOST
R: ITSV hostgroup:  ORACLE_HOST
R: ITSV hostgroup:  SECURE_LAN

--v0BDEFQ426804308.1484140455/stp12pr.sozvers.at--

how vto i disable this?

wbr

chris



Marco Marongiu

unread,
Jan 11, 2017, 8:48:49 AM1/11/17
to help-c...@googlegroups.com


On 11/01/17 14:41, Xander Cage wrote:
> just upgraded to 3.7.4 community and now it spams my mailbox with this
> junk messages on every run ->

If it spams you at every run it's because your output changes at every
run, I guess because of this:


> R: Garbage Collection was done at ( Wed Jan 11 14:14:13 2017 ).

If this information is not important, you can just remove it and the
problem will go away

If you want to disable mailings anyway, look at the configuration for
cf-execd and the related items in def.cf.

Ciao
-- bronto

Xander Cage

unread,
Jan 11, 2017, 9:10:48 AM1/11/17
to help-cfengine
i want to disable mail all in one, so i added the following to def.json, but this does not help, still happy spamming.

"cfengine_internal_disable_agent_email": [ "any" ]

Xander Cage

unread,
Jan 12, 2017, 9:42:17 AM1/12/17
to help-cfengine
it seems that the settings in def.json are not observed. added all the mail items but still mails get sent.
ist this a bug or am i doing something wrong?


root@nimmsag: /var/cfengine/masterfiles # cat def.json
{
"classes":
{
"services_autorun": [ "any" ]
"abortbundleclasses": [ "ITSV_BUNDLE_ABORT", "ITSV_BUNDLE_ABORT_LIST_WHATEVER_YOU_NEED_HERE", ]
"abortclasses": [ "ITSV_ABORT", "ITSV_ABORT_MOUNT_FAILED", "ITSV_ABORT_RPM_UPDATE_FAILED", ]
"cfengine_internal_agent_email":  [ "!any" ]
"cfengine_internal_disable_agent_email": [ "any" ]
},

"inputs": [ "services/autorun/itsv.cf" ],

"vars":
{
"acl": [ "127.0.0.1" , "172.17.8.0/21" , "172.18.33.101" , "172.18.33.201", ]

"domain": "butthurt.ai",
"mailto": "si...@butthurt.ai",
"mailfrom": "spl...@butthurt.ai",
"smtpserver": "burn.butthurt.ai",

"input_name_patterns": [ ".*\\.cf",".*\\.dat",".*\\.txt", ".*\\.conf", ".*\\.mustache",
                                 ".*\\.sh", ".*\\.pl", ".*\\.py", ".*\\.rb",
                                 "cf_promises_release_id", ".*\\.json", ".*\\.yaml", ".*\\.js", ".*\\.tmpl" ]

Dimitrios Apostolou

unread,
Jan 12, 2017, 11:27:31 AM1/12/17
to Xander Cage, help-cfengine
Try setting body executor "mailto" attribute to empty string.


Dimitris

--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengine+unsubscribe@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/d/optout.

Xander Cage

unread,
Jan 13, 2017, 3:37:22 AM1/13/17
to help-cfengine, christia...@itsv.at

empty mailto attribute set, but no change. mails still coming in.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengin...@googlegroups.com.

Neil Watson

unread,
Jan 13, 2017, 9:35:43 AM1/13/17
to help-cfengine
If you run cf-execd verbose and in the foreground you'll be able see how
cf-execd evals its config.

--
Neil H Watson @neil_h_watson
CFEngine reporting: https://github.com/neilhwatson/delta_reporting
CFEngine policy: https://github.com/neilhwatson/evolve_cfengine_freelib
CFEngine and vim: https://github.com/neilhwatson/vim_cf3

Dimitrios Apostolou

unread,
Jan 13, 2017, 10:18:21 AM1/13/17
to Xander Cage, help-cfengine

On Fri, Jan 13, 2017 at 9:37 AM, Xander Cage <christia...@itsv.at> wrote:

empty mailto attribute set, but no change. mails still coming in.


Sent to which adress? maybe the emails are not sent by cf-execd then, but by syslogd, since cf-execd is writing the errors to syslog.

Xander Cage

unread,
Jan 16, 2017, 3:49:28 AM1/16/17
to help-c...@googlegroups.com, christia...@itsv.at

the messages are going to the local root mailbox which gets forwared to a admin group account, so nothing special. i dont think that syslog is sending, because the mails contains the cfengine headers. buth the questions is still how these useless mails can be disabled.

Return-Path: <root@kug01143>
Received: from kug01143 (loopback [127.0.0.1])
        by stp14pr.sozvers.at (AIX7.1/8.14.4/8.11.0) with SMTP id v0G47G9V36307760
        for <root@>; Mon, 16 Jan 2017 05:07:16 +0100
Date: Mon, 16 Jan 2017 05:07:16 +0100
Message-ID: <201701160407.v0G47G9V36307760@stp14pr.sozvers.at>
Subject: [kug01143/172.17.9.143]
X-CFEngine: vfqhost="kug01143";ip-addresses="172.17.9.143 172.16.84.42 172.16.80.22 172.16.13.143 127.0.0.1";policyhub="172.17.8.1";pkhash="MD5=a087ecd78bf4389a96ba92966102b8ab"
From: <root@kug01143>
To:
MIME-Version: 1.0
Content-Type: text/plain
Reply all
Reply to author
Forward
0 new messages