Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix : courier-imap cant read in /.maildir/cur [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Tranquility
n00b
n00b


Joined: 30 Nov 2003
Posts: 44

PostPosted: Mon Nov 29, 2004 2:02 pm    Post subject: Postfix : courier-imap cant read in /.maildir/cur [SOLVED] Reply with quote

Hi everybody,

Ive got a serious Problem an still cant get it solve even after days of using google.
I installed a mailserver (postfix,courier-imap,mysql,cyrus,sasl).

Everything is working fine, exept of this :

Every mail that is local delivered by postfix hast the status Read+Write only for the Owner of the /home-accout. So Courier-Imap is not able to read the mail.
So when i use in example Thunderbird to check my mail for a local account, Thunderbir wont show the new mails cause imap cant read them.

The only way i can make them readable by now is to manually
Code:
chmod 777 /home/user/.maildir/cur/The_Email_I_Cant_Read


I was looking for some kind of umask in Postfix (main.cf) so that mails get deliverd with ohter rights , but didnt found anything.
Im searching google / docu / forums since days and didnt even found someone with the same Problem.

Please, if annybody got a clue whats gonig wrong here, then tell me

Thx


Last edited by Tranquility on Thu Dec 02, 2004 1:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Buzzz
n00b
n00b


Joined: 17 Apr 2002
Posts: 63
Location: Enschede, The Netherlands

PostPosted: Mon Nov 29, 2004 2:21 pm    Post subject: Reply with quote

I think there is something wrong with your courier-imap setup. Normally courier-imap runs as root and when you login, it spawns a process as the user that just logged in. So it should be possible to read the mail.

The solution should not be changing the access rights to the files, but a change in the courier-imap configuration.
_________________
There are no stupid questions, but there are a lot of inquisitive idiots
Back to top
View user's profile Send private message
Tranquility
n00b
n00b


Joined: 30 Nov 2003
Posts: 44

PostPosted: Mon Nov 29, 2004 2:37 pm    Post subject: Reply with quote

Thast my imapd config. I cant see whats wrong in here. Its mostly the default config.
I'll read config+docu again and see if i can find something which could be the solution of the problem.

Code:

ADDRESS=0
PORT=143
MAXDAEMONS=40
MAXPERIP=10
PIDFILE=/var/run/imapd.pid
TCPDOPTS="-nodnslookup -noidentlookup"
AUTHMODULES="authdaemon"
AUTHMODULES_ORIG="authdaemon"
DEBUG_LOGIN=2
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE"
IMAP_KEYWORDS=1
IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
IMAP_IDLE_TIMEOUT=60
IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
IMAP_DISABLETHREADSORT=0
IMAP_CHECK_ALL_FOLDERS=1
IMAP_OBSOLETE_CLIENT=0
IMAP_USELOCKS=1
IMAP_SHAREDINDEXFILE=/etc/courier-imap/shared/index
IMAP_ENHANCEDIDLE=0
IMAP_TRASHFOLDERNAME=Trash
IMAP_EMPTYTRASH=Trash:7
IMAP_MOVE_EXPUNGE_TO_TRASH=0
SENDMAIL=/usr/sbin/sendmail
HEADERFROM=X-IMAP-Sender
IMAPDSTART=NO
MAILDIRPATH=Maildir
MAILDIR=.maildir
MAILDIRPATH=.maildir
PRERUN=
Back to top
View user's profile Send private message
Tranquility
n00b
n00b


Joined: 30 Nov 2003
Posts: 44

PostPosted: Mon Nov 29, 2004 4:44 pm    Post subject: Reply with quote

Nobody any Idea? Im really dying here. I dont find anything on google / courier-docu / mailinglists...etc :(
Back to top
View user's profile Send private message
Tranquility
n00b
n00b


Joined: 30 Nov 2003
Posts: 44

PostPosted: Tue Nov 30, 2004 6:00 pm    Post subject: Reply with quote

I found the error: I just put the wrong UID in the mysqltable "users" so mail was delivered with the wrong rights for the user. Shame on me
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum