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.

SOLVED Dovecot trash not deleting

Discussion in 'E-mail Discussions' 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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,086
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,086
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page