sendmail error

Hi

we have problems in sendmail i got lot of error messages in /var/adm/messages that repeat every 5 minute

note that line80 and line 561 is also repeated.

thank you
Mar 23 11:45:41 ##server-name## sendmail[1650]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 80: fileclass: cannot open '/etc/mail/local-host-names': Group writable directory
Mar 23 11:45:41 ##server-name## sendmail[1650]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 561: fileclass: cannot open '/etc/mail/trusted-users': Group writable directory
Mar 23 11:45:41 ##server-name## sendmail[1711]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 80: fileclass: cannot open '/etc/mail/local-host-names': Group writable directory
Mar 23 11:45:41 ##server-name## sendmail[1711]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 561: fileclass: cannot open '/etc/mail/trusted-users': Group writable directory

Open in new window

LVL 1
omar2010Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

IanThCommented:
it would help if you show us the code
0
dudidoCommented:
and add the dirs and file access permissions.
0
omar2010Author Commented:
to clear the question
I don't use sendmail at all
in fact sendmail is disabled, i don't know why this error keep occur.
if you need any further info tell me

thank you
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

RowleyCommented:
Run 'svcs -p sendmail'

If you receive output showing something similar to this:

STATE          STIME    FMRI
online         Feb_15   svc:/network/smtp:sendmail
               Feb_15       4035 sendmail
               Feb_15       4036 sendmail

Then run 'svcadm disable sendmail' then try 'svcs -p sendmail' again. If output looks something like this:

STATE          STIME    FMRI
disabled       13:37:03 svc:/network/smtp:sendmail

and you confirm that pgrep send returns nothing, you should be good.
0
AmolCommented:
can you paste the permission of /etc/mail and its subdirectories.
Also paste the output of svcs -a | grep sendmail
0
IanThCommented:
you are clearly calling sendmail in a script though and as you say its disabled that could be your problem imho
0
omar2010Author Commented:
thank you all for quickly response

at the first time I notice the problem ,sendmail was online ,
 I don't remember using it in any of my script so I thought the easy solution for me is to disable sendmail
unfortunatly that does't work so that why I ask here

so summary:
even after disabling sendmail error still presist.
about file premision  i will do it first thing in morning.

Thank you
0
omar2010Author Commented:
I notice after using ps -ef | grep sendmail , it is still running

I try to use /etc/init.d/sendmail stop , but its hang (not returning command prompt)
0
AmolCommented:
try to kill the process

kill -9 "process id"
0
omar2010Author Commented:
Even when I try to using pkill sendmail after check with ps the process restart with new id
0
AmolCommented:
what us the parent process id of that new process...check which is that process which is restarting it...
0
omar2010Author Commented:
how can i check for parent id?
0
AmolCommented:
ps -eaf | grep sendmail

UID PID PPID C STIME TTY TIME CMD

the third one is Parent process id.
0
omar2010Author Commented:
after performing ps -eaf | grep sendmail the PPID is 9700
then I issue  ps -eaf | grep 9700
this what i get
root  9700 11400   0 09:54:31 pts/1       0:00 bash

any idea what is the problems?
0
AmolCommented:
use ptree 9700 and see which process of application is using that....
0
omar2010Author Commented:
this is what i get now:


# ps -eaf | grep sendmail
    root  9851  8560   0 08:19:25 pts/1       0:00 grep sendmail
# ptree 8560
665   /usr/lib/inet/inetd start
  27584 /usr/sbin/in.telnetd
    27587 -sh
      8560  bash
        10012 ptree 8560

Open in new window

0
omar2010Author Commented:
when i try ptree 9851 , i get nothing.
0
nishitcruiseCommented:
You have to check the permissions on / and all the subdirectories like /etc, /etc/mail for write permissions. If there is no write permission on / or /etc then give the write permissions and check.

This will set the permissions for every directory sendmail needs to be
non-group writable:

sudo chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue /private

Check all these permissions are same as below.

drwxr-xr-x 45 root sys 3584 Feb 3 10:24 etc
drwxr-xr-x 2 root mail 512 Feb 3 11:54 mail
-rw-r--r-- 1 root bin 153 Sep 30 10:24 Mail.rc
-rw-r--r-- 1 root bin 1201 Sep 30 10:24 aliases
-rw-r--r-- 1 root mail 0 Oct 10 04:58 aliases.dir
-rw-r--r-- 1 root mail 1024 Oct 10 04:58 aliases.pag
-rw-r--r-- 1 root bin 5266 Sep 27 19:07 helpfile
-rw-r--r-- 1 root bin 0 Sep 24 2001 local-host-names
-rw-r--r-- 1 root bin 1829 Sep 30 10:19 mailx.rc
-r--r--r-- 1 root bin 34924 Sep 30 10:24 main.cf
-r--r--r-- 1 root bin 35625 Oct 1 05:09 sendmail.cf
-r--r--r-- 1 root other 35625 Oct 1 05:09
sendmail.cf.pre110615-05
lrwxrwxrwx 1 root root 8 Sep 30 10:24 sendmail.hf ->
helpfile
-r--r--r-- 1 root bin 35625 Sep 30 10:24 subsidiary.cf
-rw-r--r-- 1 root bin 5 Sep 24 2001 trusted-users
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
omar2010Author Commented:
this all permission you ask for:
these files are missing:
aliases.dir
aliases.pag

these files has different permission:
lrwxrwxrwx   1 root     root          11 Apr 27  2006 main.cf -> sendmail.cf
lrwxrwxrwx   1 root     root          11 Apr 27  2006 subsidiary.cf -> sendmail.cf
# ls -ld /
drwxrwxr-x  51 1013     110         1536 Mar 29 14:54 /
# ls -ld /etc
drwxr-xr-x  83 root     sys         6144 Apr  4 08:33 /etc
# ls -ld /etc/mail
drwxrwxr-x   3 root     mail         512 May 11  2006 /etc/mail
# ls -l /etc/mail
total 270
-rw-r--r--   1 root     bin          163 Apr 27  2006 Mail.rc
-rw-r--r--   1 root     bin         1423 Apr 27  2006 aliases
-rw-r-----   1 root     smmsp      40960 Apr 27  2006 aliases.db
drwxr-xr-x   9 root     mail         512 May 11  2006 cf
-rw-r--r--   1 root     bin         5455 Mar 30  2006 helpfile
-rw-r--r--   1 root     bin            0 Jan 22  2005 local-host-names
-rw-r--r--   1 root     bin         1839 Apr 27  2006 mailx.rc
lrwxrwxrwx   1 root     root          11 Apr 27  2006 main.cf -> sendmail.cf
-r--r--r--   1 root     bin        39875 Mar 30  2006 sendmail.cf
lrwxrwxrwx   1 root     root           8 Apr 27  2006 sendmail.hf -> helpfile
-r--r--r--   1 root     bin        40216 Mar 30  2006 submit.cf
lrwxrwxrwx   1 root     root          11 Apr 27  2006 subsidiary.cf -> sendmail.cf
-rw-r--r--   1 root     bin            5 Jan 22  2005 trusted-users

Open in new window

0
nishitcruiseCommented:
Check here for missing files
http://docs.sun.com/app/docs/doc/806-0633/6j9vn6q2a?a=view

and change the permissions

-r--r--r-- 1 root bin 35625 Oct 1 05:09 sendmail.cf
-r--r--r-- 1 root bin 35625 Sep 30 10:24 subsidiary.cf
0
AmolCommented:
try killing the parent process and see what happens...
0
omar2010Author Commented:
this is production system I can't kill any process for try to figure out what happen
0
omar2010Author Commented:
Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.