permission for auth-master failed

arkas

New member
Joined
Aug 16, 2011
Messages
2
hello,

I am trying to install dovecot and postfix and am so far that both start without error.
But when I set up an email account with postfixadmin, I get in transmitting the welcome message the following error message:

/var/log/dovecot.log:
2011-08-16 21:12:56 deliver([email protected]): Error: userdb lookup: connect(/var/run/dovecot/auth-master) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +r perm: /var/run/dovecot/auth-master)

/var/log/mail.log:
Aug 16 21:17:56 mail postfix/pipe[9780]: 275009415D0: to=<[email protected]>, relay=dovecot, delay=16616, delays=16616/0.01/0/0.17, dsn=4.3.0, status=deferred (temporary failure)

# ls -lh /var/run/dovecot/ :
srw------- 1 postfix mail 0 Aug 16 19:12 auth-master

# cat /etc/group:
mail:x:8:dovecot,vmail
postfix:x:112:
dovecot:x:114:postfix,vmail
vmail:x:5000:

/etc/dovecot/dovecot.conf:
socket listen {
master {
# Master socket provides access to userdb information. It's typically
# used to give Dovecot's local delivery agent access to userdb so it
# can find mailbox locations.
path = /var/run/dovecot/auth-master
mode = 0600
# Default user/group is the one who started dovecot-auth (root)
user = postfix
group = mail
}
client {
# The client socket is generally safe to export to everyone. Typical use
# is to export it to your SMTP server so it can do SMTP AUTH lookups
# using it.
#path = /var/run/dovecot/auth-client
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}

/etc/postfix/master.cf:
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}

Unfortunately I have no idea why it does not does not work.
I would be very grateful for the help.
 
just by the looks of it, I would say permissions problem. You are calling the dovecot deliver program as the user vmail, only the user postfix has permissions to read the auth-master:
srw------- 1 postfix mail 0 Aug 16 19:12 auth-master

Try using postfix instead of vmail for the process that calls deliver.
 
Thanks for help.
This has unfortunately not worked.
I've been transferred to a completely new setup.
 
Back
Top