Commit 42a50623 authored by Joshua Tauberer's avatar Joshua Tauberer

don't automatically create the administrator@ alias (e.g. on first user...

don't automatically create the administrator@ alias (e.g. on first user creation) because we dont know what it should be an alias to (leave this to be resolved manually), fixes #470

Was broken by 462a79cf.
parent e3252f53
...@@ -544,6 +544,7 @@ def kick(env, mail_result=None): ...@@ -544,6 +544,7 @@ def kick(env, mail_result=None):
# Doesn't exist. # Doesn't exist.
administrator = get_system_administrator(env) administrator = get_system_administrator(env)
if source == administrator: return # don't make an alias from the administrator to itself --- this alias must be created manually
add_mail_alias(source, administrator, env, do_kick=False) add_mail_alias(source, administrator, env, do_kick=False)
results.append("added alias %s (=> %s)\n" % (source, administrator)) results.append("added alias %s (=> %s)\n" % (source, administrator))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment