Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 14th July 2009, 23:44
AlyK AlyK is offline
Junior Member
Join Date: Jan 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual User CentOS Postfix & Courier w/ mailstore on SMB Share(NAS) fetch failure...

Sorry This is re-post. I would really appreciate some assistance. I didn't get to many replies and this project was put on the back burner - its now back on my plate. I have make all sorts of adjustments to the fstab mount line so no improvement. Anyone's assistance is greatly appreciated

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/1245268538.V17I22ed9bM285388.mail01.company.net,S= 1034,./cur/1245268538.V17I22ed9bM285388.mail01.company.net,S= 1034:2,)
failed: No such file or directory

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

authmysql(key parts for this issue):
Reply With Quote
Sponsored Links
Old 20th July 2009, 17:15
AlyK AlyK is offline
Junior Member
Join Date: Jan 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Solved!!

Hey all...
Although no one replied to the post I thought I would post my finding in case anyone ever ran across this issue. The reason the SMB (Win-based NAS) wasn't working was because Courier fetch in Maildir format contained a colon which is not allowed in win based file names.

However on the same device there was a NFS option we attemped to use this but obviously ran into the same issue. However using Character Translation Maps in the the winblows NFS server we can trasnlate the colon to be converted to something else while on the win filesystem and converted back when read by the NFS client:

To configure:

Configuring Server for NFS to Use a Character Translation File

1. Log on to the Server for NFS computer by using an administrative level account.

2. Open Services for UNIX Administration.

3. Click the Server for NFS pane, and then click the Server Settings tab.

4. Under File name handling, click to select the Translate File names check box.

5. CREATE a pain text file that simply contains a hex translation (one per line) as followings

0x00 0x3a : 0x00 0x2d ; replace client ":" with server dash "-"

Save / exit

6 . Type the full path to the translation file that you created in the Use character translation files box, or click Browse to locate the file.

7. Click Apply.

8. Change Locking time to 15seconds (Locking tab), click apply

9. Restart NFS

Although clearly not my first choice to use anything Win based for this solution, sometimes you have to work with what you have and when no one wants to shell out any money this is what it comes down too.

BTW, you can also do the following prior to building the package with courier to avoid the colon

With Courier, we need to compile from the source, changing the parameter MDIRSEP from ":" to ";", because Windows cannot handle files with this character in their name.

from: http://dovecot.org/list/dovecot/2007-July/024136.html
However I chose not to go this route as this could violate standard maildir format

Hope this helps someone else.



Last edited by AlyK; 20th July 2009 at 17:24.
Reply With Quote


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
Virtual Users And Domains With Postfix, Courier And MySQL - CentOS spyda46 HOWTO-Related Questions 5 21st May 2009 17:38
localhost postfix/master: fatal: bind port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 18:57
The system is currently updating the configuration files. warlock General 8 21st February 2009 19:15
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 02:41

All times are GMT +2. The time now is 11:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.