cancel
Showing results for 
Search instead for 
Did you mean: 

sendmail does seem to stop

Varun_3
Occasional Contributor

sendmail does seem to stop

It seems my sendmail server does not stop...
I am trying to stop sendmail from command prompt and its giving me STOP successful message...

But still I am able send mail from WEBMIN to my yahoo account..

I dont understand how??

5 REPLIES
Steven E. Protter
Exalted Contributor

Re: sendmail does seem to stop

Sendmail has two components.

The daemon can be stopped.

/sbin/init.d/sendmail stop

When the daemon is down, the sendmail binary can still be used to send email. The components you are talking about probably use a sendmail or elm or other smtp type script to send mail.

That will work unless you change permissions on the sendmail binary.

See attached scripting example. This script will work even when the daemon is down.

In reality the daemon accepts connections. It doesn't handle outbound connections.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff_Traigle
Honored Contributor

Re: sendmail does seem to stop

Stopping the sendmail daemon does not stop the ability to send mail from the system. It only stops the ability to receive mail on the system from remote hosts.
--
Jeff Traigle
Varun_3
Occasional Contributor

Re: sendmail does seem to stop

Thank You

I undestand that..
Now if I want to change content of my .cf file, I need to restart sendmail to apply changes..

Without stopping it, my changes are not reflecting...

Uday_S_Ankolekar
Honored Contributor

Re: sendmail does seem to stop

"/sbin/init.d/sendmail stop" to stop the sendmail services

you can check if the process is stopped by "ps -ef | grep sendmail "

"/sbin/init.d/sendmail start" to start the sendmail after the changes you made in .cf file

-USA..
Good Luck..
Mel Burslan
Honored Contributor

Re: sendmail does seem to stop

to answer your last question, if you are changing the parameters in sendmail.cf which will affect your reception of email, yes you need to stop and restart the sendmail deamon as follows :

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

if you are changing something which only affects you sending email, like the smart relay server (i.e. the line starting with letters DS), then you do not need to cycle the sendmail daemon. Although, it is a good practice to recycle it using the commands above, as sometimes, one directive may affect bot incoming and outgoing connections.

Hope this helps
________________________________
UNIX because I majored in cryptology...