[Exim] Installing Exim 4.20 (almost there) - Permissions Iss…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Craig
Data:  
Para: exim-users
Assunto: [Exim] Installing Exim 4.20 (almost there) - Permissions Issue
Greetings List,

I'm wondering if anyone could point me in the correct direction.. I'm
trying (testing) my ability to install Exim 4.20 on an old Cobalt RaQ
system -which was previously running sendmail 8.10.. It's a test box, and I
have managed to get Exim on the box and fired-up, and all is well except
for a nagging permissions issue that I can't seem to nail down.. The Cobalt
OS was originally based on RedHat 6.2 and I still need to run the old style
mail directory/drop.. I'm not able to use the newer ./Maildir format
because of other software limitations on the system which I still depend on..

Here's what I have so far..

Exim 4.20 installed on the box..

I setup an init.d script and had it call a small script under
/etc/sysconfig to setup the daemon when starting up:

# /etc/sysconfig/exim
DAEMON="-bd"

# Procede the queue every 1 minutes.
QUEUE="-q1m"

But when I start Exim I get the following error in my logs, although Exim
still fires-up..

Jun 5 01:51:50 exim[2833]: 2003-06-05 01:51:50 exim 4.20 daemon started:
pid=2833, -q1m, listening for SMTP on port 25 (IPv4)

Jun 5 01:51:50 exim[2835]: 2003-06-05 01:51:50 re-exec of exim
(/usr/sbin/exim) with -q failed: Permission denied

I know it's tied to the Queue -because if I comment out the about
directive, it doesn't complain.. I can also see it complaining in the log
file every 60 seconds, but I'm stumped...

I've also run several tests and most seem to be okay:

[root /]# /usr/sbin/exim -bV
Exim version 4.20 #1 built 05-Jun-2003 01:39:26
Copyright (c) University of Cambridge 2003
Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
Support for:
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile autoreply pipe smtp
Configuration file is /etc/exim/exim.conf

----------

[root /]# /usr/sbin/exim -bt postmaster
admin@???
     <-- postmaster@???
   router = localuser, transport = local_delivery


-----------

[root /]# /usr/sbin/exim -bt me@???
me@???
   router = dnslookup, transport = remote_smtp
   host mx2.mail.yahoo.com [64.156.215.5]   MX=1
   host mx2.mail.yahoo.com [64.157.4.82]    MX=1
   host mx2.mail.yahoo.com [64.157.4.78]    MX=1
   host mx1.mail.yahoo.com [64.156.215.6]   MX=1
   host mx4.mail.yahoo.com [216.136.129.17] MX=5
   host mx4.mail.yahoo.com [66.218.86.254]  MX=5
   host mx4.mail.yahoo.com [216.136.129.5]  MX=5
   host mx4.mail.yahoo.com [66.218.86.253]  MX=5


-----------

This is the first test that failed:

[root /]# /usr/sbin/exim -v postmaster@???
From: sysadmin@???
To: postmaster@???
Subject: Testing Exim

This is a test.
LOG: MAIN
<= root@??? U=root P=local S=355
[root /]# LOG: MAIN PANIC
re-exec of exim (/usr/sbin/exim) with -Mc failed: Permission denied

-----------

Inside the log I see basically the same permission denied error:

Jun 5 01:54:50 exim[2958]: 2003-06-05 01:54:50 re-exec of exim
(/usr/sbin/exim) with -q failed: Permission denied

-----------

So I'm pretty sure this is a permissions error that's being generated from
the left over structure of the previous sendmail system, which I thought I
had completely stripped out of the machine.. Am I on track or missing
something here.. When I start exim and it gives me the following error;

Jun 5 01:51:50 exim[2835]: 2003-06-05 01:51:50 re-exec of exim
(/usr/sbin/exim) with -q failed: Permission denied

What/where is it trying to set permissions that must obviously be off -the
/mqueue..?

cd /var/spool/

[root spool]# ls -al
total 6
drwxr-xr-x    6 root     root         1024 Jun  5 01:40 .
drwxr-xr-x   20 root     root         1024 Jun  3 02:54 ..
drwx------    2 root     root         1024 Apr  1 16:59 cron
drwxr-x---    3 mail     mail         1024 Jun  5 01:54 exim
drwxrwxrwt    2 root     mail         1024 Jun  4 06:41 mail
lrwxrwxrwx    1 root     root           23 Mar 31 18:07 mqueue ->
../../home/spool/mqueue
drwxrwxrwt    2 root     root         1024 Mar 31 04:02 samba


[root spool]# cd /var/spool/exim
[root exim]# ls -al
total 4
drwxr-x---    3 mail     mail         1024 Jun  5 01:54 .
drwxr-xr-x    6 root     root         1024 Jun  5 01:40 ..
-rw-r--r--    1 root     mail            5 Jun  5 01:51 exim-daemon.pid
drwxr-x---    2 mail     mail         1024 Jun  5 01:54 input


[root exim]# cd ../mail
[root mail]# ls -al
total 2
drwxrwxrwt    2 root     mail         1024 Jun  4 06:41 .
drwxr-xr-x    6 root     root         1024 Jun  5 01:40 ..
lrwxrwxrwx    1 admin    home           39 Mar 31 18:11 admin ->
/home/sites/home/../../spool/mail/admin


[root mail]# cd /home/spool/mail
[root mail]# ls -al
total 2
drwxrwxr-x    2 root     mail         1024 Jun  2 23:23 .
drwxr-xr-x    4 root     root         1024 Mar 31 04:02 ..
-rw-------    1 admin    home            0 Jun  4 01:58 admin


What (where) am I missing here.. I know it's probably glaring me right in
the face... I think I have two permissions issues - one being with the
mqueue -though I'm not sure what permissions Exim is looking for, I thought
it setup the mqueue itself when started if it didn't already exist..

Any guidance would be greatly appreciated.. I'm so close I can almost taste
it..

Thanks!
Craig