1834048 Members
2638 Online
110063 Solutions
New Discussion

SMTP service

 
M. Tariq Ayub
Regular Advisor

SMTP service

How can i stop smtp service in HP-UX 11i. What is the name of the configuration file.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: SMTP service

/etc/rc.config.d/mailservs

To stop daemon only set variable to 1.

/sbin/init.d/sendmail stop

the binary will still allow outbound mail.

If port 25 is exposed to the internet or a web server is running insecure cgi based mailforms the server can still be abused to send outbound mail.

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
M. Tariq Ayub
Regular Advisor

Re: SMTP service

The value will be 0 not 1. Thanks for your help.
Sridhar Bhaskarla
Honored Contributor

Re: SMTP service

Hi Tariq,

SEP was in a way right. You will need to have it set to 1 before you can use /sbin/init.d/sendmail script. After running it set it to 0.

Or you can use /usr/sbin/killsm script to kill sendmail. If you intend to send mails out of the box, you don't need sendmail running but it is a good idea to invoke sendmail (sendmail -q) once in every 'x' minutes to flush out any mail sitting in queue.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sir T S S
Advisor

Re: SMTP service

try to first kill the sendmail
killsm

then edit /etc/rc.config.d/mailservs
modify the line export Sendmail_Server=0

0 - stop sendmail next startup.
1 enable sendmail