How to add X-Envelope-To header: Difference between revisions
(Created page with "=How to add X-Envelope-To header= {{KB|{{ZC}}|{{ZCS 8.6}}|{{ZCS 8.5}}|{{ZCS 8.0}}|}} ==Resolution== ---- 1. Create a file: vim /opt/zimbra/postfix/conf/prepend_header.re...") |
(No difference)
|
Revision as of 11:20, 1 November 2016
How to add X-Envelope-To header
Resolution
1. Create a file:
vim /opt/zimbra/postfix/conf/prepend_header.re
append the line:
/(.+)/ PREPEND X-Envelope-To: $1
2. Add the following line in /opt/zimbra/conf/zmconfigd/smtpd_recipient_restrictions.cf
check_recipient_access pcre:/opt/zimbra/postfix/conf/prepend_header.re
It should look like:
%%contains VAR:zimbraMtaRestriction check_client_access lmdb:/opt/zimbra/conf/postfix_blacklist%% %%contains VAR:zimbraServiceEnabled cbpolicyd^ check_policy_service inet:localhost:%%zimbraCBPolicydBindPort%%%% check_recipient_access pcre:/opt/zimbra/postfix/conf/prepend_header.re reject_non_fqdn_recipient permit_sasl_authenticated permit_mynetworks
3. Finally restart:
zmmtactl restart;zmmailboxdctl restart;zmconfigdctl restart
Additional Content
Beware, that this solution breaks the privacy of Bcc recipients.
There is also a bug opened for that here.