Results 1 to 3 of 3

Thread: [SOLVED] Correct zmlocalconfig -e Syntax for New Postfix Parameter?

  1. #1
    LMStone's Avatar
    LMStone is offline Moderator
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,366
    Rep Power
    10

    Default [SOLVED] Correct zmlocalconfig -e Syntax for New Postfix Parameter?

    When we build a Zimbra server NAT'd, we still want the box to accept emails sent in the domain literal format.

    To do that, main.cf in Postfix needs to be modified to change the $mydestination line as follows:

    $mydestination = localhost, [public ip of server]

    (And yes, those square brackets are required by Postfix as they stop Postfix from doing a DNS lookup.)

    Since there is no documentation I can find on zmlocalconfig -e allowed syntax, I'm nervous about running:

    zmlocalconfig -e postfix_mydestination=localhost, [publicipofserver]

    Right now, we just edit main.cf manually and reload Postfix, but as the number of NAT'd Zimbra servers we take care of goes up, this gets kind of old to have to edit main.cf after each time a zmcontrol stop; zmcontrol start is run.

    Any zmlocalconfig gurus out there?

    Thanks!
    Mark

  2. #2
    brian is offline Project Contributor
    Join Date
    Jul 2006
    Posts
    623
    Rep Power
    9

    Default

    Normally just a single quote would work for zmlocalconfig but you really want the ldap globalconfig setting zimbraMtaMyDestination if you want it applied automatically in main.cf

    Code:
    beta:~ zimbra$ zmprov gacf zimbraMtaMyDestination
    zimbraMtaMyDestination: localhost
    beta:~ zimbra$ zmprov mcf zimbraMtaMyDestination 'localhost, [192.168.1.2]'
    beta:~ zimbra$ zmprov gacf zimbraMtaMyDestination
    zimbraMtaMyDestination: localhost, [192.168.1.2]
    beta:~ zimbra$ libexec/zmmtaconfig mta
    beta:~ zimbra$ postconf mydestination
    mydestination = localhost, [192.168.1.2]
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    LMStone's Avatar
    LMStone is offline Moderator
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,366
    Rep Power
    10

    Default

    Quote Originally Posted by brian View Post
    Normally just a single quote would work for zmlocalconfig but you really want the ldap globalconfig setting zimbraMtaMyDestination if you want it applied automatically in main.cf

    Code:
    beta:~ zimbra$ zmprov gacf zimbraMtaMyDestination
    zimbraMtaMyDestination: localhost
    beta:~ zimbra$ zmprov mcf zimbraMtaMyDestination 'localhost, [192.168.1.2]'
    beta:~ zimbra$ zmprov gacf zimbraMtaMyDestination
    zimbraMtaMyDestination: localhost, [192.168.1.2]
    beta:~ zimbra$ libexec/zmmtaconfig mta
    beta:~ zimbra$ postconf mydestination
    mydestination = localhost, [192.168.1.2]
    Perfect!

    Thanks!

    But let me ask a few dumb questions...

    1. Where is the documentation indicating where different Postfix settings are stored please? There is no *.in file for Postfix, and running zmprov gacf doesn't clearly indicate which variable impact Postfix's main.cf file (which we are used to tweaking as we have built many Postfix servers).

    2. Why doesn't Zimbra adhere to a standard configuration methodology? Either use *.in files, or keep things in LDAP (or MySQL, or wherever), but pick one and be done with it. (And preferably pick one method where user-supplied customizations survive version upgrades.) SuSE does this with the httpd.conf file. If the user hand edits it, SuSE's YaST will never beautify it ever again. But, SuSE also allows for adding end-user customizations to /etc/apache2/conf.d, and there is already an include statement in httpd.conf incorporating that directory. In this way, users can customize Apache however they see fit, and SuSE's scripts can continue to upgrade Apache as needed--without blowing away the end user's configs. Something like that for Zimbra would be welcomed!

    All the best,
    Mark
    Last edited by LMStone; 09-05-2008 at 12:06 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Upgrade from 5.0.2 to 5.0.6
    By fconil in forum Installation
    Replies: 2
    Last Post: 06-10-2008, 04:49 PM
  2. i made a mess 4.5.6 -> 4.5.10 to a future 5.0 FOSS
    By innercy in forum Installation
    Replies: 7
    Last Post: 01-09-2008, 07:05 PM
  3. Server platform change RH to Ubuntu issues
    By marke in forum Administrators
    Replies: 5
    Last Post: 11-07-2007, 12:27 PM
  4. Mysql error on install
    By tommygun in forum Installation
    Replies: 17
    Last Post: 05-29-2007, 09:29 PM
  5. ZIMBRA!!!!! Error zmcontrol status and others
    By orison in forum Installation
    Replies: 8
    Last Post: 02-03-2007, 07:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •