I always seem to forget this, and the mailq command is not clear, so here it is:
when you type mailq on a postfix server, the first address listed is the sender, the second the recipient.
Smokes your problems, coughs fresh air.
I always seem to forget this, and the mailq command is not clear, so here it is:
when you type mailq on a postfix server, the first address listed is the sender, the second the recipient.
Some useful commands when working with a postfix mailqueue:
mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($8 == "person@example.com" && $9 == "") print $1 } ' | tr -d '*!' | postsuper -d -
I believe there were more, but I can’t remember them. Wish I had blogged earlier…
© 2024 BigSmoke
Theme by Anders Noren — Up ↑
Recent Comments