summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-11-08 15:16:56 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-11-08 15:16:56 +0000
commit606ef29e5361d3a832efb855986e322132baf48e (patch)
tree22c4c5b6cb49969986d266d224ec05bb2def362c
parent42b5c1b351ab060cebc369ef56fdb76a9f744e38 (diff)
downloadpykolab-606ef29e5361d3a832efb855986e322132baf48e.tar.gz
Use correct recipient policy target user with sender_is_auth
-rwxr-xr-xbin/kolab_smtp_access_policy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/kolab_smtp_access_policy.py b/bin/kolab_smtp_access_policy.py
index 6daeefc..065553f 100755
--- a/bin/kolab_smtp_access_policy.py
+++ b/bin/kolab_smtp_access_policy.py
@@ -846,7 +846,7 @@ def verify_sender(policy_request):
if sender_is_delegate == False and sender_uses_alias == False and not sender_is_auth:
return False
- elif sender_is_delegate:
+ elif sender_is_delegate or sender_is_auth:
recipient_policy_domain = sender_domain
recipient_policy_sender = parse_address(policy_request['sender'])
recipient_policy_user = sender_user