Working with the mail database – Apple Mac OS X Server (Administrator’s Guide) User Manual
Page 393
Mail Service
393
If the permissions for the root directory are rwxrwxr-t then they have been changed to the
standard for a Mac OS X client. To correct this, type the following command in the Terminal
application:
sudo chmod g-w /
For more information on Sendmail, see this Web site:
www.sendmail.org
Working With the Mail Database
The mail database keeps track of messages for all mail service users. Mail service stores
messages in separate files. You can do the following with the mail database and files:
m convert the mail database from an earlier version of Mac OS X Server
m change the location where the mail database and files are stored
m configure automatic mail deletion
m allow administrators to access the mail database and files via IMAP
m clean up the mail database and files
All these tasks are described in this section.
Converting the Mail Database From an Earlier Version
When mail service starts for the first time, it looks for an existing mail database from an
earlier version of Mac OS X Server. Mail service migrates messages from an existing mail
database to the current mail database format. After migrating all messages, mail service
renames the old database to preclude the old database from being converted again. You can
delete the renamed database file when you are satisfied that the migration and conversion
process was successful.
In Mac OS X Server version 10.2, the mail service stores each message in a separate file and
keeps track of message files in a relatively small database file. In earlier versions of Mac OS X
Server, the mail service stores all messages in one large database file, /Library/
AppleMailServer/MacOSXMailDB. The automatic conversion process extracts each message
from the monolithic database file and stores it in a separate file. The message files are located
in a folder at /Library/AppleMailServer/AppleMail (unless you change the location where mail
is stored). The new MacOSXMailDB file contains only user and mail account information.
Note: For the mail database conversion to complete successfully, the server must have
enough disk space available. The amount of disk space available should equal the size of the
database file being converted.