View Single Post
Old 18th June 2009, 16:51
AlyK AlyK is offline
Junior Member
Join Date: Jan 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix & Courier w/ mailstore on SMB Share(NAS) fetch failure...

Hey all. I have successfully followed the howto for Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (CentOS 5.3 x86_64) (but for x86) and I have implemented this system successfully a few times. However I seem to have hit a issue. I have a situation where i have to place the mailstore on a windows NAS. I can sucessfully mounted the share with the correct gid/uid and i can get postfix to delivery mail to it properly however i can't seem to get courier to fetch the mail / display mail in any app (squirrel for example).

It shows that there is in new messages eg: [Inbox (2)] but isn't able to display the mail itself.

I have also attempted to maually telnet into the imap server and fetch mail and recieved the following error:
a fetch 2 body[text]
* 2 FETCH ()
* NO Cannot open message 2
a OK FETCH completed.
a fetch 1 body[text]
* 1 FETCH ()
* NO Cannot open message 1
a OK FETCH completed.

After trying manually or via an mail app i see the following errors in the /var/log/maillog:
Jun 18 09:33:48 mail01 imapd: rename(./new/,S= 1034,./cur/,S= 1034:2,)
failed: No such file or directory

// /MailStoreAmun cifs username=net/linuxmail,password=Password1,uid=vmail,gid=vmail,a uto,iocharset=utf8,file_mode=0700,dir_mode=0700 0 0
I have also tried modes 0777 just to test with no change in results.

authmysql(key parts for this issue):

After some Googling i have read that it might be use to the MYSQL_MAILDIR_FIELD string, however i don't feel this is the exact issue as all permissions and and paths are all relative to the file system and i can't see how it would be affected just because this is a smb share.
Any help would be greatly appreciated. Thanks to all in advance.

Last edited by AlyK; 18th June 2009 at 20:55.
Reply With Quote
Sponsored Links