diff --git a/management/mailconfig.py b/management/mailconfig.py index d044c1ab..59543d5f 100755 --- a/management/mailconfig.py +++ b/management/mailconfig.py @@ -516,6 +516,9 @@ def get_required_aliases(env): # The hostmaster alias is exposed in the DNS SOA for each zone. aliases.add("hostmaster@" + env['PRIMARY_HOSTNAME']) + + # Always add the fail2ban alias to make sure, that messages from fail2ban can be delivered properly + aliases.add("fail2ban@" + env['PRIMARY_HOSTNAME']) # Get a list of domains we serve mail for, except ones for which the only # email on that domain are the required aliases or a catch-all/domain-forwarder.