Zimbra: changing postfix parameters
I found the solution to my own problem. By looking at the file /opt/zimbra/conf/zmmta.cf, I saw the following lines:
if VAR zimbraMtaMyNetworks
POSTCONF mynetworks VAR zimbraMtaMyNetworks
fi
With zmprov I can check the current settings and change them:
zmprov getServer servername.mydomain | grep zimbraMtaMyNetworks
zmprov modifyServer servername.mydomain zimbraMtaMyNetworks "127.0.0.0/8 [...]"
postfix reload
And the problem is solved. Xeon suggested an alternative and simpler way:
You can also change this in the Admin Console under Server Settings -> MTA -> MTA Trusted Networks
Related videos on Youtube
stivlo
I'm a software developer, living in London. I'm interested in programming and system administration, in particular in the following areas: Java, JSP, JSTL, Ant, Maven TDD, JUnit, Mockito, Hibernate, JPA Spring Framework, Apache Lucene, iText PDF Amazon AWS: EC2, SimpleDB, SES, S3 Javascript, ExtJS, jQuery, Perl, PHP Linux, Postfix, Apache, Tomcat Currently learning Natural Language Processing with Gate My blog about programming & sysadm & travel: http://www.stefanolocati.it/ My github repos: https://github.com/stivlo Why I like stackoverflow: when I was in the University's Unix lab, I could ask questions to the gurus passing their days there and have wonderful inputs to solve practical problems and to improve my skills; being in stackoverflow, is a bit like hanging in the lab again. No, wait, actually it's much better, because of the wide skillset and quantity of geeks.
Updated on September 18, 2022Comments
-
stivlo almost 2 years
I would like to change mynetworks Postfix configuration parameter in Zimbra 7 on Debian GNU/Linux 5.0.
I tried the following (as zimbra user):
$ zmlocalconfig -e postfix_mynetworks="127.0.0.0/8 [...]" $ postconf -e mynetworks="127.0.0.0/8 [...]" $ zmmtactl reload $ postfix check $ postfix reload
However
$ postconf mynetworks
Shows still the old value! Anyone knows why and how to fix this? Thank you in advance
UPDATE After office hours I've even tried
# /etc/init.d/zimbra stop # /etc/init.d/zimbra start
However the parameter is still not updated.
UPDATE 2
$ zmlocalconfig postfix_mynetworks
Shows the updated value
$ zmmtactl reload Rewriting configuration files... postfix/postfix-script: refreshing the Postfix mail system Stopping saslauthd...done. Starting saslauthd...done.
But sadly postconf mynetworks still shows the old value. Running again postconf -e sets the value and gets lost at the first postfix reload...
-
xeon about 13 yearsYou can also change this in the Admin Console under Server Settings -> MTA -> MTA Trusted Networks.
-
stivlo about 13 years@xeon, thank you, that's a good suggestion, why don't you post it as an answer?
-