PDA

View Full Version : eXim 4.66 RedHat es 4 (Not working at all)


ITDevil
03-07-2007, 02:21 AM
Hi,

I have complied exim 4.66 version using the source, now i do not seem to make it work

i am getting the fallowing error when i try send mail

$ exim xxx@xxxx.xxx
test

1HOeWd-0000SH-EZ Cannot open main log file "/var/log/exim/mainlog": Permission denied: euid=8 egid=12
1HOeWd-0000SH-EZ Failed to create spool file /var/spool/exim/input//1HOeWd-0000SH-EZ-D: Permission denied
1HOeWd-0000SH-EZ 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


exim never stops, but starts OK

$ service exim restart

Shutting down exim: [FAILED]
Starting exim: [ OK ]

$ /etc/init.d/exim status

exim dead but pid file exists

$ exim -bd -d+all

Exim version 4.66 uid=0 gid=0 pid=11658 D=fffdffff
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December 11, 2004)
Support for: crypteq iconv() Perl OpenSSL move_frozen_messages Content_Scanning Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz
Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral iplookup manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Size of off_t: 8
11658 changed uid/gid: forcing real = effective
11658 uid=0 gid=0 pid=11658
11658 auxiliary group list: <none>
11658 seeking password data for user "root": cache not available
11658 getpwnam() succeeded uid=0 gid=0
11658 configuration file is /etc/exim.conf
11658 log selectors = 00000ffc 00089001
11658 cwd=/root 3 args: exim -bd -d+all
11658 trusted user
11658 admin user
11658 originator: uid=0 gid=0 login=root name=root
11658 listening on all interfaces (IPv4) port 25
11658 pid written to /var/run/exim.pid
11658 changed uid/gid: running as a daemon
11658 uid=8 gid=12 pid=11658
11658 auxiliary group list: 12
11658 LOG: MAIN
11658 exim 4.66 daemon started: pid=11658, no queue runs, listening for SMTP on port 25 (IPv4)
11658 LOG: PANIC DIE
11658 Cannot open main log file "/var/log/exim/mainlog": Permission denied: euid=8 egid=12
11658 2007-03-07 exim 4.66 daemon started: pid=11658, no queue runs, listening for SMTP on port 25 (IPv4)
11658 2007-03-07 Cannot open main log file "/var/log/exim/mainlog": Permission denied: euid=8 egid=12
11658 exim: could not open panic log - aborting: see message(s) above
11658 search_tidyup called
11658 >>>>>>>>>>>>>>>> Exim pid=11658 terminating with rc=1 >>>>>>>>>>>>>>>>

$ ll -d /var/log/exim

drw-rw-rw- 2 exim exim 4096 Mar 6 08:02 /var/log/exim

$ ll /var/log/exim
total 0
-rw-rw-rw- 1 exim exim 0 Mar 6 05:49 mainlog
-rw-rw-rw- 1 exim exim 0 Mar 6 08:26 main.log
-rw-rw-rw- 1 exim exim 0 Mar 6 04:24 panic.log
-rw-rw-rw- 1 exim exim 0 Mar 6 07:39 reject.log



$ grep ^mail /etc/passwd | cut -f1,3-4 -d:
mail:8:12
mailnull:47:47

$ ls -l /var/log/exim
total 106460
-rw-rw-rw- 1 exim exim 0 Mar 6 05:49 mainlog
-rw-rw-rw- 1 exim exim 147308 Mar 6 08:26 main.log
-rw-rw-rw- 1 exim exim 98029925 Mar 6 04:19 main.log.old
-rw-rw-rw- 1 exim exim 0 Mar 6 04:24 panic.log
-rw-rw-rw- 1 exim exim 3252835 Mar 5 19:26 panic.log.old
-rw-rw-rw- 1 exim exim 2397 Mar 6 07:39 reject.log
-rw-rw-rw- 1 exim exim 7418431 Mar 6 04:14 reject.log.old


$ ls -lad /var/log
drwxr-xr-x 14 root root 4096 Mar 6 08:37 /var/log


$ ls -lad /var/log/exim
drw-rw-rw- 2 exim exim 4096 Mar 6 08:02 /var/log/exim


I would be really great full is someone guide me sorting it out :)

Thank you!

jlasman
03-08-2007, 10:59 AM
Where did you get the source? If you got it from the exim site, then it's not what you need.

If you downloaded the DirectAdmin exim source rpm, and built from that, then it should work.

The error I see shows that the log file isn't properly created, but there may be other problems as well if you built it from exim source.

Jeff