Operating System - HP-UX
1752777 Members
6079 Online
108789 Solutions
New Discussion юеВ

Re: 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 10
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...