1820483 Members
2454 Online
109624 Solutions
New Discussion юеВ

start sendmail

 
SOLVED
Go to solution
jackfiled
Advisor

start sendmail

Hi all


I want to start sendmail Linux.
I issue service start sendmail at command prompt.
messages are
[root@ecfarm2 init.d]# service sendmail start
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]

[root@ecfarm2 init.d]# netstat -na|grep 25

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

then from my PC, I send command like
telnet server_ip 25 but can not respond.

Terminal is disappeared in a moment,
without any wating from server_ip

what's the problem.?
2 REPLIES 2
Stuart Browne
Honored Contributor
Solution

Re: start sendmail

Your netstat command above showed what was wrong, sendmail is only listening on local host, not the external (network) address.

You need to modify '/etc/mail/sendmail.mc', and 'dnl' out the line for 'DaemonOptions', then remake the configuration, and restart sendmail.

Depending on which RH release you've got depends on how easy that is. If it's RH8 or newer, just 'service sendmail restart' will remake the config file for you. If not, then:

cd /etc/mail
mv sendmail.cf sendmail.cf-bak
m4 sendmail.mc > sendmail.cf

then restart sendmail.

Once this is all done, if you re-issue your netstat command, you should see:

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
One long-haired git at your service...
jackfiled
Advisor

Re: start sendmail

Thank you for your reply
after modifying the sendmail.mc, working is fine.
thank you again