sender canonical mapping

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
janusbar
Posts: 4
Joined: Wed Apr 17, 2024 7:11 pm

sender canonical mapping

Post by janusbar »

Hi!

I came across this article "https://wiki.zimbra.com/wiki/How_to_rew ... d_messages?
regarding mapping sender address.

There is one particular command in step 3

Code: Select all

zmprov mcf zimbraMtaSenderCanonicalMaps 'lmdb:/opt/zimbra/conf/postfix_sender_canonical'
that i have a question. How do I know if zimbraMtaSenderCanonicalMaps has an existing value? Next is how do I revert if I no longer need the mapping?

And the last command 'zmmtactl restart' will it have a huge impact on mails that are sent while the service is being restarted?
7224jobe
Outstanding Member
Outstanding Member
Posts: 287
Joined: Sat Sep 13, 2014 1:55 am
ZCS/ZD Version: 8.8.15_FOSS Patch38

Re: sender canonical mapping

Post by 7224jobe »

Hi, to get a config value use "zmprov gcf":

Code: Select all

zmprov gcf zimbraMtaSenderCanonicalMaps
Write down the current value of zimbraMtaSenderCanonicalMaps before changing it, then in the future you will be able to revert to the original value using "zmprov gcf". Take also a look at zmprov manual: https://wiki.zimbra.com/wiki/Zmprov

zmmtactl restarts Zimbra MTA to set the new config values you modified, so during that restart time mail flow is blocked. Usually it takes a few seconds to restart, so it is not a big deal.
janusbar
Posts: 4
Joined: Wed Apr 17, 2024 7:11 pm

Re: sender canonical mapping

Post by janusbar »

When i ran zmprov gcf zimbraMtaSenderCanonicalMaps it has no output. Does it mean that no values set? How do revert this to no value?
I ran the command using zimbra credentials, do I run it as root?
7224jobe
Outstanding Member
Outstanding Member
Posts: 287
Joined: Sat Sep 13, 2014 1:55 am
ZCS/ZD Version: 8.8.15_FOSS Patch38

Re: sender canonical mapping

Post by 7224jobe »

janusbar wrote: Tue May 21, 2024 3:55 pm When i ran zmprov gcf zimbraMtaSenderCanonicalMaps it has no output. Does it mean that no values set? How do revert this to no value?
I ran the command using zimbra credentials, do I run it as root?
Yes, it means that zimbraMtaSenderCanonicalMaps has no value set.
zmprov has to be run as zimbra user.
janusbar
Posts: 4
Joined: Wed Apr 17, 2024 7:11 pm

Re: sender canonical mapping

Post by janusbar »

How do I revert it back to no value?
Would there be side effects if I enable it? Based on your experience if any?
7224jobe
Outstanding Member
Outstanding Member
Posts: 287
Joined: Sat Sep 13, 2014 1:55 am
ZCS/ZD Version: 8.8.15_FOSS Patch38

Re: sender canonical mapping

Post by 7224jobe »

As far as I understood in your environment that attribute is already set to no value.
However you can set to no value using:

Code: Select all

zmprov mcf zimbraMtaSenderCanonicalMaps ''
I do not know if it can cause any side effect.
Post Reply