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 12th September 2006, 22:30
sPENKMAN sPENKMAN is offline
Junior Member
 
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default imaplogin: chdir Maildir after "Virtual Users And Domains With Postfix" tutorial

With much attention i walked trough the tutorial Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV) which is really well composed but i managed to screw something up.

After the completion of the tutorial i sended myself an e-mail with "echo welcome | mail user@domain.tld" so the Maildir would be created. The folder /home/vmail/domain.tld/user existed so that went perfectly.

The only problem i cannot solve is the error "imaplogin: chdir Maildir: No such file or directory", there is no difference in an IMAP or POP3 connection. The directory does exist and is owned by vmail:

Code:
hostname:/home/vmail# ls -la
drwx------  3 vmail vmail 4096 2006-09-11 22:44 domain.tld

hostname:/home/vmail# ls -la domain.tld/
drwx------  5 vmail vmail 4096 2006-09-11 22:44 user

hostname:/home/vmail# ls -la domain.tld/user/
drwx------  2 vmail vmail 4096 2006-09-11 22:44 cur
-rwx------  1 vmail vmail   29 2006-09-12 21:36 maildirsize
drwx------  2 vmail vmail 4096 2006-09-12 21:36 new
drwx------  2 vmail vmail 4096 2006-09-12 21:36 tmp

hostname:/home/vmail# ls -la domain.tld/user/new/
-rwx------  1 vmail vmail  989 2006-09-11 22:44 1158007497.V801I80c1e3.hostname.workgroup

I have rechecked the tutorial on any /home/vmail entries and compared them with my own config files, but everything checks out:

/etc/postfix/main.cf
Code:
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
/etc/courier/authmysqlrc
Code:
MYSQL_LOGIN_FIELD       email

##NAME: MYSQL_HOME_FIELD:0
#

MYSQL_HOME_FIELD        "/home/vmail"

Sending an e-mail
Code:
postfix/pickup[14053]: 89FC59402A1: uid=0 from=<root>
postfix/cleanup[14065]: 89FC59402A1: message-id=<20060912202400.89FC59402A1@FQDN>
postfix/qmgr[14054]: 89FC59402A1: from=<root@FQDN>, size=273, nrcpt=1 (queue active)
postfix/smtpd[14069]: connect from localhost.localdomain[127.0.0.1]
postfix/smtpd[14069]: AB32A94029E: client=localhost.localdomain[127.0.0.1]
postfix/cleanup[14065]: AB32A94029E: message-id=<20060912202400.89FC59402A1@FQDN>
postfix/qmgr[14054]: AB32A94029E: from=<root@FQDN>, size=703, nrcpt=1 (queue active)
amavis[9649]: (09649-04) Passed, <root@FQDN> -> <user@domain.tld>, Message-ID: <20060912202400.89FC59402A1@FQDN>, Hits: -
postfix/smtp[14068]: 89FC59402A1: to=<user@domain.tld>, relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 2.6.0 Ok, id=09649-04, from MTA: 250 Ok: queued as AB32A94029E)
postfix/smtpd[14069]: disconnect from localhost.localdomain[127.0.0.1]
postfix/qmgr[14054]: 89FC59402A1: removed
postfix/virtual[14070]: AB32A94029E: to=<user@domain.tld>, relay=virtual, delay=0, status=sent (delivered to maildir)
postfix/qmgr[14054]: AB32A94029E: removed

Trying to read my mail with IMAP
Code:
imaplogin: Connection, ip=[::ffff:<ipaddress>]
imaplogin: chdir Maildir: No such file or directory

I honestly don't have a clue where to look, do you?



@falko:
On page 2 the typo is still present:
Code:
Now we create a user and group called vmail with the home directory /home/vamil. This is where all mail boxes will be stored.
Reply With Quote
Sponsored Links
  #2  
Old 13th September 2006, 09:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,486
Thanks: 813
Thanked 5,256 Times in 4,121 Posts
Default

Plese post the output of:

ls -la /home/vmail/domain.tld/user
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 13th September 2006, 10:59
sPENKMAN sPENKMAN is offline
Junior Member
 
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Plese post the output of:

ls -la /home/vmail/domain.tld/user
Please see the most upper 'code box' for all the rights of /home/vmail
Reply With Quote
  #4  
Old 13th September 2006, 20:22
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,486
Thanks: 813
Thanked 5,256 Times in 4,121 Posts
Default

Please check in /etc/courier/authmysqlrc that the the following line is correct:

Quote:
MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 14th September 2006, 18:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Quote:
Originally Posted by sPENKMAN
@falko:
On page 2 the typo is still present:
Code:
Now we create a user and group called vmail with the home directory /home/vamil. This is where all mail boxes will be stored.
Fixed.
__________________
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
Reply

Bookmarks

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
store and forward with "Virtual Users And Domains With Postfix ..." mbunal HOWTO-Related Questions 2 11th September 2006 22:53
Virtual Users And Domains With Postfix, Courier And MySQL gbaker386 HOWTO-Related Questions 6 9th September 2006 01:34
Problem with Virtual Users And Domains With Postfix, Courier And MySQL Howto fenix Server Operation 4 11th March 2006 02:53
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 01:41
Add DNS to a "Virtual Users And Domains" installation, and finish with ISPConfig Nuxeretes Installation/Configuration 4 2nd March 2006 14:02


All times are GMT +2. The time now is 04:23.


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