[Dovecot] Could use some help setting Dovecot up for the first time
Hi Everyone,
I've managed to get most of postfix and dovecot running using the howto located on dovecot.org.
So, I went to go test sending a email locally and i am getting this error which i cannot seem to resolve. Any help would be welcomed.
Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input: home=/var/vmail/test@fasti.net/ Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input: mail=maildir:/var/vmail/test@fasti.net/ Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input: uid=101 Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input: gid=12 Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input: quota=maildir:storage=0 Mar 07 19:14:55 deliver(test@fasti.net): Fatal: setgid(12) failed with euid=101(vmail), gid=6(mail), egid=6(mail): Operation not permitted
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
On Mar 7, 2010, at 11:18 AM, joe wrote:
Hi Everyone,
I've managed to get most of postfix and dovecot running using the
howto located on dovecot.org.So, I went to go test sending a email locally and i am getting this
error which i cannot seem to resolve. Any help would be welcomed.Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input: home=/var/vmail/test@fasti.net / Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input:
mail=maildir:/var/vmail/test@fasti.net/ Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input: uid=101 Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input: gid=12 Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input:
quota=maildir:storage=0 Mar 07 19:14:55 deliver(test@fasti.net): Fatal: setgid(12) failed
with euid=101(vmail), gid=6(mail), egid=6(mail): Operation not
permitted
I usually find this type of message "Operation not permitted" to be a
permissions issue. Check that the user "deliver" running as has the
needed permissions to work in your directories "/var/vmail".
// Brad
That's what i thought too but for the life of me i cannot figure out what is causing it. I figured i must have missed something along the way. I'm on my 5th or so time installing everything (within a jail), so hopefully i get it right this time!
Wish me luck, and if anyone out there might have an idea of how to resolve this issue (it happens everytime i install everything) i would love to hear it!
Joe
On 3/7/2010 2:46 PM, Bradley Giesbrecht wrote:
On Mar 7, 2010, at 11:18 AM, joe wrote:
Hi Everyone,
I've managed to get most of postfix and dovecot running using the howto located on dovecot.org.
So, I went to go test sending a email locally and i am getting this error which i cannot seem to resolve. Any help would be welcomed.
Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input: home=/var/vmail/test@fasti.net/ Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input: mail=maildir:/var/vmail/test@fasti.net/ Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input: uid=101 Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input: gid=12 Mar 07 19:14:55 deliver(test@fasti.net): Info: auth input: quota=maildir:storage=0 Mar 07 19:14:55 deliver(test@fasti.net): Fatal: setgid(12) failed with euid=101(vmail), gid=6(mail), egid=6(mail): Operation not permitted
I usually find this type of message "Operation not permitted" to be a permissions issue. Check that the user "deliver" running as has the needed permissions to work in your directories "/var/vmail".
// Brad
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
On 3/7/2010 12:35, joe wrote:
That's what i thought too but for the life of me i cannot figure out what is causing it. I figured i must have missed something along the way. I'm on my 5th or so time installing everything (within a jail), so hopefully i get it right this time!
Wish me luck, and if anyone out there might have an idea of how to resolve this issue (it happens everytime i install everything) i would love to hear it!
Are you running postfix in chroot? If you are, I'd suggest turning it off.
~Seth
On 3/7/2010 3:40 PM, Seth Mattinen wrote:
On 3/7/2010 12:35, joe wrote:
That's what i thought too but for the life of me i cannot figure out what is causing it. I figured i must have missed something along the way. I'm on my 5th or so time installing everything (within a jail), so hopefully i get it right this time!
Wish me luck, and if anyone out there might have an idea of how to resolve this issue (it happens everytime i install everything) i would love to hear it!
Are you running postfix in chroot? If you are, I'd suggest turning it off.
~Seth
Postfix is not running in chroot. Anymore suggestions? ;)
Joe
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
On 7.3.2010, at 21.18, joe wrote:
Mar 07 19:14:55 deliver(test@fasti.net): Fatal: setgid(12) failed with euid=101(vmail), gid=6(mail), egid=6(mail): Operation not permitted
Your userdb says mails should be accessed with gid=12, but you're calling deliver from Postfix with gid=6. Change either one of them to the other (userdb or pipe in master.cf).
On 3/7/2010 4:49 PM, Timo Sirainen wrote:
On 7.3.2010, at 21.18, joe wrote:
Mar 07 19:14:55 deliver(test@fasti.net): Fatal: setgid(12) failed with euid=101(vmail), gid=6(mail), egid=6(mail): Operation not permitted
Your userdb says mails should be accessed with gid=12, but you're calling deliver from Postfix with gid=6. Change either one of them to the other (userdb or pipe in master.cf).
My pipe for master.cf is as follows: (My mail group has a GID of 6) dovecot unix - n n - - pipe flags=DRhu user=vmail:mail argv=/usr/local/libexec/dovecot/deliver -d ${recipient}
My dovecot.conf file has the following 3 lines in it mail_uid = vmail mail_gid = mail mail_privileged_group = mail
and it is still producing the same error as i had originally posted ;(
Joe
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
You sir, are my hero!!!
As it turns out, the queries i was using was hard coded to use group id 12.
If i might be so bold as to make a suggestion. I would update the page (http://wiki.dovecot.org/HowTo/DovecotLDAPostfixAdminMySQL) and change the /etc/dovecot/sql.conf part so that the example queries use the same groups as the rest of the documentation!
Thanks for the help everyone!
Regards,
Joe
On 3/7/2010 4:49 PM, Timo Sirainen wrote:
On 7.3.2010, at 21.18, joe wrote:
Mar 07 19:14:55 deliver(test@fasti.net): Fatal: setgid(12) failed with euid=101(vmail), gid=6(mail), egid=6(mail): Operation not permitted
Your userdb says mails should be accessed with gid=12, but you're calling deliver from Postfix with gid=6. Change either one of them to the other (userdb or pipe in master.cf).
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
participants (4)
-
Bradley Giesbrecht
-
joe
-
Seth Mattinen
-
Timo Sirainen