path: root/conf
diff options
authorThomas Arendsen Hein <>2008-03-05 17:13:15 (GMT)
committerThomas Arendsen Hein <>2008-03-05 17:13:15 (GMT)
commit725392d30fff09f2359c77a7996336b9aa84e47d (patch)
treeb4bacd9288ec437030ff7dc3c714df31cc5f85f1 /conf
parent5f2bba6a0905e0c9fa65dd71ebb6e6671f9ce2e9 (diff)
Add postfix header_checks
Fixes kolab/issue2350 (Email from buggy Lotus notes client not accepted by Cyrus) and filter some MUA headers to not allow receiving mails which are already marked as read, flagged, etc.
Diffstat (limited to 'conf')
2 files changed, 25 insertions, 0 deletions
diff --git a/conf/templates/ b/conf/templates/
new file mode 100644
index 0000000..e6d7220
--- /dev/null
+++ b/conf/templates/
@@ -0,0 +1,18 @@
+# this file is automatically written by the Kolab config backend
+# manual additions are lost unless made to the template in the Kolab config
+# directory
+# The template is @sysconfdir@/kolab/templates/header_checks.template
+# Cyrus does not like empty Message-Id: headers, see kolab/issue2350
+/^Message-Id:[[:space:]]*$/ IGNORE
+# Do not allow receiving mails which are already marked as read, flagged, etc.
+/^Status:/ IGNORE
+/^X-Status:/ IGNORE
+/^X-Label:/ IGNORE
diff --git a/conf/templates/ b/conf/templates/
index ab3b78d..3270ceb 100644
--- a/conf/templates/
+++ b/conf/templates/
@@ -85,6 +85,13 @@ local_recipient_maps = $virtual_alias_maps, $alias_maps
# Don't parse and modify headers of message/rfc822 attachments
disable_mime_input_processing = yes
+# enable header_checks (not for attachment headers):
+header_checks = regexp:@emailserver_confdir@/header_checks
+# disable_mime_input_processing = yes already implies that attachment headers
+# are not being checked, but just to be sure:
+mime_header_checks =
+nested_header_checks =
## only use local_transport or a higher recipent_limit if issue825 is fixed
# local delivery, not using postfix local(8)
#local_transport = kolabmailboxfilter