[Dovecot] setgid error
Hi all
Trying to setup dovecot with mysql and postfix, I have configured it
as given below. thecot user has the dovecot group as primary, and is
also a member of mail and dovecot-users. Still, it can't setgid to
dovecot-users. I tried changing the shell for the dovecot user to
something useful and chmod'ing a file to dovecot-users, and it work
well. Still, no mail comes through and dovecot gives me this error
deliver(roy@somedomain.com): 2009-05-23 15:02:52 Fatal: setgid(115)
failed with euid=115, gid=114, egid=114: Operation not permitted
Any ideas?
roy
# Dovecot config # 1.0.15: /etc/dovecot/dovecot.conf log_path: /var/log/dovecot/dovecot.log log_timestamp: %Y-%m-%d %H:%M:%S disable_plaintext_auth: no verbose_ssl: yes login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login verbose_proctitle: yes mail_privileged_group: mail mail_location: maildir:/var/spool/dovecot/%d/%n auth default: default_realm: eventchief.com verbose: yes debug: yes passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf socket: type: listen master: path: /var/run/dovecot/auth-master mode: 432 user: dovecot group: mail
-- Roy Sigurd Karlsbakk (+47) 97542685 / 98013356 roy@karlsbakk.net http://blogg.karlsbakk.net/
I all pedagogikk er det essensielt at pensum presenteres
intelligibelt. Det er et elementært imperativ for alle pedagoger å
unngå eksessiv anvendelse av idiomer med fremmed opprinnelse. I de
fleste tilfeller eksisterer adekvate og relevante synonymer på norsk.
On May 23, 2009, at 9:14 AM, Roy Sigurd Karlsbakk wrote:
deliver(roy@somedomain.com): 2009-05-23 15:02:52 Fatal: setgid(115)
failed with euid=115, gid=114, egid=114: Operation not permitted
You start deliver with wrong group (114 instead of 115). What does
your Postfix configuration for deliver look like?
On 23. mai. 2009, at 22.46, Timo Sirainen wrote:
On May 23, 2009, at 9:14 AM, Roy Sigurd Karlsbakk wrote:
deliver(roy@somedomain.com): 2009-05-23 15:02:52 Fatal: setgid(115)
failed with euid=115, gid=114, egid=114: Operation not permittedYou start deliver with wrong group (114 instead of 115). What does
your Postfix configuration for deliver look like?
See postfix config below. Postfix seems to be run by the postfix user
(not mail, as I thought). How can I change deliver to be run as the
right group?
roy
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no
append_dot_mydomain = no
myhostname = eventchief.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname
mydestination = localhost.localdomain, localhost.localdomain,
localhost, eventchief.com
mynetworks = 127.0.0.0/8 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all mailbox_transport = dovecot
local_recipient_maps =
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_invalid_hostname, reject_non_fqdn_recipient, reject_unauth_destination, check_policy_service inet:127.0.0.1:60000 permit
-- Roy Sigurd Karlsbakk (+47) 97542685 / 98013356 roy@karlsbakk.net http://blogg.karlsbakk.net/
I all pedagogikk er det essensielt at pensum presenteres
intelligibelt. Det er et elementært imperativ for alle pedagoger å
unngå eksessiv anvendelse av idiomer med fremmed opprinnelse. I de
fleste tilfeller eksisterer adekvate og relevante synonymer på norsk.
On 25. mai. 2009, at 00.12, Timo Sirainen wrote:
On Sun, 2009-05-24 at 12:17 +0200, Roy Sigurd Karlsbakk wrote:
mailbox_command = procmail -a "$EXTENSION" mailbox_transport = dovecot
I guess the mailbox_command is ignored and it really uses dovecot transport? What does the dovecot line look like in master.cf?
dovecot unix - n n - - pipe flags=DRhu user=dovecot:dovecot argv=/usr/lib/dovecot/deliver -f $ {sender} -d ${recipient}
-- Roy Sigurd Karlsbakk (+47) 97542685 / 98013356 roy@karlsbakk.net http://blogg.karlsbakk.net/
I all pedagogikk er det essensielt at pensum presenteres
intelligibelt. Det er et elementært imperativ for alle pedagoger å
unngå eksessiv anvendelse av idiomer med fremmed opprinnelse. I de
fleste tilfeller eksisterer adekvate og relevante synonymer på norsk.
On Mon, 2009-05-25 at 11:50 +0200, Roy Sigurd Karlsbakk wrote:
On 25. mai. 2009, at 00.12, Timo Sirainen wrote:
On Sun, 2009-05-24 at 12:17 +0200, Roy Sigurd Karlsbakk wrote:
mailbox_command = procmail -a "$EXTENSION" mailbox_transport = dovecot
I guess the mailbox_command is ignored and it really uses dovecot transport? What does the dovecot line look like in master.cf?
dovecot unix - n n - - pipe flags=DRhu user=dovecot:dovecot argv=/usr/lib/dovecot/deliver -f $ {sender} -d ${recipient}
Don't use dovecot user here or in your userdb. http://wiki.dovecot.org/UserIds
On 26. mai. 2009, at 01.51, Timo Sirainen wrote:
On Mon, 2009-05-25 at 11:50 +0200, Roy Sigurd Karlsbakk wrote:
On 25. mai. 2009, at 00.12, Timo Sirainen wrote:
On Sun, 2009-05-24 at 12:17 +0200, Roy Sigurd Karlsbakk wrote:
mailbox_command = procmail -a "$EXTENSION" mailbox_transport = dovecot
I guess the mailbox_command is ignored and it really uses dovecot transport? What does the dovecot line look like in master.cf?
dovecot unix - n n - - pipe flags=DRhu user=dovecot:dovecot argv=/usr/lib/dovecot/deliver -f $ {sender} -d ${recipient}
Don't use dovecot user here or in your userdb. http://wiki.dovecot.org/UserIds
Can someone please give me an example config that works? I've tried
multiple different configurations, but I just get stuck. The docs
don't really say much about what should be used either. I tried making
a uid 500 user and setting minimum uid to 500, but I still got an error.
roy
Roy Sigurd Karlsbakk (+47) 97542685 / 98013356 roy@karlsbakk.net http://blogg.karlsbakk.net/
I all pedagogikk er det essensielt at pensum presenteres
intelligibelt. Det er et elementært imperativ for alle pedagoger å
unngå eksessiv anvendelse av idiomer med fremmed opprinnelse. I de
fleste tilfeller eksisterer adekvate og relevante synonymer på norsk.
participants (2)
-
Roy Sigurd Karlsbakk
-
Timo Sirainen