Mail messages disappeared

Joso

Member
Sep 21, 2021
20
4
3
Italy
cPanel Access Level
Website Owner
Hi, I'm having problems with my emails. The mailbox in question takes up about 1.2 GB of space on the server, but both from webmail and from the browsers I use (thunderbird on pc and IOS mail on mobile) they don't see all the mails.
Furthermore, on a weekly basis, i.e. every Saturday, the emails from the trash relating to the previous week disappear.

Given the space occupied by this mailbox, I assume that the messages are still stored somewhere on the server.
How do I recover them and make them visible again in their respective folders?
 

xpy-xpy

Well-Known Member
Jan 13, 2023
53
31
18
GE
cPanel Access Level
Root Administrator
What happens when you send a test message to the mailbox? Anything in /var/log/maillog ?

Has the hosting account been over quota recently?

Often reindexing the mailbox can help:



Messages disappearing from Trash weekly likely means that "Trash Expire Time" setting in dovecot server settings is set to 7 days.
 

Joso

Member
Sep 21, 2021
20
4
3
Italy
cPanel Access Level
Website Owner
What happens when you send a test message to the mailbox? Anything in /var/log/maillog ?

Has the hosting account been over quota recently?

Often reindexing the mailbox can help:



Messages disappearing from Trash weekly likely means that "Trash Expire Time" setting in dovecot server settings is set to 7 days.
Hi, in mailog there is only login and logout mail account, the quota is unlimited, so it's not a space issue.

I followed your suggest and reindexed the mailbox but nothing. Finally I checked "Trash Exipire Time" and it disabled.

can you give me any other suggestions to solve this problem?



1689498461677.png
 

xpy-xpy

Well-Known Member
Jan 13, 2023
53
31
18
GE
cPanel Access Level
Root Administrator
What do you see in the /home/account/mail/yourdomain.com/mail/cur/ directory? Can you see and open messages there? (I am assuming mailbox format is maildir).
 

Joso

Member
Sep 21, 2021
20
4
3
Italy
cPanel Access Level
Website Owner
What do you see in the /home/account/mail/yourdomain.com/mail/cur/ directory? Can you see and open messages there? (I am assuming mailbox format is maildir).

Hi, my patch is: /home/xxxx/mail/xxx.com/account_mail/mail/cur/ and in this directory there are only 15 files.
 

Joso

Member
Sep 21, 2021
20
4
3
Italy
cPanel Access Level
Website Owner
Hi, I double checked and most of the emails are sent, so 1.2gb mostly sent.
However, the problem that every week automatically deletes the trash remains to be solved. All emails older than a week.

Besides the settings in WHM, are there other places where this setting can be done? Or is it possible that mail browsers such as thunderbird or Outlook or IOS mail have settings such as to empty the trash from week to week?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
There wouldn't be anything on the server side that would configure the messages to delete once a week. Is it possible there is a user checking this account with a mail client, such as Outlook or Thunderbird, and they have some setting there that could cause this?
 

Joso

Member
Sep 21, 2021
20
4
3
Italy
cPanel Access Level
Website Owner
There wouldn't be anything on the server side that would configure the messages to delete once a week. Is it possible there is a user checking this account with a mail client, such as Outlook or Thunderbird, and they have some setting there that could cause this?
Hello, thanks for the information, but I had already checked the email client settings and none of them set the cancellation of emails after a certain number of days. That is, the function is disabled.
If you can give me any other suggestions, I'd be happy.