# 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

Current Salt release: 0.17.1

### Table Of Contents

- salt.states.alias
  - Configuration of email aliases.

#### Previous topic

salt.states.win_system

#### Next topic

salt.states.alternatives

### Quick search

Enter search terms or a module, class or function name.

### Upcoming SaltStack Events

My conferences on Lanyrd