Hi,

I am a little bit stuck with prepending one and exactly one additional header 
to outgoing mails that are sent from local users. In fact I want to add a 
VBR-Info:- header for outgoing mails.

Local users use a seperate MSA port (own IP-socket in master.cf). The socket is 
configured with smtpd_proxy_filter off and using content_filter. So the whole 
mails gets queued before giving it to amavis (in my setup).

Inside the MSA part, I first defined a check_sender_access rule and thought 
that would do the job. But today I saw that for _each_ To: address a header is 
prepended. So if I write a mail with eight recipients, I see eight 
VBR-Info:-header lines in the result.

So I thought I need a different method and configured header_checks:

# header_checks

if !/^VBR-Info:.*roessner-net(work-solutions)?/
/^From:....@roessner-net\.com/                 PREPEND VBR-Info: 
md=roessner-net.com; mv=dwl.spamhaus.org; mc=all
/^From:....@roessner-network-solutions\.com/   PREPEND VBR-Info: 
md=roessner-network-solutions.com; mv=dwl.spamhaus.org; mc=all
endif

# Any other checks for incoming and outgoing mail goes here

But this does not change anything. Same result. And I fear I understand why. It 
is the cleanup that does the checks for each outgoing mail. Is that right?

Do you have any idea, how I could solve this?

Thanks in advance
Christian

Reply via email to