script to easily mass produce common email aliases for each of your domains in mailcow
This repository has been archived on 2026-11-03. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2020-11-26 16:55:05 -07:00
lib align headers hash literal 2020-11-26 16:55:05 -07:00
.gitignore Ignore api key file 2019-11-18 23:29:48 -07:00
auto_alias.rb move some more api details into the library 2020-11-26 16:53:33 -07:00
common_aliases.txt Initial commit, the full working version 2019-11-18 23:29:28 -07:00
fallback_root.txt Initial commit, the full working version 2019-11-18 23:29:28 -07:00
README.md various old tweaks 2020-11-26 16:16:52 -07:00

Mailcow Auto Alias

This is a focused script to create a bunch of aliases for each of the domains managed by the Mailcow instance. It's opinionated so it's not useful in all cases, but it works well for me.

This script uses root@<domain> as the destination, and expects that to be managed by you, the administrator of Mailcow. If that alias doesn't exist already, one will be made for you pointing to the email address stored in fallback_root.txt.

These common aliases are defined by common practice, as well as RFCs. A full list of the local names (left of the @) used are pulled from common_aliases.txt.

It prints out colors, so FYI.