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!

SOLVED Dovecot trash not deleting

Discussion in 'E-mail Discussion' started by cpanelinfoseeker, Dec 8, 2016.

Tags:
  1. cpanelinfoseeker

    cpanelinfoseeker Well-Known Member

    Joined:
    Oct 25, 2002
    Messages:
    325
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    NE Illinois
    cPanel Access Level:
    Root Administrator
    I have noticed that dovecot is not removing the deleted emails from the trash. I have verified that "Auto Expunge Trash" is checked and "Trash Expire Time" is 1 in Mailserver Configuration.

    It was working about 3 weeks ago. Running "/usr/local/cpanel/scripts/dovecot_auto_expunge_trash" shows
    No such file or directory when before it used to immediately remove the trash.

    Any help is appreciated.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    We changed the name of the /scripts/dovecot_auto_expunge_trash maintenance script to /scripts/dovecot_maintenance in cPanel version 58 and newer.

    Do you notice any error messages logged to /usr/local/cpanel/logs/error_log or output in the command line when running the "/scripts/dovecot_maintenance" script?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cpanelinfoseeker

    cpanelinfoseeker Well-Known Member

    Joined:
    Oct 25, 2002
    Messages:
    325
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    NE Illinois
    cPanel Access Level:
    Root Administrator
    Ran the command manually without error. I added the line into the root cron so it will update regularly.
    I really thought that having the setting in Mailserver Configuration would be all that I would need to do to have it delete automatically. Thanks for the update!
    Ron
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    You should not have to setup a manual cron job to run that command. It's part of the upcp maintenance script that's executed daily as part of this root cron job command:

    Code:
    /usr/local/cpanel/scripts/upcp --cron
    Thank you.
     
    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