Adding custom header
Hi guys. My mailserver uses a relayhost which basically only signs messages with DKIM and delivers them. I would like to add a custom header, something like "X-Abuse: if spam/uce email ab...@mydomain.com". How should I go about, without postfix adding the header twice (before and after dkimfilter-out)? Thanks. -JK
Re: Adding custom header
Jack Knowlton: > Hi guys. > My mailserver uses a relayhost which basically only signs messages with > DKIM and delivers them. > I would like to add a custom header, something like "X-Abuse: if spam/uce > email ab...@mydomain.com". > How should I go about, without postfix adding the header twice (before and > after dkimfilter-out)? See the discussion of receive_override_options in the FILTER_README documentation (http://www.postfix.org/FILTER_README.html). Wietse
Re: Adding custom header
On Wed, February 22, 2012 1:20 am, Wietse Venema wrote: > Jack Knowlton: >> Hi guys. >> My mailserver uses a relayhost which basically only signs messages with >> DKIM and delivers them. >> I would like to add a custom header, something like "X-Abuse: if >> spam/uce >> email ab...@mydomain.com". >> How should I go about, without postfix adding the header twice (before >> and >> after dkimfilter-out)? > > See the discussion of receive_override_options in the FILTER_README > documentation (http://www.postfix.org/FILTER_README.html). > > Wietse > Thanks. It does seem to work :) Now I would like to add another header, right under the X-Abuse. How can I perform that? I tried with the same regex based on /^Subject: .*/, but it doesn't seem to be adding both.. -JK
Re: Adding custom header
Jack Knowlton: > I would like to add a custom header, something like "X-Abuse: if > spam/uce email ab...@mydomain.com". How should I go about, without > postfix adding the header twice (before and after dkimfilter-out)? Wietse > See the discussion of receive_override_options in the FILTER_README > documentation (http://www.postfix.org/FILTER_README.html). Jack Knowlton: > Thanks. It does seem to work :) > > Now I would like to add another header, right under the X-Abuse. > How can I perform that? I tried with the same regex based on > /^Subject: .*/, but it doesn't seem to be adding both.. Postfix header/body_checks are not intended to provide a complete message content manipulation system. In this case, a Milter plug-in would be more appropriate. Applying header/body_checks etc. rules to output from header/body_checks rules would be unsafe. Wietse