System Administration Guide, Volume 3

How to Move the Mail Queue

  1. Become root on the mail host.

  2. Type /etc/init.d/sendmail stop and press Return.

    This kills the old sendmail daemon to keep it from trying to process the old queue directory.

  3. Type cd /var/spool and press Return.

  4. Type mv mqueue omqueue; mkdir mqueue and press Return.

    This moves the directory, mqueue, and all its contents to the omqueue directory and then creates a new empty Rmqueue directory.

  5. Type chmod 755 mqueue; chown daemon.daemon mqueue and press Return.

    These commands set the permissions of the directory to read/write/execute by owner, and read/execute by group and others; these commands also set the owner and group to daemon.

  6. Type /etc/init.d/sendmail start and press Return.

    This starts a new sendmail daemon.