4.7.4.6 Ensure access to /var/spool/mqueue is configured

Information

The recommended DAC (discretionary access control) settings for the /var/spool/mqueue directory are applied.

The sendmail daemon stores its queued mail in the /var/spool/mqueue directory. Queued messages are the messages that have not yet reached their final destination. To ensure the integrity of the messages during storage, the mail queue directory must be secured from unauthorized access.

NOTE: It is possible to specify an alternate spool directory in the /etc/mail/sendmail.cf file via the QueueDirectory parameter. When this is used that directory name needs identical DAC settings.

Solution

Set the recommended permissions and ownership on /var/spool/mqueue :

chmod u=rwx,go= /var/spool/mqueue
chown root /var/spool/mqueue

See Also

https://workbench.cisecurity.org/benchmarks/10385

Item Details

Category: ACCESS CONTROL, MEDIA PROTECTION

References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|MP-2, CSCv7|14.6

Plugin: Unix

Control ID: 9a6af9ec3cade3611d6c3f38726770b2c03e2bea58b3656870f71d6f8cb2639c