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: [email protected]
thomas: alias.present: - target: [email protected]
The default alias file is set to /etc/aliases
, as defined in Salt's config execution module
. To change the alias file from the default location, set the following in your minion config:
aliases.file: /my/alias/file
-
Ensure that the named alias is absent
- name
-
The alias to remove
salt.states.alias.absent(name)
-
Ensures that the named alias is present with the given target or list of targets. If the alias exists but the target differs from the previous entry, the target(s) will be overwritten. If the alias does not exist, the alias will be created.
- name
-
The local user/address to assign an alias to
- target
-
The forwarding address
salt.states.alias.present(name, target)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/states/all/salt.states.alias.html