Multiserver NFS Configuration
If you want the Maildir email message database to be stored on a remote server, the most practical means of doing this is to install it on a remote NFS mount. The webserver can access this mount everytime a user accesses an email; which can distribute the load over multiple servers.
The /usr/local/atmail/tmp/ directory must be shared via NFS. This is required for each frontend to access the single directory storage for attachments and temporary messages.
For this example, we will use the domains webserver.com (as the domain of the webserver) and database.com (for the database server).
First, add the following to the /etc/fstab file of the webserver:
database.com:/usr/local/atmail/users /usr/local/atmail/users nfs rw 0 0 database.com:/usr/local/atmail/tmp /usr/local/atmail/tmp nfs rw 0 0
Then, create an entry in the /etc/exports file of the database-server, which will give read/write permissions for that directory as an NFS mount:
/usr/local/atmail/users webserver.com(rw) /usr/local/atmail/tmp webserver.com(rw)
Then, on both servers, run the NFS service:
/etc/init.d/nfs restart
Then, mount the NFS drive in your webserver:
mount -t nfs database.com:/usr/local/atmail/users /usr/local/atmail/users nfs mount -t nfs database.com:/usr/local/atmail/tmp /usr/local/atmail/tmp nfs
You can then run the install.php file of @Mail, which will automatically create the Maildir directory.

