Optional features

By now you will have a fully functional email server. There are further features that you may want to use. Pick what you need.

Fetching and filtering using fetchmail and sieve

Mathias Geat wrote an article on integrating fetchmail and sieve that fits this setup.

Removing old deleted mails

With IMAP you can mark emails as deleted and some email clients will not even show them any more. But the emails are still there and occupy space. Usually there is an option to purge all marked emails but many users do not care. So Michael Weisgerber suggests to run this command frequently via crontab to remove such emails:

$> find /var/vmail -type f -ctime +7 -name '*,ST' -delete

Dovecot renames all deleted emails so that they get a ,ST added at the end of the filename. Adjust the parameter to -ctime as you like. In this example deleted mails older than 7 days are purged.