Month: August 2013

  • How to find which domain spamming via PHP script?

    PLESK 1) Create a /var/qmail/bin/sendmail-wrapper script with the following content: #!/bin/sh (echo X-Additional-Header: $PWD ;cat) | tee -a /var/tmp/mail.send|/var/qmail/bin/sendmail-qmail “$@” Note, it should be two lines including ‘#!/bin/sh’. 2) Create a log file /var/tmp/mail.send and grant it “a+rw” rights; make the wrapper executable; rename old sendmail; and link it to the new wrapper: ~# touch…

  • How to fix corrupted mails on queue in qmail or qmailtoaster.

    Step 1. Download qfixq. wget http://qmail.jms1.net/scripts/qfixq Step 2. Change the file permission. chmod 700 qfixq Step 3. Stop qmail service. /etc/init.d/qmail stop Step 4. Run the script. ./qfixq After running it the first time to see what it’s going to do, you should run it a second time, in “live mode”. This will do the…