TechDocs/TechnicalProcesses/CreateMailAlias

Mail Aliases

This page has been moved to docs.fsfe.org with the rest of the sysadmin documentation.

In the FSFE we often use email aliases to forward mails from one address to another. This can be used for:

Add or edit an alias

All aliases are defined in the ansible playbook for our mail servers (currently mail1 and list1). Please don't do any edits on the servers itself as all changes would be overwritten with the next playbook run.

Assuming that you would like to add or edit an alias for the @fsfe.org domain, execute following steps:

  1. In your terminal, go to the ansible playbook's directory
  2. Execute ansible-vault edit host_vars/mail1.fsfe.org. The file has to be encrypted with your GPG key, otherwise you are not able to view or edit the file.

  3. In the editor which has been opened, you can edit the values. In the correct section, an example entry could be "test@fsfe.org": "user_1@fsfe.org, user_2@fsfe.org"

  4. Push the changes to the mail server by running the playbook only on the mail1 host as root user and only the aliases tag: ansible-playbook -i inventory/hosts -l mail1.fsfe.org -t aliases -u root site.yml

  5. Optional: You can check whether everything is alright on the server mail1.fsfe.org in the file /etc/postfix/domains/fsfe.org.

  6. If everything is OK, commit and push your changes to the fsfe-mail repository.

TechDocs/TechnicalProcesses/CreateMailAlias (last edited 2023-01-19 09:24:47 by tobiasd)