Go to main content

Managing sendmail Services in Oracle® Solaris 11.3

Exit Print View

Updated: April 2020
 
 

How to Move the /var/spool/mqueue Mail Queue

  1. Become an administrator on the mail host.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Stop the sendmail service so that it is no longer processing the queue directory.
    # svcadm disable network/smtp:sendmail
  3. Change to the /var/spool directory.
    # cd /var/spool
  4. Move the directory, mqueue, and all its contents to the omqueue directory. Then create a new empty directory that is named mqueue.
    # mv mqueue omqueue; mkdir mqueue
  5. Set the permissions of the directory to read/write/execute by owner, and read/execute by group. Also, set the owner and group to daemon.
    # chmod 750 mqueue; chown root:bin mqueue
  6. Start the sendmail service.
    # svcadm enable network/smtp:sendmail