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.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th November 2010, 14: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:192.168.168.203], 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.
Sans1
Reply With Quote
Sponsored Links
  #2  
Old 11th November 2010, 13:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,716 Times in 2,558 Posts
Default

I guess this is a permissions problem. Do the folders have the correct permissions and owners?
__________________
Falko
--
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
  #3  
Old 11th November 2010, 15: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

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

Bookmarks

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


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


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