Monday, January 07, 2008

Setup Mail Server on UNIX-based System

The last post made me think about setting up a mail server on my eBay purchased UNIX-based box at home. As I recalled from a few years ago, this was a fairly straightforward task to accomplish. The task primarily dealt with ensuring the server’s /var partition was amply sized and its /var/mail directory exported. And lastly, it was a NFS server.

On the mail server:

Ensure attribute information is correct:
# cd /var
# ls -ld mail
drwxrwxrwt 4 root mail 512 Jan 5 22:38 mail

Modify the dfstab file
# cd /etc/dfs
# vi dfstab
share -F nfs -o rw -d "mailbox directory" /var/mail
# shareall
# cd /etc/init.d
# ./nfs.server start

Verify /var/mail is shared.
# dfshares
esoft:/var/mail esoft - -

Setup mail client


Stephane said...

The title of the post is misleading ... I was expecting some sort of sendmail wizardry :-)

esofthub said...

Stephane, maybe I should have said something (titled) to the effect of exporting the server's mailbox directory