[exim] Exim4 | Modify headers

Top Page
Delete this message
Reply to this message
Author: elrippo
Date:  
To: exim-users
Subject: [exim] Exim4 | Modify headers
>> Hi there.
>>
>> Thanks to your hint, i managed to remove the wanted headers.
>>
>> By placing the variables headers_add and headers_remove in
>> /etc/exim4/conf.d/transport/30_exim4-config_remote_smtp, the headers are
>> modified as wanted.
>>
>> But, this only works on smtp connections. Unfortunately dis does not apply

on
>> local users. If user1 sends a mail to user2 on the same system, the headers
>> are not modified.
>>
>> How can i tell exim to modify the headers systemwide?
>>
>> Thank you very much in advance!!!


> set the same values on all the other transports.


> using a macro for the value and defining the macro in a central location
> ( eg: /etc/exim4/conf.d/main/00_local_config ) will make administration
> easier.



Thank you very much for your post.

I will try the central configuration also, at the moment i did modify these
files with removed and added headers. At the moment beeing, i am very happy
with this configuration!
I hope this helps others, who want to modify their headers.

Kind regards!

/etc/exim4/conf.d/transport/30_exim4-config_remote_smtp

/etc/exim4/conf.d/router/900_exim4-config_local_user

/etc/exim4/conf.d/router/mmm_mail4root

/etc/exim4/conf.d/router/200_exim4-config_primary