Content-type: text/html
Manually setting up and starting your Tru64 UNIX mail system involves stopping and starting the sendmail utility, making changes to the /var/adm/sendmail/sendmail.cf and /var/adm/sendmail/hostname.m4 files, and running the newaliases command. This reference page also provides information about the four mail utilities included in the Tru64 UNIX operating system, and the sendmail utility.
Setting up your mail delivery system requires that you understand how the sendmail utility works and how to modify the /var/adm/sendmail/sendmail.cf file and the m4 files.
You can edit the /var/admin/sendmail/hostname.m4 file, modifying the define lines. The file contains comment lines (lines that begin with dnl), that provide additional information. For example, the following define line specifies that RFC976-style addressing is disabled: define (_RFC976, {})dnl To enable RFC976-style addressing, modify the line as follows: define (_RFC976, {T})dnl The T enables RFC976-style addressing. After you edit the file, change to the /var/adm/sendmail directory and issue the following command:
# make -f Makefile.cf.hostname: This command generates a hostname.cf file. To use the new configuration, copy the hostname.cf file to sendmail.cf and restart sendmail by using the /sbin/init.d/sendmail restart command.
For more information, see the m4(1) and sendmail.m4(8) reference pages.
Valid values for MAILLOCKING are as follows: Specifies lockf. Specifies lockfile. Specifies Multi-channel Memo Distribution Facility (MMDF). This applies to MH only. Specifies lockf. Specifies that both lockf and lockfile are used.
ULTRIX Version 4.3 and earlier versions use lock file locking. Queue files (which reside in the /var/spool/mqueue directory) are locked using lockf. Sharing mqueue over NFS is supported with NFS locking (lockd) enabled.
To start the mail system, use the following procedure: Edit the /var/adm/sendmail/sendmail.cf file to change the macro definitions described in the Network Administration. Issue the newaliases command to initialize the sendmail aliases database as follows:
# newaliases Stop the current sendmail process by using the following command:
# /sbin/init.d/sendmail stop Start the sendmail utility as follows:
# /sbin/init.d/sendmail start
SMTP Mail Service started Alternatively, steps 2 through 4 can be accomplished by using the restart option to the sendmail startup script as follows:
# /sbin/init.d/sendmail restart This command does the following: Initializes the sendmail aliases database Stops the current sendmail process Starts the sendmail utility
The Post Office Protocol (POP) offers users an alternative to the standard mail system. To enable users on your system to use POP for mail, you must enable the mh POP server (popd). To set up a POP server, log in as super user and perform the following steps: Create a group called pop in /etc/group. For more information on adding groups, see addgroup(8). Add pop and all POP users to /etc/group. For example: pop:*:99:pop,pop-user1,pop-user2,pop-user3 In this example, 99 is the groupd ID and pop-user1 pop-user2 pop-user3 are the POP users that are being added. Create an account called pop in /etc/passwd, with /var/spool/pop as the home directory. For example: pop:*:199:99:POP Account:/var/spool/pop:/: In this example, 199 is the user ID. For more information, see adduser(8). Create a directory called /var/spool/pop and make pop the owner by entering the following commands:
# mkdir /var/spool/pop # chown pop /var/spool/pop Change the group ID of /usr/spool/pop to pop by entering the following command:
# chgrp pop /var/spool/pop Change the owner of /usr/lib/mh/spop to pop by entering the following command:
# chown pop /usr/lib/mh/spop
Check the permissions on the file to be certain they are set to rwsr-xr-x. Create a file named /usr/spool/pop/POP and add an entry to the file in the following format for every user who will be served by the POP server: user::user:::user@<client_address>::::0 See pop(4) for more information. Change the owner of /usr/spool/pop/POP to pop by entering the following command:
# chown pop /usr/spool/pop/POP
Check the permissions on the file to be certain they are set to -rw-r--r--. Run the popaka program to obtain an alias for every user entered in the /usr/spool/pop/POP database. See the popaka reference page for more information. Edit the system wide aliases file (/var/adm/sendmail/aliases) to include the strings produced from running the popaka program. Run the newaliases program to update the system wide aliases database. Run the popwrd program to enter a password for each POP server user. See popwrd(8) for more information. Run the popd server in the background and redirect the output to a null file. For example:
# /usr/lib/mh/popd >/dev/null 2>&1 & The Tru64 UNIX popd sever is based on the pop3 protocol. By default, it uses port 109. If the popd application is using port 110, you can do start the popd sever with the -p option to indicate the port number. Alternatively, you can change the port number by editing the /etc/services file.
If you are running in a Network Information Service (NIS) environment, perform the following steps to enable users on client machines to reply to or send mail so that the return address is correctly sent to the POP server machine: Ensure that NIS aliases for the POP user point to the POP server machine. Run mailsetup and select the quick option or modify the send mail configuration file to specify the POP server machine. Check the svc.conf to ensure the local, yp aliases exist. If not, add them.
If you need to start the popd daemon from a script run from the /sbin/rc3.d directory as part of the system reboot process, you should start it using the following command: /usr/lib/mh/popd >/dev/null 2>&1 & You can start the script after the network is started, but before the script for the window manager is started.
Commands: mail(1), mailx(1), popaka(8), popd(8), popwrd(8), rc0(8), mailconfig(8X).
Files: aliases(4), pop(4), sendmail.cf(4).
Network: mail_intro(7).
System calls: syslog(3).
Network Administration delim off