main.cf looses configuration every morning
Results 1 to 10 of 10

Thread: main.cf looses configuration every morning

  1. #1
    Active Member
    Join Date
    Jun 2012
    Posts
    16

    main.cf looses configuration every morning

    On Zimbra 8.0.7, I used hash for transport_maps, but that technology was abandoned on 8.5, so I had to use lmdb instead, so I reconfigured it this way:

    postmap /opt/zimbra/postfix/conf/piler

    postconf -e transport_maps="lmdb:/opt/zimbra/postfix/conf/piler proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"

    zmlocalconfig -e postfix_transport_maps="lmdb:/opt/zimbra/postfix/conf/piler proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"

    zmcontrol restart

    That works until the next morning, when I check main.cf transport_maps reverted again to transport_maps="hash:/opt/zimbra/postfix/conf/piler proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"

    I've also tried to manually editing main.cf and replacing hash with lmdb but it still resets every morning, can this be somehow related to ZXBackup schedule that runs every dawn?

    Thanks

    Cassio

  2. #2
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,363
    Hello cassioac!

    I moved this thread to the "Zimbra HowTo" section as it's not related to ZeXtras Backup.

    I don't have any specific experience with 8.5 yet regarding postfix customizations but I assume that, just as in any previous version, changes must be done to the zmconfd.cf (or zmmta.cf in older versions) and not to the main.cf as that's rewritten by Zimbra...

    Have a nice day,
    Cine
    the ZeXtras Team

  3. #3
    Active Member
    Join Date
    Jun 2012
    Posts
    16
    I think you meant zmconfigd.cf..

    Anyway, the following line:zmlocalconfig -e postfix_transport_maps="lmdb:/opt/zimbra/postfix/conf/piler proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"

    should take care of it, shouldn't it?

  4. #4
    CTO ZeXtras Employee d0s0n's Avatar
    Join Date
    Apr 2011
    Posts
    570
    No, shouldn't... Just as in any previous versions, like Cine said.

    D0s0n
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    Head of ZeXtras System Administrators

  5. #5
    Active Member
    Join Date
    Jun 2012
    Posts
    16
    Strange, all I needed to do on 8.0.7 was the commands I mentioned before and the configurations sticked to main.cf

    So can someone please point me out what exactly I need to do with zmconfigd.cf?

    Shall I just put

    transport_maps=lmdb:/opt/zimbra/postfix/conf/piler proxy:ldap:/opt/zimbra/conf/ldap-transport.cf

    in it?

    zmconfigd.cf doesn't look formatted that way

    Thanks

    Cassio

  6. #6
    Member Participant
    Join Date
    Jan 2013
    Location
    Indonesia
    Posts
    31
    Hi Cassio,

    can you paste result of this command :
    Code:
    zmprov gs `zmhostname` | grep ldap-transport
    Best Regards,

    ​Ahmad Imanudin - Sharing is Beautiful !
    Personal Blog [EN] :http://www.imanudin.net
    Personal Blog [ID] :http://www.imanudin.com

  7. #7
    Active Member
    Join Date
    Jun 2012
    Posts
    16
    Hi Ahmad, thanks for your reply.

    Here's the output:

    zimbraMtaTransportMaps: hash:/opt/zimbra/postfix/conf/piler proxy:ldap:/opt/zimbra/conf/ldap-transport.cf

    So how do I change this?



    Best Regards,

    Cassio

  8. #8
    Member Participant
    Join Date
    Jan 2013
    Location
    Indonesia
    Posts
    31
    Hi Cassio,

    Try this command

    Code:
    zmprov ms `zmhostname` zimbraMtaTransportMaps 'lmdb:/opt/zimbra/postfix/conf/piler,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf'
    Please let me know if you have still problem
    Best Regards,

    ​Ahmad Imanudin - Sharing is Beautiful !
    Personal Blog [EN] :http://www.imanudin.net
    Personal Blog [ID] :http://www.imanudin.com

  9. #9
    Active Member
    Join Date
    Jun 2012
    Posts
    16
    I've done that (without the comma) and now the output for

    zmprov gs `zmhostname` | grep ldap-transport

    is:

    zimbraMtaTransportMaps: lmdb:/opt/zimbra/postfix/conf/piler proxy:ldap:/opt/zimbra/conf/ldap-transport.cf


    Let's see if the configuration sticks now, I'll post the results tomorrow.

    Thank you very much man.

    Best Regards,

    Cassio

  10. #10
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,363
    Hello everybody!

    I just noticed that an offical response about this was given on the official Zimbra forums HERE.

    For the sake of completeness, previous Zimbra versions required both a change in the zmconfigd.cf file

    Code:
    zimbra@mail:~$ cat /opt/zimbra/conf/zmconfigd.cf |grep transport
     POSTCONF transport_maps    LOCAL postfix_transport_maps
    and the "postconf -e"/"zmlocalconfig -e" commands mentioned in the OP.


    Have a nice day,
    Cine
    the ZeXtras Team

Bookmarks

Posting Permissions

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