[Dovecot] dovecot LDA error
Hi,
My dovecot version is ,
# 2.0.20: /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-164.el5 x86_64 CentOS release 5.4 (Final)
auth_debug = yes
auth_debug_passwords = yes
auth_verbose = yes
auth_verbose_passwords = plain
debug_log_path = /var/log/dovecot.log
disable_plaintext_auth = no
hostname = host1.bigmama.com
info_log_path = /var/log/dovecot.log
log_path = /var/log/dovecot.log
mail_debug = yes
mail_location = maildir:~/Maildir
passdb {
args = scheme=PLAIN username_format=%u /etc/dovecot/users
driver = passwd-file
}
postmaster_address = root@host1.bigmama.com
service auth {
unix_listener auth-userdb {
group = mail
mode = 0660
user = mail
}
}
ssl = no
userdb {
args = username_format=%u /etc/dovecot/users
driver = passwd-file
}
protocol lda {
info_log_path = /var/log/dovecot-lda.log
log_path = /var/log/dovecot-lda-errors.log
}
Im getting error from dovecot LDA logs log_path = /var/log/dovecot-lda-errors.log
Apr 24 20:25:46 lda(jamal@example.com): Fatal:
setgid(5000(vmail) from userdb lo
okup) failed with
euid=8(mail), gid=12(mail), egid=12(mail): Operation not permi
tted (This binary should probably be called with process group set to 5000(vmail
) instead of 12(mail))
My usersdb config
jamal@example.com:{PLAIN}123:5000:5000::/var/vmail/example.com/jamal/
user 5000 system user as vmail
Permissions for the /var/vmail directory as follow
drwxr-xr-x 3 vmail vmail 4096 Apr 24 20:18 /var/vmail/
drwx------ 3 vmail vmail 4096 Apr 24 20:18 /var/vmail/example.com/
drwx------ 3 vmail vmail 4096 Apr 24 20:18 /var/vmail/example.com/jamal/
drwx------ 5 vmail vmail 4096 Apr 24 20:20 /var/vmail/example.com/jamal/Maildir/
On 24.4.2012, at 20.41, Hadi Salem wrote:
Apr 24 20:25:46 lda(jamal@example.com): Fatal: setgid(5000(vmail) from userdb lo
okup) failed with euid=8(mail), gid=12(mail), egid=12(mail): Operation not permi
tted (This binary should probably be called with process group set to 5000(vmail
) instead of 12(mail))
Configure your MTA to run dovecot-lda as vmail instead of as mail.
Hi Timo Sirainen,
It’s working with me fine. With no problem.
After I configured my MTA (sendmail) to run dovecot-lda as root with chmod 4750 /local/user/libexce/dovecot/dovecot-lda. And create group called secmail.
I had to change dovecot-lda group to secmail. And then added mail to secmail group.
It works with me.
Before when I changed dovecot-lda group direct to mail doesn’t work. But it should to work.!!!
I think that was the error. Later after creating separate group and adding mail to it, it’s working fine.. Any idea here… why doesn’t work if I changed dovecot-lda direct to mail group instead of creating new group and adding mail to it???.
Hadi-
From: tss@iki.fi Date: Thu, 26 Apr 2012 00:29:51 +0300 To: almarzuki2001@hotmail.com CC: dovecot@dovecot.org Subject: Re: [Dovecot] dovecot LDA error
On 24.4.2012, at 20.41, Hadi Salem wrote:
Apr 24 20:25:46 lda(jamal@example.com): Fatal: setgid(5000(vmail) from userdb lo
okup) failed with euid=8(mail), gid=12(mail), egid=12(mail): Operation not permi
tted (This binary should probably be called with process group set to 5000(vmail
) instead of 12(mail))Configure your MTA to run dovecot-lda as vmail instead of as mail.
participants (2)
-
Hadi Salem
-
Timo Sirainen