Managing email aliases
This tutorial is dedicated to users that are part of the
aliases group. It describes actions that can be done by those users.
Edit receiving aliases
/etc/aliases file with your favorite CLI text editor (
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:
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:
The file to edit is
You must NOT use
:between the key and the value.
You must always specify the complete email address with
The command used to regenerate the database is: