In the FSFE we often use email aliases to forward mails from one address to another. This can be used for:
- changed user names
- addresses for the president or executive director
- list of people which are not worth or suitable to form a Mailman mailing list
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:
- In your terminal, go to the ansible playbook's directory
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.
In the editor which has been opened, you can edit the values. In the correct section, an example entry could be "email@example.com": "firstname.lastname@example.org, email@example.com"
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
Optional: You can check whether everything is alright on the server mail1.fsfe.org in the file /etc/postfix/domains/fsfe.org.
- If everything is OK, commit and push your changes to the fsfe-mail repository.