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!

Dovecot configuration different between cPanel and dovecot.conf

Discussion in 'E-mail Discussion' started by easy-hosting, Oct 9, 2018.

  1. easy-hosting

    easy-hosting Member

    Joined:
    Jan 21, 2015
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Every time I edit the Mailserver Configuration in cPanel and save it, it seems to default the settings in dovecot.conf. It is not saving the ciphers and SSL settings that I enter in cPanel.

    Some of the users of course have older OS/Mail client and so need TLSv1 turned on. When editing the settings and saving them, the dovecot.conf file has TLSv1 turned off, even though they are set as on in cPanel. It also reverts the cipher list.

    Any idea how and why this is happening? It is preventing some client devices from connecting.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,072
    Likes Received:
    215
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @easy-hosting

    The disclaimer at the top of the file should explain this:

    Code:
    ## Dovecot configuration file
    
    # NOTICE FOR CPANEL SYSTEMS
    # On cPanel servers this file is generated by combining a
    # template at /var/cpanel/templates/dovecot2.2/main.default
    # and a datastore at /var/cpanel/conf/dovecot/main
    #
    # The template may be customized by making a copy of it at
    # /var/cpanel/templates/dovecot2.2/main.local
    # similar to the way in which httpd.conf can be customized
    #
    # Direct edits of the rendered dovecot.conf file will not
    # be preserved when dovecot is updated.  Use the
    # "Mailserver Configuration" interface in WebHostManager instead.
    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. easy-hosting

    easy-hosting Member

    Joined:
    Jan 21, 2015
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hey Lauren,

    As advised in the original post, I had been using the "Mailserver Configuration" option to make the changes, but these changes don't reflect what gets stored and used in the dovecot.conf file.

    Shouldn't the settings in "Mailserver Configuration" be preserved, or at least used in the first place?

    Or do I have to manually make the customised template and then "Mailserver Configuration" changes will work?

    Cheers
     
  4. easy-hosting

    easy-hosting Member

    Joined:
    Jan 21, 2015
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Renamed the /var/cpanel/templates/dovecot2.2/main.local file as this was overwriting any settings being applied by "Mailserver Configuration". I may look at customising it, but don't really see the point if it won't allow changes to be made from within WHM.
     
  5. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,072
    Likes Received:
    215
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @easy-hosting


    The main.default is where the mailserver configuration changes are placed for the most part (between there and the datastore). If you have a main.local in place no matter what you do it's going to overwrite the changes in the mailserver config.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice