For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
# svcadm disable -t network/smtp:sendmail
The mount point should have been created during the installation process. You can use ls to ensure that the file system exists. The following example shows the response that you receive if the file system has not been created.
# ls -l /var/mail /var/mail not found
If mail files do exist in this directory, you should move them so that they are not covered when the /var/mail directory is mounted from the server.
/var/mail -rw,hard,actimeo=0 server:/var/mail
Use the assigned server name.
Add the following entry to the /etc/vfstab file. This entry permits the /var/mail directory on the mail server that is specified to mount the local /var/mail directory.
server:/var/mail - /var/mail nfs - no rw,hard,actimeo=0
The client's mailbox is automatically mounted whenever the system is rebooted. If you are not rebooting the system, type the following command to mount the client mailbox.
Caution - For mailbox locking and mailbox access to work properly, you must include the –actimeo=0 option when mounting mail from an NFS server.
Edit the /etc/hosts file and add an entry for the mail server. This step is not required if you are using a name service.
# cat /etc/hosts # # Internet host table # .. IP-address mailhost mailhost mailhost.example.com
Use the assigned IP addresses.
Use the assigned domain.
Use the assigned mailhost.
For more information, refer to the hosts(4) man page.
Refer to Administering Mail Alias Files (Task Map) for a task map about administering mail alias files. Note that the mail.local program automatically creates mailboxes in the /var/mail directory the first time a message is delivered. You do not need to create individual mailboxes for your mail clients.
# svcadm enable network/smtp:sendmail