1833832 Members
2189 Online
110063 Solutions
New Discussion

Disable SMTP

 
SOLVED
Go to solution
Macho_2
Frequent Advisor

Disable SMTP

1) How to disable smtp services ?
2) After disable smtp, Can I still send or received the mail
4 REPLIES 4
Naveej.K.A
Honored Contributor

Re: Disable SMTP

hi,

edit /etc/inetd.conf and hash the line which starts the smtp service.

or stop the smtp service.
hpux, by default installs sendmail as the smtp service. you can stop sendmail by

/sbin/init.d/sendmail stop

you won't be able to send or receive mails after you stop the smtp services.

Regards,
Naveej
practice makes a man perfect!!!
Artyom Voronchihin
Respected Contributor
Solution

Re: Disable SMTP

1) Type the command /sbin/init.d/sendmail stop - to stop sendmail manually or set SENDMAIL_SERVER=0 in /etc/rc.config.d/mailservs file to disable sendmail automatic start after reboot.
2) Your machine won't be able to operate as mail server after disabling SMTP, but you can get mail from other servers using POP3 or IMAP.
"Intel inside" is not a label, it's a warning.
Joseph Loo
Honored Contributor

Re: Disable SMTP

hi,

1)
to stop sendmail:

# /sbin/init.d/sendmail stop
or
# /usr/sbin/killsm
# ps -ef|grep -i sendmail
check if the daemon is kill

to disable smtp services:

# vi /etc/rc.config.d/mailservs
SENDMAIL_SERVER=0
then run the above steps to stop sendmail

2) after disabling smtp, u may still send mails provided the configuration in sendmail.cf are correct. to test:

# sendmail -v


hope it helps.

regards.
what you do not see does not mean you should not believe
Geoff Wild
Honored Contributor

Re: Disable SMTP

After setting SENDMAIL_SERVER=0 in /etc/rc.config.d/mailservs and stopping sendmail, you can still send but NO longer receive mail.

Add this to root's cron:

# Make sure any queued mail is delivered, as sendmail isn't a daemon anymore
0,30 * * * * /usr/sbin/sendmail -q

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.