How is define the maisl subject of cf_execd

2 views
Skip to first unread message

Jerome Jean Verleyen

unread,
Oct 21, 2025, 8:52:27 PM (14 hours ago) Oct 21
to help-cfengine
Dear all
I've installed a cfengine on some server. Every change of state i'll received an email, thank's to postfix configured by.... cfenegine :-)

What i'v notice is that the subject of the email is of the following format:

[hostname / ip address]

Which IP address is using cf_execd? That's seems to be the first one present as a result of "ip a" command (excluding localhost, that's normal).

It is a way to define some proper subjet? The documentation about that is not very clear to me:

body executor control { mailsubject => "CFEngine report ($(sys.fqhost))"; }

Where should i write this code?

Thank's a lot!

Lars Erik Wik

unread,
4:27 AM (7 hours ago) 4:27 AM
to help-cfengine
Hi there,

I would recommend configuring it in augments (i.e., /var/cfengine/masterfiles/def.json). Something like:

```
{
  "vars": {
    "control_executor_mailsubject": "My value defined from augments"
    }
}
```


The variable could also be modified in /var/cfengine/masterfiles/controls/cf_execd.cf. But I would advice against modifying default policy, as it makes upgrades much harder.

Reply all
Reply to author
Forward
0 new messages