Showing results for 
Search instead for 
Did you mean: 


Super Advisor


Hi admins,

please provide exact steps configuring sendmail in HPUX B.11.23

James R. Ferguson
Acclaimed Contributor

Re: sendmail

Hi Himacs:

Exact steps relate to exact objectives.

Start here:


Ganesan R
Honored Contributor

Re: sendmail

Hi Himacs,

This is a quit big guide.
Best wishes,

Mel Burslan
Honored Contributor

Re: sendmail

what are you trying to configure ? Sending emails outside the server ? If so, edit


find the line starting with letters


change it to


where my_mail_relay_server is your organization's mail forwarder, most likely an MS Exchange or Lotus Notes server.

Tell the mail server administrators to alllow relaying emails from your IP address and/or server name.

That should do it
UNIX because I majored in cryptology...
Steven E. Protter
Exalted Contributor

Re: sendmail


In almost every Corporate environment, there is smtp relay server.

It must be configured to permit relay by IP address. Then you can use the DS directive in

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

If your server has port 25 access to the public internet it may with proper public DNS resolution be able to send mail directly to some public smtp servers.

However many of them require the following:
* Static IP address.
* IP address that resolves to a public domain and the domain of the sending system match this.

Some require:
* Valid reverse DNS lookup.

Steven E Protter
Owner of ISN Corporation
Trusted Contributor

Re: sendmail


Configuring Sendmail :-

1. Edit /etc/mail/ to add your relay server at DS and your domain name at Dj.
2. Edit /etc/rc.config.d/mailsvrs and Set SENDMAIL_SERVER from 0 to 1.
3. /sbin/init.d/sendmail start

Now try sending mail from the server.

Mel Burslan
Honored Contributor

Re: sendmail

Okay, people are very eager to jump tha gun and tell you to restart your mail server. If your system is not going to receive mail, i.e., you will be in a send-only mode (and if you have common sense, you do not want to deal with incoming mail on your hpux server) you do not even need to run sendmail in daemon mode. So, once you modify the DS line and save the, you are done as far as mailsending is concerned, provided your mail relay server is allowing your machine for mail relay.

Running sendmail in daemon mode, listening to port 25 is opening a whole new can of worms, that will get you a lot of grief from your security people at the least, unless you are running the exact flavor of the sendmail version that are looking for. Is not worth the hassle in my opinion.

My 2 cents.
UNIX because I majored in cryptology...