The disks have already been formatted and a filesystem has
been placed on each. We next create directories on which to mount them:
# mkdir /var/queues /var/queues/q.1 /var/queues/q.2 /var/queues/q.3
# chmod 700 /var/queues /var/queues/q.?
Because of the way multiple queue directories are implemented inside sendmail, th e
queue directory names must differ only in their suffixes, hence the trailing 1, 2, and
3. First the directories are created with mkdir(1) or a symbolic link, and then the permission
on eachis reduced to readable and writable only by root for security reasons.
Note that these are the permissions after all queue disks are mounted.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
402 | Chapter 11: Manage the Queue
Next, arrange for the disks to be mounted by placing the appropriate entries in /etc/
fstab or /etc/vfstab. Here, we illustrate withth e partial contents of /etc/fstab for
Linux:
/dev/hda2 /var/queues/q.1 ext2 defaults 1 1
/dev/hdb1 /var/queues/q.2 ext2 defaults 1 1
/dev/hdc1 /var/queues/q.3 ext2 defaults 1 1
Note that we are mounting a separate disk on each queue directory. Your disk device
names will doubtless differ, and you can use any directory locations and names you
wish. Note that after you mount the disks, you might need to change the permissions
again to 700 for each mount point.
Pages:
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723