chiark / gitweb /
spam.m4: Rename X-SpamAssassin-* headers to X-Distorted-SpamAssassin-*.
[exim-config] / local.m4
index 582e1ce482a888a5e2367cff469f9fed63454c11..65939a2e50c9acebedf875ca349ddd4f838249a2 100644 (file)
--- a/local.m4
+++ b/local.m4
@@ -37,41 +37,9 @@ m4_define(<:FILTER_LOCALUSER:>,
 SECTION(global, priv)m4_dnl
 local_from_suffix = CONF_user_suffix_list
 
-SECTION(global, process)m4_dnl
-## Restrict users to plausible envelope sender addresses.  This is
-## surprisingly fiddly.  What I actually want to say is that the local part
-## must match ^$sender_ident(\$|-) and the domain part must match an
-## appropriate domain; but writing a conjunction is rather tricky.  And so we
-## must burn some addresslist variables.
-addresslist wrong_local = ! +user_extaddr
-addresslist wrong_domain = ! *@+public
-addresslist wrong_address = +wrong_local : +wrong_domain
-untrusted_set_sender = : \
-       ${if exists {CONF_sysconf_dir/auth-sender.conf} \
-            {${lookup {$sender_ident} \
-                      lsearch {CONF_sysconf_dir/auth-sender.conf} \
-                      {$value}}}} : \
-       ${LOOKUP_DOMAIN($sender_address_domain,
-               {${if and {{match_local_part {$sender_ident} {+dom_users}} \
-                          {match_local_part {$sender_address_local_part} \
-                                            {+dom_locals}}} \
-                     {*}}})} : \
-       ! +wrong_address
-
 ###--------------------------------------------------------------------------
 ### Forwarding and redirection for incoming mail.
 
-SECTION(routers, alias)m4_dnl
-## Look up the local part in the address map.
-alias:
-       driver = redirect
-       allow_fail = true
-       allow_defer = true
-       user = CONF_filter_user
-       FILTER_TRANSPORTS
-       local_parts = nwildlsearch; CONF_alias_file
-       data = ${expand:$local_part_data}
-
 SECTION(routers, real)m4_dnl
 ## A special hack to get mail to a user who has a forward file.  Only for
 ## special effects.