QueueFileMode

Default permissions for queue files V8.12 and later

The files that populate a queue directory are the qf, df, and xf files. The qf file (The qf File Internals on page 445) contains envelope information and the message’s headers. The df file (The Data (Message Body) File: df on page 398) contains the body of the message. The xf file (The Transcript File: xf on page 401), when present, contains a copy of failed SMTP replies and other error messages generated during a delivery attempt.

If the SuperSafe option (SuperSafe on page 1096) is set to true, all messages are placed in the queue prior to delivery. If that option is false (or interactive beginning with V8.12), only messages that fail to be delivered on the first attempt are placed into the queue. When a message is placed into the queue, the qf and df files are created. The permissions that the files get are determined by this QueueFileMode option.

The QueueFileMode option is declared like this:

O QueueFileMode=permsconfiguration file (V8.12 and later)
-OQueueFileMode=permscommand line (V8.12 and later)
define(`confQUEUE_FILE_MODE',`perms')   ← mc configuration (V8.12 and later)

Here, perms is the permissions that will be given to the created files. Those permissions are of type octal. The default is 0600 (if the real-user-id is the same as the effective-user-id), and 0644 otherwise. If the mode has the group-writable bit set (as in 0664), the umask(2) is set to 0002 (disallow world-writable permissions) just prior ...

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.