Skip to main content

dovecot[3005756]: master: Warning: SIGHUP received - reloading configuration

Comments

5 comments

  • cPRex Jurassic Moderator

    Hey there!  There's several reasons this could be happening besides log rotation, and one of the most interesting things is that most of them seem to happen at 2:32 and 17:32, which some other more random restarts in there.

    That leads me to believe a specific task is running at that time causing the issue.

    Would you be able to monitor the server during that period to see if you can detect anything out of the ordinary on the system happening then?

    0
  • Luis Falcon

    This issue is causing bigger problems every time, these are still occurring at 17:32 every 48 hours more or less, tracing back I found these:

     

    [root@host: /usr/local/cpanel/logs]# tail splitlogs_log 
    [2026-03-06 17:32:51] info: Clean shutdown of splitlogs (EOF+SIGTERM).
    [2026-03-06 17:32:51] info: Clean shutdown of splitlogs (EOF+SIGTERM).
    [2026-03-06 17:32:51] info: Begin splitlog processing
    [2026-03-06 17:32:51] info: Clean shutdown of splitlogs (EOF+SIGTERM).
    [2026-03-06 17:32:51] info: Begin splitlog processing
    [2026-03-06 17:32:51] info: Begin splitlog processing

     

    Is there a way to change the time these occur? there is nothing in the crontab running at that time, if they have to run I need them to run at midnight, not at peak usage hour...

    0
  • cPRex Jurassic Moderator

    Since this issue has been going on for five months (at least) I would recommend submitting a ticket so this can be analyzed directly on the machine.

    0
  • Luis Falcon

    If you landed here from a google search:

    AutoSSL, yes, you heard that right, AutoSSL. 
    This service apparently runs at minute 32 every three hours.

    [root@host: ~]# cat /etc/cron.d/cpanel_autossl
    32 2,5,8,11,14,17,20,23 * * * root /usr/local/cpanel/bin/autossl_check --all

    I'm not sure (and honestly don't care that much) about the exact mechanism AutoSSL uses to reload the Dovecot configuration, but all the timestamps coincide. Every single one of them.

    My best guess is that AutoSSL runs and, most of the time, comes back with no new certificates to install. However, when it does have a new certificate to install, it reloads the Dovecot (and other services') configuration so they can pick up the new certificate.

    My fix was not to fight this. Instead, I simply configured Dovecot not to disconnect users during a graceful reload:

    shutdown_clients = no

    As of my installed version of cPanel (134.0.35) and Dovecot (2.4.2) the change was made in 

    /var/cpanel/conf/dovecot/main
     
    So it survives cPanel upgrades and that kind stuff, just append the line to that file and then
     
    /usr/local/cpanel/scripts/builddovecotconf
     
    And restart the service
     
    That's what I did. A day later, I confirmed that another SIGHUP appeared in the logs, but this time none of the users were disconnected.
     
    I know is a tradeoff but having the users having to restart their clients for their email to work is worse.
    0
  • cPRex Jurassic Moderator

    Thanks for the update!

    It isn't interesting to me that a restart happens around the same time as AutoSSL work - as you've guessed, it needs to reload the certificate at some point.

    What is interesting is that you're seeing email disruptions when this happens when I don't have any other reports of this behavior causing issues.

    Are you able to create a ticket so this can be investigated directly on your system?

    0

Please sign in to leave a comment.