mode¶
Selects whether ommail sends mail directly via SMTP or through a sendmail-compatible local submission program.
This parameter applies to ommail: Mail Output Module.
- Name:
mode
- Scope:
input
- Type:
word
- Default:
input=smtp
- Required?:
no
- Introduced:
8.2606.0
Description¶
Use smtp to let ommail talk directly to an SMTP server. Use
sendmail to invoke a sendmail-compatible binary and write the mail
message to its standard input.
Input usage¶
module(load="ommail")
action(
type="ommail"
mode="sendmail"
mailFrom="rsyslog@example.net"
mailTo="operator@example.net"
)
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–2026 Rainer Gerhards and others. Licensed under the Apache License 2.0.