salt.states.alias

Configuration of email aliases.

The mail aliases file can be managed to contain definitions for specific email aliases:

username:
  alias.present:
    - target: user@example.com
salt.states.alias.absent(name)

Ensure that the named alias is absent

name
The alias to remove
salt.states.alias.present(name, target)

Ensures that the named alias is present with the given target

name
The local user/address to assign an alias to
target
The forwarding address