Qmail: How to delete old e-mails?

You have checked your mail server’s disk usage and decided to free some space deleting the some of the users emails older than for example 10 days.

# du -sh /home/* | grep ^[1-9.]*G | sort -rn  ----to list the users who has reached to at least 1 gb of disk usage
# find "path to user mailbox" -name \* -type f -mtime +10 -exec rm {} \;   ------ delete a user's mails older than 10 days.
Tags:,

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

Yandex.Metrica