New file `auth-sender.conf' lists extra allowed senders for users.
[exim-config] / base.m4
diff --git a/base.m4 b/base.m4
index d312eb5..90e20f2 100644 (file)
--- a/base.m4
+++ b/base.m4
@@ -270,6 +270,15 @@ mail_check_auth:
        ## Make sure that the local part is one that the authenticated sender
        ## is allowed to claim.
        deny     message = Sender address forbidden to calling user
+               !condition = \
+                       ${if exists {CONF_sysconf_dir/auth-sender.conf} \
+                            {${lookup {$acl_c_user} \
+                                      lsearch \
+                                      {CONF_sysconf_dir/auth-sender.conf} \
+                                      {${if match_address \
+                                            {$sender_address} \
+                                            {+value}}} \
+                                      {false}}}}
                !condition = ${LOOKUP_DOMAIN($sender_address_domain,
                               {${if and {{match_local_part \
                                            {$acl_c_user} \