Operating System - Linux
1819833 Members
2870 Online
109607 Solutions
New Discussion юеВ

Re: do not receive mails from the logger

 
Atul Gautam
Valued Contributor

do not receive mails from the logger

Hi Xperts,

I do not receive any mail from the logger facility as I've checked the mailbox for "root", everytime it shows "No mail for root".

What do I need to check and do....??



ATUL
17 REPLIES 17
Vitaly Karasik_1
Honored Contributor

Re: do not receive mails from the logger

are you speaking about logs from a mail server or something else?
Jaime Bolanos Rojas.
Honored Contributor

Re: do not receive mails from the logger

Atul,

What mail program are you using?
Are you getting any errors in the logs?

If not errors in the logs and just using mail to get informational messages on the system, please make sure that your resolution methods are working fine, usually when you local machine can not resolve its own name, either /etc/hosts, dns, etc it will not know where to send the mail messages anymore.

Regards,

Jaime.
Work hard when the need comes out.
Atul Gautam
Valued Contributor

Re: do not receive mails from the logger

Hi All,

I'm talking about the output when we issue the command "mail" and we get the following output ---

-------------------------------------------
[root@cubot1 ~]# mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/root": 5 messages 5 new
>N 1 root@localhost.local Tue Jul 18 04:02 67/2257 "LogWatch for cubot1"
N 2 root@localhost.local Wed Jul 19 04:02 92/2787 "LogWatch for cubot1"
N 3 root@localhost.local Thu Jul 20 04:02 82/2541 "LogWatch for cubot1"
N 4 root@localhost.local Fri Jul 21 04:02 90/2707 "LogWatch for cubot1"
N 5 root@localhost.local Sat Jul 22 04:02 91/2737 "LogWatch for cubot1"
&
-------------------------------------------

If anyone can help me in tracing this thing as to why it is not happening.

Beside, this I have the IP Address and its hostname stored in /etc/hosts file.



Thanks...

ATUL

Jaime Bolanos Rojas.
Honored Contributor

Re: do not receive mails from the logger

Atul,

Do you mind sending the output for /etc/hosts file, and do you remember what changed on the system since the last time that you got mail?
Is the host file your only resolution method in your network?

Regards,

jaime.
Work hard when the need comes out.
George Liu_4
Trusted Contributor

Re: do not receive mails from the logger

First thing to check:

service sendmail status
It should be "running"

Second thing:

tail -f /var/log/maillog
Atul Gautam
Valued Contributor

Re: do not receive mails from the logger

Hi Xperts,

Here's the output from /etc/hosts ---

-------------------------------------
[root@MLXILSFTP ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.16.18.246 MLXILSFTP

#Netbackup IP Address
10.16.0.99 icstgbk1

[root@MLXILSFTP ~]#
--------------------------------------

When I try to start the SENDMAIL service, I get the following output ---

-----------------------------------------
[root@MLXILSFTP ~]# service sendmail start
Starting sendmail: [ OK ]
Starting sm-client: can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
[FAILED]
[root@MLXILSFTP ~]#
-----------------------------------------


Also, the output of tail -f /var/log/maillog is given below ----

------------------------------------------
[root@MLXILSFTP ~]# tail -f /var/log/maillog
Jul 24 04:03:02 MLXILSFTP sendmail[32612]: NOQUEUE: SYSERR(root): can not chdir(/var/spool/clientmqueue/): Permission denied
Jul 24 04:03:02 MLXILSFTP sendmail[32614]: My unqualified host name (MLXILSFTP) unknown; sleeping for retry
Jul 24 04:04:02 MLXILSFTP sendmail[32614]: unable to qualify my own domain name (MLXILSFTP) -- using short name
Jul 24 04:04:02 MLXILSFTP sendmail[32614]: NOQUEUE: SYSERR(root): can not chdir(/var/spool/clientmqueue/): Permission denied
Jul 25 04:02:04 MLXILSFTP sendmail[2017]: My unqualified host name (MLXILSFTP) unknown; sleeping for retry
Jul 25 04:03:04 MLXILSFTP sendmail[2017]: unable to qualify my own domain name (MLXILSFTP) -- using short name
Jul 25 04:03:04 MLXILSFTP sendmail[2017]: NOQUEUE: SYSERR(root): can not chdir(/var/spool/clientmqueue/): Permission denied
Jul 25 04:03:04 MLXILSFTP sendmail[2019]: My unqualified host name (MLXILSFTP) unknown; sleeping for retry
Jul 25 04:04:04 MLXILSFTP sendmail[2019]: unable to qualify my own domain name (MLXILSFTP) -- using short name
Jul 25 04:04:04 MLXILSFTP sendmail[2019]: NOQUEUE: SYSERR(root): can not chdir(/var/spool/clientmqueue/): Permission denied
Jul 25 10:14:00 MLXILSFTP sendmail[2344]: My unqualified host name (MLXILSFTP) unknown; sleeping for retry
Jul 25 10:15:00 MLXILSFTP sendmail[2344]: unable to qualify my own domain name (MLXILSFTP) -- using short name
Jul 25 10:15:00 MLXILSFTP sendmail[2344]: alias database /etc/aliases rebuilt by lomadmin
Jul 25 10:15:00 MLXILSFTP sendmail[2344]: /etc/aliases: 78 aliases, longest 10 bytes, 802 bytes total
Jul 25 10:15:00 MLXILSFTP sendmail[2348]: My unqualified host name (MLXILSFTP) unknown; sleeping for retry
Jul 25 10:16:00 MLXILSFTP sendmail[2348]: unable to qualify my own domain name (MLXILSFTP) -- using short name
Jul 25 10:16:00 MLXILSFTP sendmail[2415]: starting daemon (8.13.1): SMTP+queueing@01:00:00
Jul 25 10:16:00 MLXILSFTP sm-msp-queue[2422]: My unqualified host name (MLXILSFTP) unknown; sleeping for retry
Jul 25 10:17:00 MLXILSFTP sm-msp-queue[2422]: unable to qualify my own domain name (MLXILSFTP) -- using short name
Jul 25 10:17:00 MLXILSFTP sm-msp-queue[2422]: NOQUEUE: SYSERR(root): can not chdir(/var/spool/clientmqueue/): Permission denied
------------------------------------------

Plz help.........



---
Atul
Jaime Bolanos Rojas.
Honored Contributor

Re: do not receive mails from the logger

Atus try executing 'chmod 770 /var/spool/clientmqueue' and then try restarting sendmail

Regards,

Jaime.
Work hard when the need comes out.
Atul Gautam
Valued Contributor

Re: do not receive mails from the logger

Hi Jaime,

I did that and the output is pasted below ---

---------------------------------------
[root@MLXILSFTP ~]# chmod 770 /var/spool/clientmqueue
[root@MLXILSFTP ~]# service sendmail start
Starting sendmail: [ OK ]
Starting sm-client: can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
[FAILED]
[root@MLXILSFTP ~]#
---------------------------------------



Atul
Vitaly Karasik_1
Honored Contributor

Re: do not receive mails from the logger

which distro do you use?

I'll suggest you to reinstall sendmail package in order to fix permission problems.
Atul Gautam
Valued Contributor

Re: do not receive mails from the logger

Thanks Vitaly...

Information about the distro is given below ----

-----------------------------------------
[lomadmin@MLXILSFTP ~]$ cat /proc/version
Linux version 2.6.9-34.ELsmp (bhcompile@hs20-bc1-7.build.redhat.com) (gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Fri Feb 24 16:54:53 EST 2006
[lomadmin@MLXILSFTP ~]$
-----------------------------------------


And I've tried that as well but it didn't help me either..

Anywayz thanks for that...




--
Atul
Vitaly Karasik_1
Honored Contributor

Re: do not receive mails from the logger

well, it's RHEL (or CentOS) 4 - I run the same version.

Please check ownership/permission - this works for me:

[root@linux1 ~]# ll -d /var/spool/clientmqueue
drwxrwx--- 2 smmsp smmsp 4096 Jul 27 00:00 /var/spool/clientmqueue
[root@linux1 ~]# grep smm /etc/passwd
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin


Atul Gautam
Valued Contributor

Re: do not receive mails from the logger

Hi Vitaly,

I have got something for you -----

--------------------------------------------
[root@MLXILSFTP ~]# ll -d /var/spool/clientmqueue
drwxrwx--- 2 smmsp smmsp 4096 Jul 26 12:23 /var/spool/clientmqueue
[root@MLXILSFTP ~]# grep smm /etc/passwd
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
[root@MLXILSFTP ~]# vi /etc/passwd
[root@MLXILSFTP ~]# service sendmail start
Starting sendmail: [ OK ]
Starting sm-client: can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
[FAILED]
[root@MLXILSFTP ~]#

--------------------------------------------

The logfile output is given below --->

--------------------------------------------
Aug 2 12:37:36 MLXILSFTP sendmail[26371]: My unqualified host name (MLXILSFTP) unknown; sleeping for retry
Aug 2 12:38:36 MLXILSFTP sendmail[26371]: unable to qualify my own domain name (MLXILSFTP) -- using short name
Aug 2 12:38:36 MLXILSFTP sendmail[26371]: alias database /etc/aliases rebuilt by lomadmin
Aug 2 12:38:36 MLXILSFTP sendmail[26371]: /etc/aliases: 78 aliases, longest 10 bytes, 802 bytes total
Aug 2 12:38:36 MLXILSFTP sendmail[26441]: My unqualified host name (MLXILSFTP) unknown; sleeping for retry
Aug 2 12:39:36 MLXILSFTP sendmail[26441]: unable to qualify my own domain name (MLXILSFTP) -- using short name
Aug 2 12:39:37 MLXILSFTP sendmail[26442]: starting daemon (8.13.1): SMTP+queueing@01:00:00
Aug 2 12:39:37 MLXILSFTP sm-msp-queue[26449]: My unqualified host name (MLXILSFTP) unknown; sleeping for retry
Aug 2 12:40:37 MLXILSFTP sm-msp-queue[26449]: unable to qualify my own domain name (MLXILSFTP) -- using short name
Aug 2 12:40:37 MLXILSFTP sm-msp-queue[26449]: NOQUEUE: SYSERR(root): can not chdir(/var/spool/clientmqueue/): Permission denied
--------------------------------------------




ATUL
Vitaly Karasik_1
Honored Contributor

Re: do not receive mails from the logger

very strange!
what is your sendmail ownership?
here is mine:

-rwxr-sr-x 1 root smmsp 733912 Mar 22 19:18 /usr/sbin/sendmail.sendmail
Atul Gautam
Valued Contributor

Re: do not receive mails from the logger

hey...

it's given below ----


[root@MLXILSFTP ~]# ls -l /usr/sbin/sendmail
lrwxrwxrwx 1 root root 21 Jul 17 13:17 /usr/sbin/sendmail -> /etc/alternatives/mta
[root@MLXILSFTP ~]#
Vitaly Karasik_1
Honored Contributor

Re: do not receive mails from the logger

there are two symlinks, so please run the same command as I - for sendmail.sendmail
George Liu_4
Trusted Contributor

Re: do not receive mails from the logger

suggest assign points and that could tell us which answer needs reading. This thread is too long to read.
Atul Gautam
Valued Contributor

Re: do not receive mails from the logger

Hi Vitaly,

Here's the output as per your recommendation ---

-----------------------------------------
[root@MLXILSFTP ~]# ll /usr/sbin/sendmail.sendmail
-rwxr-sr-x 1 root smmsp 732356 Sep 1 2004 /usr/sbin/sendmail.sendmail
[root@MLXILSFTP ~]#
-----------------------------------------


Atul