# mailFrom

Defines the sender email address placed in outgoing messages from ommail.

This parameter applies to ommail: Mail Output Module.

Name:

  mailFrom

Scope:

  input

Type:

  word

Default:

  input=none

Required?:

  yes

Introduced:

  8.5.0

## Description

This mandatory parameter defines the email address used as the sender. It will appear in the `From:` header of the email.

## Input usage

    module(load="ommail")
    action(
        type="ommail"
        server="mail.example.net"
        port="25"
        mailFrom="rsyslog@example.net"
        mailTo="operator@example.net"
    )

### Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs.

- $ActionMailFrom — maps to mailFrom (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.