19.1 Basic Checks to Ensure That sendmail Is Installed and Working

     

19.1 Basic Checks to Ensure That sendmail Is Installed and Working

The current version of sendmail for HP-UX is version 8.11.1. This is the version you need to support IPv6. There are lots of additional features with this version of sendmail as well as support for IPv6, including the following:

  • Multiple queue directories

  • Enhanced status codes as defined by RFC 2034

  • ClientPort options

  • DaemonPort Options

  • IPv6 support (only on 11i)

  • Spam control using Message Submission Agent

  • SMTP authentication

  • Virtual hosting

  • LDAP-based routing

  • Improved anti-spam features

  • New configuration options

  • New command line options

You can get this version of sendmail as a free download from http://software.hp.com ”Security and Manageability. The simplest test to ensure that sendmail is installed and working is to see if the sendmail process is running:

 

 root@hpeos003[]  ps -ef  grep sendmail  root  2854     1  0 13:35:09 ?         0:01 sendmail: accepting connections root@hpeos003[] 

By default, sendmail starts in daemon mode ( -bd ) and processes the mail queue every 30 seconds ( -q30m ). If you want to change the parameters passed to sendmail , e.g., the frequency of checking the mail queue, you have to edit the startup script /sbin/init.d/sendmail . Later, we will not run the daemon, because some of our machines will be mail clients . Another test to ensure that the daemon is running is simply to telnet to port 25 on our local machine. If the daemon is running, it should be listening for incoming mail on port 25.

 

 root@hpeos003[]  telnet localhost 25  Trying... Connected to localhost. Escape character is '^]'. 220 hpeos003 ESMTP Sendmail 8.11.1 (Revision 1.5) /8.9.3; Sun, 19 Oct 2003 16:04:18 +0100 (BST)  helo hp.com  250 hpeos003 Hello localhost [127.0.0.1], pleased to meet you  quit  221 2.0.0 hpeos003 closing connection Connection closed by foreign host. root@hpeos003[] 

If you install the 8.11.1 version of sendmail , the actual binaries are installed in a directory under /usr/ contrib /sendmail . The original binaries are symbolic links to files under /usr/contrib/sendmail :

 

 root@hpeos003[]  ll /usr/sbin/sendmail  lrwxr-xr-x   1 root       sys             39 Oct  1 21:03 /usr/sbin/sendmail -> / usr/contrib/sendmail/usr/sbin/sendmail root@hpeos003[]  ll /usr/contrib/sendmail/usr/sbin  total 2980 -r-xr-xr-x   1 bin        bin           9878 Apr  5  2003 expand_alias -r-xr-xr-x   1 bin        bin          16384 Apr  5  2003 idlookup -r-xr-xr-x   1 bin        bin           1179 Apr  5  2003 killsm -r-xr-xr-x   1 bin        bin          20480 Apr  5  2003 mailstats -r-xr-xr-x   1 bin        bin         442368 Apr  5  2003 makemap -r-xr-xr-x   1 bin        bin            184 Apr  5  2003 mtail -r-xr--r--   1 bin        bin             42 Apr  5  2003 owners -r-sr-sr-t   1 root       mail       1015808 Jun 30 11:57 sendmail -r-x--x--x   1 bin        bin          16384 Apr  5  2003 smrsh root@hpeos003[] 

As you can see, the sendmail binary is a SUIG/SGID program with the sticky-bit set. This is another check to make sure that it is installed and working correctly. Now that we know it's running, we can start looking at some of the configuration options.



HP-UX CSE(c) Official Study Guide and Desk Reference
HP-UX CSE(c) Official Study Guide and Desk Reference
ISBN: N/A
EAN: N/A
Year: 2006
Pages: 434

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net