HP-UX Mailing Solutions White Paper
3. Create a mail user account:
Following is the procedure to create an email account named username@fullhostname:
1. Create a user account called username in the mail server where Sendmail is installed.
# useradd –m username
2. Configure the password for the user account:
# passwd username
Verifying the Sendmail Mail Server Setup
Follow this procedure to verify the Sendmail mail server setup:
1. To ensure that Sendmail is running, enter the following command on the mail server:
# telnet 0 25
The following output is displayed if the Sendmail mail server is setup properly:
Trying...
Connected to 0.
Escape character is '^]'.
quit220 test1.hp.com ESMTP Sendmail @(#)Sendmail version 8.13.3 - Revision 1.001:: HP-UX11.31 - 2nd
April,2008/8.13.3; Fri, 29 Aug 2008 14:08:39 +0530 (IST)
quit
221 2.0.0 test1.hp.com closing connection
Connection closed by foreign host.
2. On the Sendmail server, login as a superuser and send an email using Sendmail to test the
Sendmail mail server setup.
Follow this procedure to verify the mail server setup:
a. Obtain a backup of the default mailbox, /var/mail/username, for the user on the
server, if the default mailbox exists:
# mv /var/mail/<username> /var/mail/username.BKUP
The existing mailbox moves to the /var/mail/username.BKUP file.
b. Send a mail to the username user:
# echo "Test Mail" | mailx -s "TEST MAIL" username@fullhostname
where:
fullhostname specifies the mail server name in which the user accounts exists.
c. Ensure that the mail has reached the destination mailbox of the user, that is,
/var/mail/username:
# ll /var/mail/username
This command ensures that the Sendmail server is functioning properly as expected in
delivering mails.
d. Move the backed up user’s mailbox (/var/mail/username):
# mv /var/mail/username.BKUP /var/mail/username
Message Delivery Agent
A message delivery agent (MDA) is a program that processes incoming emails and is typically
invoked by an MTA, such as Sendmail, Postfix. An MDA enables mail processing to be
event-driven. rmail is the widely used MDA on UNIX systems. rmail handles remote mails
using the Unix-to-Unix copy protocol (UUCP).
rmail provides the following features:
• Direct and fast mail delivery
• Ease in configuration and usage
Configuring rmail on an HP-UX System
This section discusses the prerequisite and procedure to configure rmail on an HP-UX system.
Setting up the Mail Server 9