Operating System - Linux
1748080 Members
5282 Online
108758 Solutions
New Discussion юеВ

How to restart the smtp service in Red Hat Enterprise

 
SOLVED
Go to solution
Reynaldo Torres
Advisor

How to restart the smtp service in Red Hat Enterprise

Hello,

Does any one knows how to restart smtp after a change has been made the /etc/syslog.conf to take effect? I would really appreciated your respond as soon as possible. I will give points.

Thank you so much!

RT
Reynaldo Torres
4 REPLIES 4
skt_skt
Honored Contributor
Solution

Re: How to restart the smtp service in Red Hat Enterprise

SMTP service is asscoaited with sendmail service . you can see that in "netstat -tpln"

Why do u want to restart SMTP?

you should see some thing like SMTP to work

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 17396/sendmail: acc

NOT "127.0.0.1:25"


See if the below is applicable to you.

sendmail.cf file coming with RH7.2 only listens on loopback interface. u can see that in netstat -an

it looks like this

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

I Commented following option and restarted the sendmail daemon.

O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA


Then after restarting the daemon using netstat -an.
the output changed to

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN

My mail now works

Ralph Grothe
Honored Contributor

Re: How to restart the smtp service in Red Hat Enterprise

Hi Reynaldo,

if you changed syslogd's config, to me it would make more sense to send its rather than sendmail's (or whatever MTA you use) PID a SIGHUP.
I assume the following should suffice:

# pkill -1 -P1 syslogd

on RHEL alternatively this should also work:

# service syslog restart
Madness, thy name is system administration
Taifur
Respected Contributor

Re: How to restart the smtp service in Red Hat Enterprise

Try with below commands

#/sbin/init.d/smtpd start
or
#/sbin/init.d/sendmail start

Rgds
Taifur
Maulvi Bakar
New Member

Re: How to restart the smtp service in Red Hat Enterprise

Check and which smtpd you're using. On RHEL, the default is sendmail, but I see more and more admins changing it to postfix after installation -

# alternatives --config mta

If it is sendmail, then

/etc/init.d/sendmail restart

if it is postfix, then

/etc/init.d/postfix restart


Cheers