Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions MPF.md
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,27 @@ This setting can be customized via Augments, for example:
}
```

### smtpport

The SMTP port that `cf-execd` should use when connecting to the SMTP server. Defaults to `25`.

This setting can be customized via Augments, for example:

```json
{
"variables": {
"default:def.smtpport": {
"value": "26",
"comment": "The smtp port that should be used when sending email from cf-execd."
}
}
}
```

**History:**

- Added in CFEngine 3.28.0

### smtpserver

The SMTP server that `cf-execd` should use to send emails. Defaults to `localhost`.
Expand Down
3 changes: 3 additions & 0 deletions controls/cf_execd.cf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ body executor control
mailto => "$(def.mailto)";
mailfrom => "$(def.mailfrom)";
smtpserver => "$(def.smtpserver)";
@if minimum_version(3.28.0)
smtpport => "$(def.smtpport)";
@endif
mailmaxlines => "$(default:def.control_executor_mailmaxlines)";

control_executor_mailsubject_configured.cfengine_internal_agent_email.!cfengine_internal_disable_agent_email::
Expand Down
4 changes: 4 additions & 0 deletions controls/def.cf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ bundle common def
string => "localhost",
if => not(isvariable("smtpserver"));

"smtpport"
string => "25",
if => not(isvariable("smtpport"));

"control_executor_mailmaxlines" -> { "ENT-9614" }
int => "30",
if => not( isvariable( "control_executor_mailmaxlines" ));
Expand Down
Loading