1751850 Members
5223 Online
108782 Solutions
New Discussion юеВ

Re: sendmail

 
himacs
Super Advisor

sendmail

Hi admins,

please provide exact steps configuring sendmail in HPUX B.11.23


regards
himacs
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: sendmail

Hi Himacs:

Exact steps relate to exact objectives.

Start here:

http://docs.hp.com/en/5991-6611/index.html

Regards!

...JRF...
Ganesan R
Honored Contributor

Re: sendmail

Hi Himacs,

This is a quit big guide.

http://docs.hp.com/en/5991-6611/index.html
Best wishes,

Ganesh.
Mel Burslan
Honored Contributor

Re: sendmail

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

/etc/mail/sendmail.cf

find the line starting with letters

DS

change it to

DSmy_mail_relay_server

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

Shalom,

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 sendmail.cf

/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.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vishu
Trusted Contributor

Re: sendmail

Hi,

Configuring Sendmail :-

1. Edit /etc/mail/sendmail.cf 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.

thanks
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 sendmail.cf, 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...