LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sendmail Failed to stop (https://www.linuxquestions.org/questions/linux-newbie-8/sendmail-failed-to-stop-4175496478/)

nad4 02-27-2014 08:37 PM

Sendmail Failed to stop
 
My sendmail failed to send email,
when i was updating the time

Quote:

from sendmail.cf

# time zone handling:
# if undefined, use system default
# if defined but null, use TZ envariable passed in
# if defined and non-null, use that info
#O TimeZoneSpec=

from sendmail.mc:

define(`confTIME_ZONE', `PST8PDT')dnl
Then i restart the services
Quote:

service sendmail restart
Quote:

[root@mail ~]# service sendmail stop
Shutting down sendmail: [ OK ]
Shutting down sm-client: [FAILED]

***************************************

[root@mail ~]# tail /var/log/messages
Feb 26 18:55:01 mail crond(pam_unix)[1723]: session opened for user test by (uid=0)
Feb 26 18:55:01 mail crond(pam_unix)[1723]: session closed for user test
Feb 26 18:56:01 mail crond(pam_unix)[1730]: session opened for user test by (uid=0)
Feb 26 18:56:01 mail crond(pam_unix)[1730]: session closed for user test
Feb 26 18:57:01 mail crond(pam_unix)[1739]: session opened for user test by (uid=0)
Feb 26 18:57:01 mail crond(pam_unix)[1739]: session closed for user test
Feb 26 18:57:48 mail sendmail: sendmail shutdown succeeded
Feb 26 18:57:48 mail sendmail: sm-client shutdown failed


***************************************

[root@mail ~]# tail /var/log/maillog

Feb 26 18:59:41 mail sendmail[1856]: alias database /etc/aliases rebuilt by root
Feb 26 18:59:41 mail sendmail[1856]: /etc/aliases: 94 aliases, longest 71 bytes, 1399 bytes total
Feb 26 18:59:41 mail sendmail[1861]: starting daemon (8.13.1): SMTP+queueing@01:00:00
Feb 26 18:59:41 mail sendmail[1861]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot listen: Address already in use
Feb 26 18:59:41 mail sendmail[1861]: daemon MTA: problem creating SMTP socket
Feb 26 18:59:41 mail sm-msp-queue[1871]: starting daemon (8.13.1): queueing@01:00:00
i think the error occurs when i edit the sendmail.cf and sendmail.mc are still running.

i just follow this steps. but still i cannot send.

unSpawn 03-09-2014 10:50 AM

Quote:

Originally Posted by nad4 (Post 5126201)
Code:

Feb 26 18:59:41 mail sendmail[1861]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot listen: Address already in use

Kill the process and ensure it's dead before starting it again.


Quote:

Originally Posted by nad4 (Post 5126201)
Code:

Feb 26 18:55:01 mail crond(pam_unix)[1723]: session opened for user test by (uid=0)

Please do not create a user called "test" on 'net-facing systems. It makes no sense (you can test stuff with any unprivileged user) plus it almost often implies sloppy security as in way too weak credentials and forgetting to restrict access, disable and remove the account afterwards.


Quote:

Originally Posted by nad4 (Post 5126201)
i just follow this steps.

Please note that thread was from a decade ago and never saw any replies.


//NTLB

nad4 03-10-2014 08:18 PM

Thanks for the reply, noted all your advice. thanks


All times are GMT -5. The time now is 04:00 PM.