Cookies help us deliver our better services. By using our site, you agree to our use of cookies.

Delete messages from Postfix queue by sender address and recipient domain

Ever wanted to delete all messages from Postfix queue by sender email address and recipient domain ?

Today, I did ... and below you can find a handful script for this purpose.

Tools needed: grep, awk, mailq and postsuper.


In a hu ...

Speed up PHP mail() with sendmail's background delivery

By default, php mail() is using sendmail, using a 3 steps process:

  • mail() forks sendmail process
  • sendmail attempts to send message to destination server
  • sendmail returns to mail() when the message is sent

On a large batch of emails, you'll want to r ...

How to recalculate traffic and disk usage in Plesk Unix

The problem: There are some updates on client files, but the traffic and disk usage changes are not reflected in Plesk interface.

Why: Plesk counts statistics once a day (at 4:07 AM by default) with the help of the {Plesk_installation_dir}/admin/sb ...