mailTo¶
Provides one or more recipient email addresses for each mail sent by ommail.
This parameter applies to ommail: Mail Output Module.
- Name:
mailTo
- Scope:
input
- Type:
array
- Default:
input=none
- Required?:
yes
- Introduced:
8.5.0
Description¶
The recipient email address(es). This is an array parameter, so multiple
recipients can be provided in a list. For a single recipient, a simple string
value is also accepted (for example, mailTo="operator@example.net").
Input usage¶
module(load="ommail")
action(
type="ommail"
server="mail.example.net"
port="25"
mailFrom="rsyslog@example.net"
mailTo=["operator@example.net", "admin@example.net"]
)
Legacy names (for reference)¶
Historic names/directives for compatibility. Do not use in new configs.
$ActionMailTo — maps to mailTo (status: legacy)
See also¶
See also ommail: Mail Output Module.
Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project
Contributing: Source & docs: rsyslog source project
© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.