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

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


    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:

    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:

    virtual_mailbox_maps = proxy:mysql:/etc/postfix/
    virtual_mailbox_base = /home/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    MYSQL_LOGIN_FIELD       email
    MYSQL_HOME_FIELD        "/home/vmail"

    Sending an e-mail
    postfix/pickup[14053]: 89FC59402A1: uid=0 from=<root>
    postfix/cleanup[14065]: 89FC59402A1: message-id=<[email protected]>
    postfix/qmgr[14054]: 89FC59402A1: from=<[email protected]>, size=273, nrcpt=1 (queue active)
    postfix/smtpd[14069]: connect from localhost.localdomain[]
    postfix/smtpd[14069]: AB32A94029E: client=localhost.localdomain[]
    postfix/cleanup[14065]: AB32A94029E: message-id=<[email protected]>
    postfix/qmgr[14054]: AB32A94029E: from=<[email protected]>, size=703, nrcpt=1 (queue active)
    amavis[9649]: (09649-04) Passed, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, Hits: -
    postfix/smtp[14068]: 89FC59402A1: to=<[email protected]>, relay=[], 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[]
    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
    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:

    On page 2 the typo is still present:
    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

    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