Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Dovecot customised config main.local overwritten by update

Discussion in 'E-mail Discussions' started by km9, Apr 26, 2017.

  1. km9

    km9 Member

    Joined:
    Apr 5, 2017
    Messages:
    15
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Asia
    cPanel Access Level:
    Root Administrator
    I read in Configure Dovecot - Documentation - cPanel Documentation and Dovecot Custom Configuration. that I should be able to make permanent changes to the dovecot configuration by creating and modifying a 'main.local' file.

    Last week, after the update to 64.0 (build 15) I noticed some unexpected behaviour, and found this in the logs:
    Code:
    [2017-04-19 22:19:38 +0700] This system’s custom Dovecot configuration appears to be older than the cPanel-supplied configuration. The system will rename the custom configuration to “/var/cpanel/templates/dovecot2.2/main.default.outdated.2017-04-19T15:19:38Z.2924591
    2” and install a default configuration.
    [2017-04-19 22:19:39 +0700] The local template file '/var/cpanel/templates/dovecot2.2/main.local' is invalid. The system will rename
    it to /var/cpanel/templates/dovecot2.2/main.local.broken.1492615178.uq4E4yAAP6aXjr9R.
    [2017-04-19 22:19:39 +0700] This system’s custom Dovecot configuration appears to be older than the cPanel-supplied configuration. The system will rename the custom configuration to “/var/cpanel/templates/dovecotSNI/main.default.outdated.2017-04-19T15:19:39Z.8056296
    7” and install a default configuration.
    
    And I arrived at work to find the configuration file reset to default and all my customisation bypassed. Should I be prepared for this to happen on every update in the future?
     
    #1 km9, Apr 26, 2017
    Last edited by a moderator: Apr 26, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    We made some updates to the Dovecot configuration in cPanel 64 that affects template customization. Here's the relevant section from the cPanel 64 Release Notes regarding this change:

    Thank you.
     
  3. km9

    km9 Member

    Joined:
    Apr 5, 2017
    Messages:
    15
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Asia
    cPanel Access Level:
    Root Administrator
    Thanks Michael, That would have been great if I'd seen that before the update! I'm relatively new to cPanel, I guess the savvy users have switched somewhere to only update on demand, not automatically.

    Thanks for the edit too, I couldn't see the syntax for code anywhere. (I've found it now)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page