Rebuilding Qmail corrupted Queue – TroubleShooting

Published July 8, 2009 by Siva

It is applicable for qmail + Plesk


All current messages will be removed from the queue in this case and cannot be restored.

1. Stop Qmail and xinetd.

/etc/init.d/qmail stop
/etc/init.d/xinetd stop

2. Move current queue to another location.

mv /var/qmail/queue /var/qmail/queue_old

3  Reinstall ‘psa-qmail‘ RPM to recreate qmail queue structure with the command like:

rpm -Uvh --force psa-qmail (Redhat, Fedora, Cent oS )
dpkg -i psa-qmail (for Debian or ubuntu)
4. Start Qmail and xinetd:
/etc/init.d/qmail start
/etc/init.d/xinetd start
Qmail Queue Check ..

All Qmail Configuration Check up :

Use the qmail-qread utility to read the messages headers:# /var/qmail/bin/qmail-qread

4 comments on “Rebuilding Qmail corrupted Queue – TroubleShooting

  • Hi at my site i donote able to stop
    /etc/init.d/qmail stop
    /etc/init.d/xinetd stop this files error is qmail no such file or direrectory please help me out i m in trouble

    • Hi Chandan,

      Which version LINUX distro u using?

      Are u using any control control Pnael like Cpanel / Plesk ?

      Please let me know for further help…

  • Leave a Reply

    Fill in your details below or click an icon to log in: Logo

    You are commenting using your account. Log Out /  Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out /  Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out /  Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out /  Change )


    Connecting to %s

    %d bloggers like this: