diff options
author | Tomas Touceda <chiiph@leap.se> | 2013-04-25 13:01:01 -0300 |
---|---|---|
committer | Tomas Touceda <chiiph@leap.se> | 2013-05-07 14:02:12 -0300 |
commit | 23fbf0eabb6563b05a7264dff63af7fbe64cfdff (patch) | |
tree | d3a4dad531cd938f11ccc999e15782d86ea7e81e /src/leap/mx/alias_resolver.py | |
parent | 7d2756dd120800899f30b74ca68787e1044bed7c (diff) |
Simplify check recipient access, change the owner field in mail_receiver
Diffstat (limited to 'src/leap/mx/alias_resolver.py')
-rw-r--r-- | src/leap/mx/alias_resolver.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/mx/alias_resolver.py b/src/leap/mx/alias_resolver.py index 8155ff9..3f93f0d 100644 --- a/src/leap/mx/alias_resolver.py +++ b/src/leap/mx/alias_resolver.py @@ -53,6 +53,10 @@ class AliasResolverFactory(postfix.PostfixTCPMapDeferringDictServerFactory): orig_key = key try: logger.debug("Processing key: %s" % (key,)) + if key.find("@") == -1: + logger.debug("Ignoring key since it's not an email address") + return None + key = key.split("@")[0] key = key.split("+")[0] logger.debug("Final key to query: %s" % (key,)) |