Exim: Force authenticated Users to only send from their authenticate domain


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Email » Exim

Exim: Force authenticated Users to only send from their authenticate domainLast Modified: Jun 21, 2019, 12:31 am
To make sure Users use their own domain in their From header, assuming you've got a newer exim.conf that supports:

/etc/exim.acl_check_message.pre.conf

create the file and add this code to it:

deny
 authenticated = *
 condition = ${if or {{ !eqi{${domain:$authenticated_id}} {$sender_address_domain} }\
                      { !eqi{${domain:{$authenticated_id}} {${domain:{${address:$header_From:}}} }\
                     }\
              }
 message = Your FROM address domain ( $sender_address_domain ) must match your domain name used in authenticated email user ( $authenticated_id ).

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST