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


1 × = five

Şu HTML etiketlerini ve özelliklerini kullanabilirsiniz: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Yandex.Metrica