1837934 Members
2574 Online
110124 Solutions
New Discussion

removing smtp service

 
SOLVED
Go to solution
Roberto Gallis
Regular Advisor

removing smtp service

Hi all,
I have to remove smtp service at port 25. I don't want anybody can use my smpt server, but I need internal mail for users run.

Anybody can help me?

If I do not start sendmail at boot, internal mail are sent?

Regards

Roberto
3 REPLIES 3
Herve BRANGIER
Respected Contributor
Solution

Re: removing smtp service

Hi

Ypu can disable by changing /etc/rc.config.d/mailservs :
put export SENDMAIL_SERVER=0 instead of 1.

It seems that local delivery works without
any changes. If you use "mail" command to
send your mails you can add "-d" option for
direct delivery. (see man page).
I use mail without sendmail and it's works well.

HTH

Herv?
KapilRaj
Honored Contributor

Re: removing smtp service

smtp can be removed from /etc/services & mail program do not require smtp

man pages ??
kaps
Nothing is impossible
Roberto Gallis
Regular Advisor

Re: removing smtp service

Hi,

I've already set to 0 that variable.
If system does not require sendmail to send local mail (such as mail to root from cron) I solved my problem.

Thanks all

Best regards

Roberto