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
salt.states.alias.present(name, target)¶Ensures that the named alias is present with the given target
Current Salt release: 2014.1.7
Docs for previous releases on salt.rtfd.org.
Full list of builtin state modules