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 10th November 2010, 15:49
Sansone Sansone is offline
Junior Member
Join Date: Nov 2010
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default Postfix + Courier with mailboxes on external NAS

Hi everybody,
I've succesfully installed on Ubuntu 10.10 both Postfix & Courier using virtual users to manage all my intranet emails through IMAP.
All emails are recorded under my local folder /mnt/mail/....and I have no problem.
But if I really mount my mail shared folder from my QNAP NAS in the same place then Postfix still works but Courier fails.
See some lines from /var/log/mail.log:

Nov 8 13:16:13 main authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/mnt/mail/virtual, address=sansone@sansone.local, fullname=sansone, maildir=/mnt/mail/virtual/sansone$
Nov 8 13:16:13 main imapd: LOGIN, user=sansone@sansone.local, ip=[::ffff:], port=[54623], protocol=IMAP
Nov 8 13:16:13 main imapd: rename(./new/1289056090.V16I90001ba0006M547961.main,./cur/1289056090.V16I90001ba0006M547961.main:2,) failed: No such file or directory

As you can see the imapd fails the rename from folder New to Cur in spite it's correctly authenticated.

Any hint ?

Thanks & regards.
Reply With Quote
Sponsored Links
Old 11th November 2010, 14:20
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

I guess this is a permissions problem. Do the folders have the correct permissions and owners?
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 11th November 2010, 16:24
Sansone Sansone is offline
Junior Member
Join Date: Nov 2010
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default [Solved] Postfix + Courier with mailboxes on external NAS

Thanks falko for your interest but no, it wasn't a permission problem.
I discovered that Maildir standard appends to the filename moved from new to cur folder a string similar to ":2,s"
So the problem is in the colon used in the filename. In spite the mail server runs inside Ubuntu 10.10 and the share folder belongs to a Linux based NAS (QNAP) if you mount the cifs share without "mapchars" option it doesn't work due to the presence of the colon in the filename.
With mapchars option enabled, Linux still see the colon in the filename while it's actually recorder inside the NAS with the colon replaced by a Unicode char.

Now I have to document myself trying to understand if there is the possbility to tell to my mail server to do not use forbidden chars. If I cannot find it I will keep the solution with mapchars enabled

Reply With Quote
The Following User Says Thank You to Sansone For This Useful Post:
falko (12th November 2010)


courier, nas, postfix

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
mail authentication failure - unknown user or password evok Installation/Configuration 9 16th October 2010 07:37
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 15:49
localhost postfix/master: fatal: bind port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36

All times are GMT +2. The time now is 06:46.

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