imaplogin: chdir Maildir after "Virtual Users And Domains With Postfix" tutorial

Discussion in 'HOWTO-Related Questions' started by sPENKMAN, Sep 12, 2006.

  1. sPENKMAN

    sPENKMAN New Member

    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 [email protected]" 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> -> <[email protected]>, Message-ID: <20060912202400.89FC59402A1@FQDN>, Hits: -
    postfix/smtp[14068]: 89FC59402A1: to=<[email protected]>, 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=<[email protected]>, 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? :confused:



    @falko:
    On page 2 the typo is still present:
    Code:
    Now we create a user and group called vmail with the home directory /home/[B]vamil[/B]. This is where all mail boxes will be stored.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Plese post the output of:

    ls -la /home/vmail/domain.tld/user
     
  3. sPENKMAN

    sPENKMAN New Member

    Please see the most upper 'code box' for all the rights of /home/vmail
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

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

     
  5. falko

    falko Super Moderator ISPConfig Developer

    Fixed. :)
     

Share This Page