Difference between revisions of "How to add X-Envelope-To header"

(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)

Latest revision as of 11:20, 1 November 2016

How to add X-Envelope-To header

   KB 23091        Last updated on 2016-11-1  

(0 votes)


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

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.

Verified Against: Zimbra Collaboration 8.6, 8.5, 8.0 Date Created: 01/11/2016
Article ID: https://wiki.zimbra.com/index.php?title=How_to_add_X-Envelope-To_header Date Modified: 2016-11-01

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Wiki/KB reviewed by SME1 SME2 COPY EDITOR Last edit by Teodor Vizirov
Jump to: navigation, search