RE: lmtp Fatal: setresgid Operation not permitted
I am getting the following error when Postfix attempts LMTP delivery :
"lmtp(REDACTED)<32674><7Jm0BSVopmaifwAAbW4UVQ>: Fatal: setresgid(121(mailbox_user),121(mailbox_user),8(mail)) failed with euid=111(mailbox_user): Operation not permitted"
mailbox_user is uid 111, gid 121 on my system.
Not related to low uid/gid numbers? I think newer OS have their limits increased to above 1000 or so.
Well, my OS is Debian Bookworm which should be "newer" enough ? ;-)
User/group were originally created via :
adduser --system --disabled-login --shell /usr/sbin/nologin mailbox_user addgroup --system mailbox_user
On 28/07/2024 18:41, Rachel Roch via dovecot wrote:
I am getting the following error when Postfix attempts LMTP delivery :
"lmtp(REDACTED)<32674><7Jm0BSVopmaifwAAbW4UVQ>: Fatal: setresgid(121(mailbox_user),121(mailbox_user),8(mail)) failed with euid=111(mailbox_user): Operation not permitted"
mailbox_user is uid 111, gid 121 on my system.
Not related to low uid/gid numbers? I think newer OS have their limits increased to above 1000 or so.
Well, my OS is Debian Bookworm which should be "newer" enough ? ;-)
User/group were originally created via :
adduser --system --disabled-login --shell /usr/sbin/nologin mailbox_user addgroup --system mailbox_user
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Hi Rachel
Could it be that user mailbox_user is not a member of group mailbox_user?
What does grep mailbox_user /etc/passwd show?
John
On 28/07/2024 19:41 EEST Rachel Roch via dovecot dovecot@dovecot.org wrote:
I am getting the following error when Postfix attempts LMTP delivery :
"lmtp(REDACTED)<32674><7Jm0BSVopmaifwAAbW4UVQ>: Fatal: setresgid(121(mailbox_user),121(mailbox_user),8(mail)) failed with euid=111(mailbox_user): Operation not permitted"
mailbox_user is uid 111, gid 121 on my system.
Not related to low uid/gid numbers? I think newer OS have their limits increased to above 1000 or so.
Well, my OS is Debian Bookworm which should be "newer" enough ? ;-)
User/group were originally created via :
adduser --system --disabled-login --shell /usr/sbin/nologin mailbox_user addgroup --system mailbox_user
It's trying to set group 8, which mailbox_user appears to be not part of?
Also, if it's extra group, you need to do
service lmtp { extra_groups = mail }
Aki
participants (3)
-
Aki Tuomi
-
John Fawcett
-
Rachel Roch