Managing email aliases#

This manual is dedicated to users that are part of the aliases group. It describes actions that can be done by those users on the email aliases.

Edit receiving aliases#

Open the /etc/aliases file with your favorite CLI text editor (nano, vim, etc.). It should look something like this:

# See man 5 aliases for format.
# Use tab for alignment.
# To regenerate the db file run: newaliases
postmaster:     root
root:           nicolas
contact:        nicolas,vincent,guilhem,audrey
alert:          nicolas,vincent,guilhem
matrix-synapse: /dev/null
jellyfin:       /dev/null


After you’ve saved your edits, you have to regenerate the database (/etc/aliases.db) using the following command:


Add or remove a user from an alias#

Simply write or erase the name of the chosen user in the list that follows the alias name.

Create or delete an alias#

You can create as many aliases as you want by adding a new line to the file, following the postfix aliases db syntax:

<ALIAS>:      <USER1>[,<USER2>...]

To delete an alias, simply delete or comment out (using #) the corresponding line.

Edit sending aliases#

The process is very similar from the edition of receiving aliases, but some differences exists:

  1. The file to edit is /etc/aliases_senders.

  2. You must NOT use : between the key and the value.

  3. You must always specify the complete email address with

  4. The command used to regenerate the database is:

    /usr/sbin/postmap hash:/etc/aliases_senders