Mail Queue Settings changes to defaults

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
alwaysk2
Posts: 9
Joined: Fri Nov 18, 2016 10:25 am

Mail Queue Settings changes to defaults

Post by alwaysk2 »

Apologies but I searched a lot for my answer on the forum but did not get any answer so thought to post it a topic if someone helps.
[zimbra@mail root]$ zmcontrol -v
Release 8.7.1_GA_1670.RHEL7_64_20161025045328 RHEL7_64 FOSS edition.
I am trying to setup some mail queue settings permanently in main.cf but they are getting reset and coming on to default values.

None of the below commands are setting up values in postfix over zimbra user.

Code: Select all

postconf -e maximal_queue_lifetime=0
postconf -e bounce_queue_lifetime=0
postfix reload
Another way:

Code: Select all

zmlocalconfig -e postfix_bounce_queue_lifetime=0
zmlocalconfig -e postfix_maximal_queue_lifetime=0
postfix reload
Once I hit postfix reload command it removes new values and sets up default values to = 5d.

Is there any other process that needs to be followed to set this?
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Mail Queue Settings changes to defaults

Post by DualBoot »

settings have moved to ldap :

Code: Select all

zimbra@srv-zproxy01:~$ zmprov gs $(zmhostname) | grep 5d$
zimbraMtaBounceQueueLifetime: 5d
zimbraMtaMaximalQueueLifetime: 5d
zimbra@srv-zproxy01:~$ 
alwaysk2
Posts: 9
Joined: Fri Nov 18, 2016 10:25 am

Re: Mail Queue Settings changes to defaults

Post by alwaysk2 »

Thank you for your guidance, however I am newbie to zimbra. How can we change these values?
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Mail Queue Settings changes to defaults

Post by phoenix »

alwaysk2 wrote:Thank you for your guidance, however I am newbie to zimbra. How can we change these values?
Try searching the forums and the wiki, this subject has been covered many times.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
alwaysk2
Posts: 9
Joined: Fri Nov 18, 2016 10:25 am

Re: Mail Queue Settings changes to defaults

Post by alwaysk2 »

I already tried searching this but all wiki and forum comes to following commands which does not put new values as permanent.

Code: Select all

postconf -e maximal_queue_lifetime=0
postconf -e bounce_queue_lifetime=0
zmlocalconfig -e postfix_bounce_queue_lifetime=0
zmlocalconfig -e postfix_maximal_queue_lifetime=0
Can it be a bug?
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Mail Queue Settings changes to defaults

Post by DualBoot »

The wiki is not up to date.
If a setting has moved to the ldap, the zmprov should be the tool you need to use.
alwaysk2
Posts: 9
Joined: Fri Nov 18, 2016 10:25 am

Re: Mail Queue Settings changes to defaults

Post by alwaysk2 »

Thanks dualboot for giving idea.

Following commands solved the issue:

Code: Select all

zmprov mcf zimbraMtaBounceQueueLifetime 0
zmprov mcf zimbraMtaMaximalQueueLifetime 0
hope this helps others.
Post Reply