Maildrop - Maildir invalid (no 'cur' directory)

Discussion in 'Installation/Configuration' started by linuxbras, May 2, 2012.

  1. linuxbras

    linuxbras New Member

    Good night, friend.
    I'm using CentOS 6.2 x86_64 with ISPConfig 3.0.4.4 and maildrop, courier-imap, postfix.
    I followed this manual, http://www.howtoforge.com/perfect-se...ispconfig-3-p2
    But after all configured, I have serious problems related to e-mail as below example:
    ================================================== ============
    [Root @ lsc1 ~] # ls-la / var / vmail / linuxbras.com.br / Claudir / Maildir /
    total 44
    drwx ------. 9 vmail vmail 4096 Apr 1 22:51.
    drwx ------. 3 vmail vmail 4096 Oct 1 22:51 ..
    -Rwxr - r -. 1 vmail vmail 47 May 1 22:51 courierimapsubscribed
    drwx ------. 2 vmail vmail 4096 Apr 1 22:51 cur
    drwx ------. 5 vmail vmail 4096 Apr 1 22:51. Drafts
    drwx ------. 5 vmail vmail 4096 Apr 1 22:51. Junk
    drwx ------. 2 vmail vmail 4096 Apr 1 22:51 new
    drwx ------. 5 vmail vmail 4096 Apr 1 22:51. Sent
    -Rwxr - r -. 1 vmail vmail 23 22:51 May 1 subscriptions
    drwx ------. 2 vmail vmail 4096 Apr 1 22:51 tmp
    drwx ------. 5 vmail vmail 4096 Apr 1 22:51. Trash

    ================================================== ============
    [Root @ lsc1 ~] # telnet 0110
    Trying 0.0.0.0 ...
    Connected to 0.
    Escape character is '^]'.
    + OK Hello there.
    user [email protected]
    + OK Password required.
    pass xxxxxxx
    -ERR Maildir invalid (no 'cur' directory)
    Connection closed by foreign host.

    ================================================== ============
    May 1 23:06:54 lsc1 pop3d: Connection, ip = [:: ffff: 127.0.0.1]
    May 1 23:07:04 lsc1 authdaemond: received auth request, service = pop3, authtype = login
    May 1 23:07:04 lsc1 authdaemond: authmysql: Trying this module
    May 1 23:07:04 lsc1 authdaemond: authmysqllib: connected. Versions: header 50161, client 50161, server 50161
    May 1 23:07:04 lsc1 authdaemond: SQL query: SELECT login, password, "", uid, gid, homedir, maildir, quota, "", concat ('disableimap =' disableimap, 'disablepop3 =' disablepop3 ) mail_user FROM WHERE login = '[email protected]'
    May 1 23:07:04 lsc1 authdaemond: password matches successfully
    May 1 23:07:04 lsc1 authdaemond: authmysql: sysusername = <null>, sysuserid = 5000 sysgroupid = 5000, homedir = / var / vmail, address = [email protected], <null> fullname =, maildir = / var / vmail / linuxbras.com.br / Claudir, quota = 209715200, options = disableimap = n, n = disablepop3
    May 1 23:07:04 lsc1 authdaemond: authmysql: clearpasswd = <null>, passwd = $ 1 $ $ HKxND8gg ts/AGmch/QFmPiCmr47Kv /
    May 1 23:07:04 lsc1 authdaemond: Authenticated: sysusername = <null>, sysuserid = 5000 sysgroupid = 5000, homedir = / var / vmail, address = [email protected], <null> fullname =, maildir = / var / vmail / linuxbras.com.br / Claudir, quota = 209715200, options = disableimap = n, n = disablepop3
    May 1 23:07:04 lsc1 authdaemond: Authenticated: clearpasswd = mfc615cl, passwd = $ 1 $ $ HKxND8gg ts/AGmch/QFmPiCmr47Kv /
    May 1 23:07:04 lsc1 pop3d: LOGIN, user = [email protected], ip = [:: ffff: 127.0.0.1], port = [41554]
    May 1 23:07:04 lsc1 pop3d: scancur opendir ("cur"): No such file or directory


    Sorry for the extension of the Message, but I wanted to be as clear as possible so that you can help me.

    I have no idea how to fix this problem.

    NOTE: ISPConfig is OK www.linuxbras.com.br can have access.

    I have a lot of intimacy with the English, a thousand apologies for any errors entered.


    Claudir Leindecker
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The maildir structure you postet is for dovecot and not courier and thats why you get these errors. Login to ISPconfig, go to system > server config > mail and ensure that maildrop is selcted as lda and that courier is selected as imap server.

    Then delete the mailbox and create it again.
     
  3. linuxbras

    linuxbras New Member

    Problem fixed, but another error loaded.

    Friend, your tip worked, I made the changes and is running.

    Now came another error related to the writable maildrop.


    May 2 14:30:33 lsc1 maildrop [4669]: Invalid home directory permissions - world writable.
    Lsc1 May 2 14:30:33 postfix / pipe [4651]: 1A7F7A00644: <[email protected]> to =, relay = maildrop, delay = 468, delays = 467/0.47/0/0.05, dsn = 4.3 .0, status = deferred (temporary failure. Command output: / usr / bin / maildrop: Invalid home directory permissions - world writable.)


    The maildrop this in various ways eg

    -rwxrwxrwx. 1 vmail vmail 200296 Apr 25 20:42 / usr / bin / maildrop
    -rwsr-xr-x. 1 daemon daemon 198944 Apr 24 12:13 / usr / lib / courier / bin / maildrop

    Which one is correct?

    thank you

    Claudir
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if you changed some permissions in /var/vmail manually so that a directory is world writable now. Please run:

    chmod -R 750 /var/vmail

    to fix that.
     
  5. linuxbras

    linuxbras New Member

    user unknown. Command output: Invalid user specified

    Error corrected, is connecting 100%, no errors show as below.

    [Root @ lsc1 init.d] # telnet 0110
    Trying 0.0.0.0 ...
    Connected to 0.
    Escape character is '^]'.
    + OK Hello there.
    user [email protected]
    + OK Password required.
    pass xxxxxxx
    + OK logged in.
    list
    + OK POP3 clients That break here, They violate STD53.
    .
    Now when I send one of menssagen [email protected] hotmail.com for my log says this:



    Lsc1 May 2 15:19:09 postfix / smtpd [8197]: connect from col0-omc1-s14.col0.hotmail.com [65.55.34.24]
    Lsc1 May 2 15:19:09 postfix / smtpd [8197]: A95DEA00624: client = col0-omc1-s14.col0.hotmail.com [65.55.34.24]
    Lsc1 May 2 15:19:10 postfix / cleanup [8211]: A95DEA00624: message-id = <[email protected]>
    Lsc1 May 2 15:19:10 postfix / qmgr [7828]: A95DEA00624: <[email protected]> from =, size = 1493, nrcpt = 1 (queue active)
    May 2 15:19:10 lsc1 clamd [19634]: SelfCheck: Database status OK.
    Lsc1 May 2 15:19:10 postfix / smtpd [8197]: disconnect from col0-omc1-s14.col0.hotmail.com [65.55.34.24]
    Lsc1 May 2 15:19:13 postfix / smtpd [8215]: connect from unknown [127.0.0.1]
    Lsc1 May 2 15:19:13 postfix / smtpd [8215]: D7A83A00635: client = unknown [127.0.0.1]
    Lsc1 May 2 15:19:13 postfix / cleanup [8211]: D7A83A00635: message-id = <[email protected]>
    Lsc1 May 2 15:19:13 postfix / qmgr [7828]: D7A83A00635: <[email protected]> from =, size = 1961, nrcpt = 1 (queue active)
    Lsc1 May 2 15:19:13 postfix / smtpd [8215]: disconnect from unknown [127.0.0.1]
    Lsc1 May 2 15:19:13 amavis [3023]: (03023-09) Passed CLEAN, [65.55.34.24] [65.55.34.8] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: 8ZZyOVOjLRNR, Hits: 0605, size: 1493, queued_as: D7A83A00635, 3798 ms
    Lsc1 May 2 15:19:14 postfix / smtp [8212]: A95DEA00624: <[email protected]> to =, relay = 127.0.0.1 [127.0.0.1]: 10024, delay = 4.5, delays = 0.72 / 0.01/0.01/3.8, dsn = 2.0.0, status = sent (250 2.0.0 Ok, id = 03023-09, from MTA ([127.0.0.1]: 10025): 250 2.0.0 Ok: queued to D7A83A00635)
    Lsc1 May 2 15:19:14 postfix / qmgr [7828]: A95DEA00624: removed
    Lsc1 May 2 15:19:14 postfix / pipe [8217]: D7A83A00635: <[email protected]> to =, relay = maildrop, delay = 0.22, delays = 0.09/0.04/0/0.08, dsn = 5.1 .1, status = bounced (user unknown. Command output: Invalid user specified.)
    Lsc1 May 2 15:19:14 postfix / cleanup [8211]: 17C42A00636: message-id = <@ 20120502181914.17C42A00636 lsc1.linuxbras.com.br>
    Lsc1 May 2 15:19:14 postfix / qmgr [7828]: 17C42A00636: from = <>, size = 3912, nrcpt = 1 (queue active)
    Lsc1 May 2 15:19:14 postfix / bounce [8219]: D7A83A00635: sender non-delivery notification: 17C42A00636
    Lsc1 May 2 15:19:14 postfix / qmgr [7828]: D7A83A00635: removed
    Lsc1 May 2 15:19:15 postfix / smtp [8168]: 17C42A00636: <[email protected]> to =, relay = mx4.hotmail.com [65.54.188.72]: 25, delay = 1.6, delays = 0.06 / 0.01/0.88/0.66, dsn = 2.0.0, status = sent (250 <@ 20120502181914.17C42A00636 lsc1.linuxbras.com.br> Queued mail for delivery)
    Lsc1 May 2 15:19:15 postfix / qmgr [7828]: 17C42A00636: removed
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess you used the domain linuxbras.com.br either has hostname or mydomain in postfix main.cf. This will not work as postfix tries to deliver the email toa linux system user then.Please change all occurrences of linuxbras.com.br in main.cf to something like server1.linuxbras.com.br or mail.linuxbras.com.br like it is used in the tutorial. Then restart postfix.
     

Share This Page