This feature is enabled by simply creating the appropriately named subdirectories, or
symbolic links, in each queue directory. The names of those subdirectories or symbolic
links are the literals qf, df, and xf. But be aware that you should not create
those directories or links when mail is already queued. If you do, that queued mail
will disappear from sendmail??™s view and will never be delivered. If you need to make
the change while mail is queued, first stop sendmail, and then execute the following
commands and restart sendmail:
# mkdir df qf xf
# chmod 700 df qf xf
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
404 | Chapter 11: Manage the Queue
# mv df?* df/ ?†? if mail is already queued
# mv qf?* qf/ ?†? if mail is already queued
# mv xf?* xf/ ?†? if mail is already queued
Here, we first create the new subdirectories in the queue directory. Then we reduce
their permissions to the narrow ones that match the queue directory. Finally, if
queued mail already existed in the queue directory, we move that mail into the new
subdirectories where sendmail will find it.
Because xf files are empty for all successfully delivered mail, there is a penalty for
creating and deleting those files just because they might be needed. When performance
is of concern, you can either mount a memory filesystem on the xf subdirectory,
or replace the xf subdirectory witha symbolic link to a directory on a memory
filesystem.
Pages:
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727