Need help setting "Disposition-Notification-To" to external mailaddress

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Kastenmaier
Posts: 2
Joined: Sat Sep 13, 2014 2:24 am

Need help setting "Disposition-Notification-To" to external mailaddress

Postby Kastenmaier » Wed Jan 11, 2012 7:48 am

Hello
I want to set "Disposition-Notification-To" for mail adresses in a domain of the zcs, to an external mail adress.
Background:

The mails of the users in this account are sent over mta (which works great).

The external recipient of mails get as answer mail adress the mta mail adress (lets say mail.t-online.de).

But if mail notification is enabled, the "Disposition-Notification-To" in Mail header is the zimbra adress (lets say user.zimbra.org).
Is it possible to set "Disposition-Notification-To" to mail.t-online.de?
Thanks for your assistance.
Best regards

Randolf Kastenmaier


User avatar
dominix
Posts: 31
Joined: Sat Sep 13, 2014 1:07 am
Location: Pacific sud
ZCS/ZD Version: 7.2.7 ... 8.8.12
Contact:

Re: Need help setting "Disposition-Notification-To" to external mailaddress

Postby dominix » Thu Aug 04, 2016 8:27 pm

I am interested in that feature too.
User avatar
andreaswolske
Posts: 29
Joined: Tue Nov 26, 2013 11:24 am
Location: Berlin
ZCS/ZD Version: Release 8.8.12_GA_3794.RHEL7_64_201
Contact:

Re: Need help setting "Disposition-Notification-To" to external mailaddress

Postby andreaswolske » Fri Aug 05, 2016 9:09 am

I might have an idea: Maybe Postfix parameter header_checks will do the trick

- http://www.postfix.org/postconf.5.html#header_checks
- http://www.postfix.org/header_checks.5.html

Code: Select all

postconf -e 'header_checks = pcre:/opt/zimbra/conf/pf_header_checks'


(I'm not sure if prce: or regexp: should be used as type of map - no time to read them manual yet)

and in /opt/zimbra/conf/pf_header_checks add

Code: Select all

# Filter mail header 'From:' email address @domain.de, and insert new header.
/^From:john.doe@domain.de.*/i PREPEND Disposition-Notification-To: john.doe@mail.t-online.de


Of cause this idea needs testing and and the regex needs refining but the basic idea should work and also be update-safe.
Also it does not consider an existing Disposition-Notification-To header which should be modified.

BR

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 10 guests