file system full... /var/log/maillog > 2Go

I was trying to "yum update" on a VM when I had a "proxy : connection refused" message

*grmbl* then connecting to the proxy's VM, I saw that the / FS was 100% full

I then executed a

du -hs *

on / to see that most space was used by /var/log/maillog (2.2Go)...

I flushed the file with an "echo > /var/log/maillog" then I saw plenty of messages when postfix managed to write in the file...

I changed postfix's conf (/etc/postfix/main.cf) as he was trying to use ipv6 :

inet_protocols = all

changed to

inet_protocols = ipv4

Then reload the service, and the file goes on filling with messages like "blocked to avoid spam", so I checked the mail queue :

postqueue -p

+38000 messages queued... *gni*, many bullshit messages where in here, so I went for a erasement :

mailq | tail -n +2 | awk 'BEGIN { RS = "" } / [email protected]\.com$/ { print $1 }' | tr -d '*!' | postsuper -d -

Et voilà !!