Multiple Queues
- Configure by adding a wildcard directory name
O QueueDirectory=/var/spool/mqueue/q*
define(`QUEUE_DIRECTORY', `/var/spool/mqueue/q*')
- Directories must exist, not created by sendmail
- Daemon queue runs happen in parallel
- Individual queue directories can be symbolic links to other
partitions
- Spreads load among multiple disks
- New items assigned randomly
- Prevents deep queue directories
- Queue IDs are unique across queues
- Allows easy movement of items among queues
- Separate subdirectories for
df, qf,
xf files
- Can point
xf files to a memory-based file system (Solaris
tempfs)
- Further protection from deep directory structures
- Can be symbolic links
- Queues may be ignored if unsafe
- Use
sendmail -d41.5 or sendmail -d41.20 to debug
Sample Output
# ls -ld /var/spool/mqueue /var/spool/mqueue/*/*
drwxr-xr-x 2 root wheel 512 Feb 24 11:38 q0
lrwxr-xr-x 1 root wheel 13 Feb 24 11:46 q1 -> /extra/mqueue
-rw------- 1 root wheel 29 Feb 24 11:38 /var/spool/mqueue/q0/dfe1OJcan22844
-rw------- 1 root wheel 29 Feb 24 11:38 /var/spool/mqueue/q0/dfe1OJcb622846
-rw------- 1 root wheel 499 Feb 24 11:38 /var/spool/mqueue/q0/qfe1OJcan22844
-rw------- 1 root wheel 499 Feb 24 11:38 /var/spool/mqueue/q0/qfe1OJcb622846
-rw------- 1 root wheel 29 Feb 24 11:38 /var/spool/mqueue/q1/dfe1OJcZV22836
-rw------- 1 root wheel 29 Feb 24 11:38 /var/spool/mqueue/q1/dfe1OJcZh22832
-rw------- 1 root wheel 499 Feb 24 11:38 /var/spool/mqueue/q1/qfe1OJcZV22836
-rw------- 1 root wheel 499 Feb 24 11:38 /var/spool/mqueue/q1/qfe1OJcZh22832
lrwxr-xr-x 1 root wheel 8 Feb 24 13:21 /var/spool/mqueue/q1/xf -> /memdisk
# mailq
/var/spool/mqueue/q0 (1 requests)
----Q-ID---- --Size-- -----Q-Time----- ------------Sender/Recipient------------
e1OJcan22844 29 Thu Feb 24 11:38 gshapiro
gshapiro
/var/spool/mqueue/q1 (2 requests)
----Q-ID---- --Size-- -----Q-Time----- ------------Sender/Recipient------------
e1OJcZh22832 29 Thu Feb 24 11:38 gshapiro
gshapiro
e1OJcZV22836 29 Thu Feb 24 11:38 gshapiro
gshapiro
Total Requests: 3
Next
Prev