Mail Aging

 

Mail aging is the process in which e-mails will be removed from the server automatically, upon successful log out of a pop3 session. This deletion will only occur if the messages are older then a specified amount of days.

 

 

The client sets aging for his mails (ie to automatically delete aged mails) and it does not work.

===============
Related cgi file
===============
/usr/local/cpanel/base/webmailaging.cgi

===============
Solution
===============

1. Check whether the mail permissions are correct.
(You may run /scripts/mailperm for this)

2. Change to the home directory of the user
#cd /home/username

3. Check the ownership and permission of the etc directory here.
#chmod 775 etc
#chown user.mail etc

4. Check whether a directory in the name of the domain is listed there and the permission of this directory as same as the etc shown above.

5. Change to this directory and list the files.
Here you should see the files 'quota', 'passwd', 'shadow' etc. and the mail user directories.

6. Check for a file named 'mailaging'. Touch this file if it is not present and set the permission to 664
#touch mailaging
#chmod 644 mailaging
#chown user.mail mailaging

7. Try setting the aging again from the CPanel -> Mail -> Manage Accounts

8. Check the mailaging file after that. You should find the entries in there like.
mailusername:86400

9. If not, manually add this entry to this file. The number shown is the number of seconds before deleting the mails.