exim can`t receive e-mail, problem with /var/spool/exim/* permissions

igord

New member
Joined
Jan 31, 2009
Messages
3
hello to everyone,

exim reports error when trying to receive mail:


2009-02-04 14:18:03 1LUhdj-0000zZ-9f Failed to create spool file /var/spool/exim/input//1LUhdj-0000zZ-9f-D: Permission denied


what is preferable solutions of this problem?


for example, this can fix problem:

chmod o+rwx /var/spool/exim/*

but maybe there is another (maybe more properly) solution?
 
Run the DirectAdmin set permissions script.

Jeff

yes,

I tried that at first time, but it won`t correct permissions;

as I can notice, problem may be because (line 24 of set_permission.sh):

"
24 DOVECOT=`grep -c 'dovecot=1' /usr/local/directadmin/conf/directadmin.conf`
"

and that is 1 because dovecot=1;

after that, at line 416 and 448:

"
146 if [ "$DOVECOT" -eq 0 ]; then

...
...

448 chown -R mail:mail /var/spool/exim
"

so, it seems like this script won`t set permissions at /var/spool/exim/* to mail:mail because dovecot is installed?
 
set_permission.sh problem?

also,

why set_permissions.sh makes /var/lib/mysql/mysql.sock mysql:mysql with 600, so regular users can`t connect to mysql server?
 
so, it seems like this script won`t set permissions at /var/spool/exim/* to mail:mail because dovecot is installed?
If Dovecot is installed with DirectAdmin there shouldn't be any email in /var/spool/exim.

Jeff
 
Back
Top