exim down permisions

davew

Verified User
Joined
Apr 22, 2004
Messages
11
I thought I fixed it once but I guess it was so late I was seeing things. Anyhow,
I can get exim to start. Well it starts but it dies a split second later.

Here are some errors

[root@box1 sbin]# /etc/init.d/exim status
exim dead but pid file exists

[root@box1 sbin]# exim start

exim: SIGINT received - message abandoned
2004-06-15 00:21:13 Cannot open main log file "/var/log/exim/mainlog": Permission denied: euid=8 egid=12
2004-06-15 00:21:13 SIGINT received while reading local message
2004-06-15 00:21:13 Cannot open main log file "/var/log/exim/mainlog": Permission denied: euid=8 egid=12
exim: could not open panic log - aborting: see message(s) above
I beleive the second error is the main problem of it killing off and leaving the pid.
what user is suppose to be the owner of /var/log/exim/mainlog??
I ever tried chmod'n it
I chown root:root and diradmin:diradmin and still didnt work.
DA Support...what ya think?

-Dave
 
Didnt work. It started for a split second then fails. :confused:
Thanks though.
 
Try this and post the results:

$ cd /var/log
$ ls -ald exim

You should get something like this:

drwxr-xr-x 2 mail mail 4096 Jun 13 04:02 exim

What do you get?

Then try this and post the results.

$ cd /var/log/exim
$ ls -al mainlog*

You should get something like this:

-rw-r--r-- 1 mail mail 7986871 Jun 15 08:12 mainlog
-rw-r--r-- 1 mail mail 4105300 Jun 13 04:02 mainlog.1.gz
-rw-r--r-- 1 mail mail 3870413 Jun 6 04:02 mainlog.2.gz
-rw-r--r-- 1 mail mail 3915762 May 30 04:02 mainlog.3.gz
-rw-r--r-- 1 mail mail 3702227 May 23 04:02 mainlog.4.gz

Do you?

Try this:

$ ps waux | grep exim

You should at least get a first line similar to this:

[jlasman@da1 exim]$ ps waux | grep exim
mail 9776 0.0 0.0 4824 232 ? S Jun11 0:09 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid

Do you?

If so, then you shouldn't be getting those errors.

If not, we can help you make the necessary changes :) .

Jeff
 
Hi jlasman
Thanks for your reply.
All those commands come out good untill the last one

[root@box1 exim]# ps waux | grep exim
root 13333 0.0 0.0 3576 632 pts/1 S 11:15 0:00 grep exim


It is showing root instead of mail at the begining.
 
Your /usr/sbin/exim line should look something like this:

[jlasman@da1 root]$ ls -al /usr/sbin/exim
-rwsr-xr-x 1 root root 1451459 Oct 29 2003 /usr/sbin/exim
[jlasman@da1 root]$


It should properly be owned by root:root.

Can you show us the lines (grepped from /etc/passwd and /etc/group) showing us the lines for the user id 8 and for the group id 12?

Mail should be euid 8 and group euid 12.

And actually show us those lines I asked you about.

Jeff
 
I did have qmail on this system, maybe iits user is interfering? I have no clue.
/etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
news:x:9:13:news:/etc/news:
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
rpm:x:37:37::/var/lib/rpm:/bin/bash
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
squid:x:23:23::/var/spool/squid:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
proftpd:x:100:101:proftpd:/tmp:/bin/true
webalizer:x:67:67:Webalizer:/var/www/html/usage:/sbin/nologin
alias:x:101:102:alias user:/var/qmail/alias:/bin/true
qmaild:x:102:102:qmaild user:/var/qmail:/bin/true
qmaill:x:103:102:qmaill user:/var/qmail:/bin/true
qmailp:x:104:102:qmailp user:/var/qmail:/bin/true
qmailq:x:105:103:qmailq user:/var/qmail:/bin/true
qmailr:x:106:103:qmailr user:/var/qmail:/bin/true
qmails:x:107:103:qmails user:/var/qmail:/bin/true
vpopmail:x:108:104:vpopmail:/home/vpopmail:/bin/true
dnscache:x:109:109:djbdns:/var/djbdns:/bin/true
dnslog:x:110:110:djbdns:/var/djbdns:/bin/true
tinydns:x:111:111:djbdns:/var/djbdns:/bin/true
iworx:x:112:112:interworx:/home/interworx:/bin/bash
dnsboxes:x:500:500::/home/dnsboxes:/sbin/nologin
jokenutc:x:502:502::/home/jokenutc:/sbin/nologin
zxfourco:x:503:503::/home/zxfourco:/sbin/nologin
yourhost:x:505:505::/home/yourhost:/sbin/nologin
xgyncom:x:506:506::/home/xgyncom:/sbin/nologin
ezdriver:x:507:507::/home/ezdriver:/sbin/nologin
dnsboxe1:x:508:508::/home/dnsboxe1:/sbin/nologin
ezdemosc:x:509:509::/home/ezdemosc:/sbin/nologin
ezgeeksc:x:510:510::/home/ezgeeksc:/sbin/nologin
ezovercl:x:511:511::/home/ezovercl:/sbin/nologin
systemex:x:514:514::/home/systemex:/sbin/nologin
systeme1:x:515:515::/home/systeme1:/sbin/nologin
geekshou:x:516:516::/home/geekshou:/sbin/nologin
dlwsoftc:x:517:517::/home/dlwsoftc:/sbin/nologin
tgphostu:x:521:521::/home/tgphostu:/sbin/nologin
named:x:25:25:Named:/var/named:/sbin/nologin
diradmin:x:113:113::/usr/local/directadmin:/bin/bash
majordomo:x:114:2::/etc/virtual/majordomo:/bin/bash
admin:x:525:525::/home/admin:/bin/bash
david:x:526:526::/home/david:/bin/bash
vengeman:x:527:527::/home/vengeman:/bin/bash
fournine:x:528:528::/home/fournine:/bin/bash
qthreese:x:529:529::/home/qthreese:/bin/bash

/etc/group
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon,lp
mem:x:8:
kmem:x:9:
wheel:x:10:root
mail:x:12:mail
news:x:13:news
uucp:x:14:uucp
man:x:15:
games:x:20:
gopher:x:30:
dip:x:40:
ftp:x:50:
lock:x:54:
nobody:x:99:
users:x:100:
rpm:x:37:
floppy:x:19:
vcsa:x:69:
utmp:x:22:
nscd:x:28:
slocate:x:21:
sshd:x:74:
rpc:x:32:
rpcuser:x:29:
nfsnobody:x:65534:
pcap:x:77:
apache:x:48:
squid:x:23:
xfs:x:43:
ntp:x:38:
mysql:x:27:
proftpd:x:101:
webalizer:x:67:
nofiles:x:102:
qmail:x:103:
vchkpw:x:104:iworx
dnscache:x:109:
dnslog:x:110:
tinydns:x:111:
iworx:x:112:
dnsboxes:x:500:
jokenutc:x:502:
zxfourco:x:503:
yourhost:x:505:
xgyncom:x:506:
ezdriver:x:507:
dnsboxe1:x:508:
ezdemosc:x:509:
ezgeeksc:x:510:
ezovercl:x:511:
systemex:x:514:
systeme1:x:515:
 
You guys are the BOMB!!!
Support rooted into muh box and fixed it.
Thanks ALLOT!!
jlasman & ozcorp
Thanks for the help :)
 
Last edited:
Followup: If I remeber correctly, it was /var/log being chmod 750 ... mail couldn't see in. Qmail left overs :)

John
 
exim

I also got the same problem.can u tell me what have u done to fix this...????
I have checked all the things above said and found everything same to same except
ps waux | grep exim.....pls help me....:(
 
Back
Top