~mdw
/
exim-config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lists.m4: Carve out the administratively anomalous hosts from +allnets.
[exim-config]
/
local.m4
diff --git
a/local.m4
b/local.m4
index
f3b5e9f
..
582e1ce
100644
(file)
--- a/
local.m4
+++ b/
local.m4
@@
-101,11
+101,20
@@
FILTER_ROUTER(dot_forward,
SECTION(routers, deliver)m4_dnl
## Deliver mail to a user, in the absence of any other instructions.
SECTION(routers, deliver)m4_dnl
## Deliver mail to a user, in the absence of any other instructions.
+m4_define(<:STRIP_HEADERS:>, <:m4_dnl
+ Content-Length, Status, X-IMAP, X-IMAPbase, m4_dnl
+ X-Keywords, X-Status, X-UID:>)m4_dnl
deliver:
driver = accept
check_local_user
transport = deliver
cannot_route_message = Unknown local part
deliver:
driver = accept
check_local_user
transport = deliver
cannot_route_message = Unknown local part
+ ## Strip headers used by Dovecot for its own purposes.
+ headers_remove = CLRSEP<::>FOREACH(<:SEP(:)$1:>, <:STRIP_HEADERS:>)
+ headers_add = CLRSEP<::>FOREACH(<:\
+ ${if def:h_$1:{X-Distorted-Renamed-$1: $h_$1:\n}}:>,
+ <:STRIP_HEADERS:>)
+
DIVERT(null)
###----- That's all, folks --------------------------------------------------
DIVERT(null)
###----- That's all, folks --------------------------------------------------