HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to restart the smtp service in Red Hat Enterprise

 
SOLVED
Go to solution

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
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
Occasional Visitor

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