Mailcow Auto Alias

Quickly generate a bunch of aliases in Mailcow.

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.