DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd July 2013
Torxed Torxed is offline
Port Guard
 
Join Date: Jul 2013
Location: Sweden
Posts: 10
Thanked 0 Times in 0 Posts
Default Courier IMAP - ccount's mailbox directory is not owned by the correct uid or gid

so i poked around and found out that `DEFDOMAIN="@domain.se"` is messing things up, so i removed that from `/etc/courier/imapd` and i got to the point where `SMTP` work and i get this from the `IMAP`:

Code:
    Jul  2 13:23:10 HOST authdaemond: Authenticated: sysusername=anton, sysuserid=<null>, sysgroupid=20001, homedir=/storage/vmail/anton, address=anton, fullname=Anton, maildir=<null>, quota=<null>, options=<null>
    Jul  2 13:23:10 HOST authdaemond: Authenticated: clearpasswd=MyPasswd, passwd=$3e$04$AC1c10x0A3etWCJFrla.Rl2sevNhq24yXYxrq8IN7mEeGI20.
    Jul  2 13:23:10 HOST imapd-ssl: anton: Account's mailbox directory is not owned by the correct uid or gid
But i'm not sure why because:

Code:
    # ls -l /storage/vmail/
    -rw-r--r--  1 vmail  vmail   22 Mar 13 01:06 .Xdefaults
    -rw-r--r--  1 vmail  vmail  773 Mar 13 01:06 .cshrc
    -rw-r--r--  1 vmail  vmail  398 Mar 13 01:06 .login
    -rw-r--r--  1 vmail  vmail  113 Mar 13 01:06 .mailrc
    -rw-r--r--  1 vmail  vmail  218 Mar 13 01:06 .profile
    drwx------  2 vmail  vmail  512 Jun 30 10:44 .ssh
    drwxr-xr-x  3 anton  anton  512 Jun 30 10:44 anton
my `/etc/courier/imapd` says:

Code:
    MAILDIRPATH=/storage/vmail
But i've also tried:

Code:
    MAILDIRPATH=Maildir
And `/etc/passwd` states:

Code:
    # cat /etc/passwd | grep anton                                                                                                                                                                                 
    anton:*:20001:20001:Anton:/storage/vmail/anton:/sbin/nologin
Where am i going wrong?
Reply With Quote
  #2   (View Single Post)  
Old 2nd July 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,797
Thanked 214 Times in 189 Posts
Default

You might consider reaching out to Giovanni Bechis (giovanni@). He's an OpenBSD developer who happens to be $MAINTAINER of this port.
Reply With Quote
  #3   (View Single Post)  
Old 2nd July 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,188
Thanked 182 Times in 149 Posts
Default

This post from the Gentoo forums seem to have a workaround as well as a solution: http://forums.gentoo.org/viewtopic-t...3-start-0.html

For some info about the Maildir mail box format see: https://en.wikipedia.org/wiki/Maildir
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #4   (View Single Post)  
Old 3rd July 2013
Torxed Torxed is offline
Port Guard
 
Join Date: Jul 2013
Location: Sweden
Posts: 10
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by J65nko View Post
This post from the Gentoo forums seem to have a workaround as well as a solution: http://forums.gentoo.org/viewtopic-t...3-start-0.html

For some info about the Maildir mail box format see: https://en.wikipedia.org/wiki/Maildir
I love you! I must have some compulsive behavior or something but after bashing my head against a wall for 3 days and not solving the problem i just start to hate myself, but this did the trick!

Now i can play around why that doesn't work while i can still manage my emails! So thank you!

Note:
Since my server is restricted to only authentication via SSL/TLS i had to include IMAP_MAILBOX_SANITY_CHECK=0 in the /etc/courier/imapd-ssl config as well because it didn't reflect over from /etc/courier/imapd for some reason.. But now it works!
Reply With Quote
  #5   (View Single Post)  
Old 3rd July 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,188
Thanked 182 Times in 149 Posts
Default

For SASL it seems to be easier to use Postfix together with dovecot.

See http://www.postfix.org/SASL_README.html and http://wiki.dovecot.org/HowTo/PostfixAndDovecotSASL

If the current setup is working I would not mess around with it anymore. You could try the Postfix - Dovecot combination on a second box and see whether that is easier to configure.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #6   (View Single Post)  
Old 3rd July 2013
Torxed Torxed is offline
Port Guard
 
Join Date: Jul 2013
Location: Sweden
Posts: 10
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by J65nko View Post
For SASL it seems to be easier to use Postfix together with dovecot.

See http://www.postfix.org/SASL_README.html and http://wiki.dovecot.org/HowTo/PostfixAndDovecotSASL

If the current setup is working I would not mess around with it anymore. You could try the Postfix - Dovecot combination on a second box and see whether that is easier to configure.
I've given it a thought half-way through all the problems, but i've implemented dovecot in a few other production systems (altho they used LDAP) and it was a messy story, so i thought i'd give something new a shot.. so i've ended up with courier (for better and for worse).

I'll give this a spin for a while and see what happens, i'll probably end up doing my own software all together since tbh, SMTP and IMAP are old stuff and i hardly need 50% of what IMAP offers me, so i'll probably create something completely bare-bone/minimalistic :)
Reply With Quote
Reply

Tags
courier, imap, openbsd 5.3

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting FreeBSD to Active Directory for Dovecot IMAP authentication sparky FreeBSD General 0 25th May 2012 12:04 PM
Maildir and courier imap confusion pca General software and network 0 4th February 2010 01:02 PM
Courier IMAP/POP3 can't auth to mysql db revzalot OpenBSD Packages and Ports 5 6th September 2009 05:44 AM
Courier IMAP Different MD5 version jrs665 OpenBSD Packages and Ports 3 30th October 2008 12:34 PM
FAM keeps crashing with courier-imap krreagan FreeBSD General 0 14th May 2008 11:15 PM


All times are GMT. The time now is 11:53 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick