Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Notes / blacklists, spamming account and post( fix: )

blacklists, spamming account and post( fix: )

Find spammer, clean postfix queue.

 

Lots of spam in queue.

1. Find spammer by, for example, queue ID:

postfix/smtp[65766]: 6A0D4567D3: to=<alfeotukn@ola.coma>, relay=mailin-02.mx.aol.com[64.12.139.193]:25, delay=2195

Possible spam mail indication - lots of recipients (nrcpt=150).

2. Lock account (or change account password).

3. Clean account mail queue:
postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" } / spammer@yourserver\.com/ { print $1 }' | tr -d '*!' | postsuper -d -