System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to start the sendmail in boot in hpux

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to start the sendmail in boot in hpux

Hi

I want to start the sendmail in boot time in hpux.

what is the configuration file to do this?
10 REPLIES
Pete Randall
Outstanding Contributor

Re: How to start the sendmail in boot in hpux

/etc/rc.config.d/mailservs


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: How to start the sendmail in boot in hpux

Hi Senthil:

Like all 'rc' script in HP-UX you need to look in the '/etc/rc.config.d' directory for configuration variables and then in '/sbin/init.d' for the actual startup and shutdown script.

In the case of 'sendmail' the '/etc/rc.config.d/mailservs' contains the configuration settings and '/sbin/init.d/sendmail' is the actual startup/shutdown script.

Hint:

# ls /etc/rc.config.d/* /sbin/init.d/*|grep mail

...will tell you this :-)

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: How to start the sendmail in boot in hpux

Or:

# grep sendmail /etc/rc.config.d/*
/etc/rc.config.d/mailservs:# Mail configuration. See sendmail(1m) #
/etc/rc.config.d/mailservs:# run the sendmail deamon.

Pete
Steven E. Protter
Exalted Contributor

Re: How to start the sendmail in boot in hpux

Shalom,

Set the start variable (name is obvious) in /etc/rc.config.d/mailservs to 1

/sbin/init.d/sendmail start

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
senthil_kumar_1
Super Advisor

Re: How to start the sendmail in boot in hpux

Hi

below statement is correct?

#vi /etc/rc.config.d/mailsvrs

export SENDMAIL_SERVER=1


is it enough to start the sendmail at boot time.
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to start the sendmail in boot in hpux

Hi:

> export SENDMAIL_SERVER=1
is it enough to start the sendmail at boot time.

To start 'sendmail' as a daemon, yes. You do _NOT_ need to set this to send outbound mail, though. Read the comments in '/sbin/init.d/sendmail' for more information.


Regards!

...JRF...
senthil_kumar_1
Super Advisor

Re: How to start the sendmail in boot in hpux

Hi James,

when we are setting this. to which runlevel it will goes to effect that is runlevel 2 or runlevel 3.
senthil_kumar_1
Super Advisor

Re: How to start the sendmail in boot in hpux

James,

dont we need to run sendmail for just sending the mails to another mailserver in our network.


Actually we have to run sendmail server in redhat linux even if we want to send the mails to another mail server.

pls clarify me.
Mel Burslan
Honored Contributor

Re: How to start the sendmail in boot in hpux

find /sbin -name "*sendmail*" | grep "/S"

whatever rcX.d is showing up in the path is what you are looking for. The run level is the X value, in which sendmail will be started.
________________________________
UNIX because I majored in cryptology...
Mel Burslan
Honored Contributor

Re: How to start the sendmail in boot in hpux

in order to send email, your mail client generally knows how to start the sendmail and deliver the outgoing messages. There are some screwed up mailers out there, SAP in their earlier days, was one of them, which did not know how to contact the mail relay agent on its own, but today, most moder mail applications does not need sendmail running and listening to port 25 as a daemon. If all you need is to send mail out, you can safely turn this one off.

If you have a particular issue, you need to provide details about that, regarding sending mail failing.
________________________________
UNIX because I majored in cryptology...