Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd May 2012, 16:52
linuxbras linuxbras is offline
Junior Member
 
Join Date: May 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Maildrop - Maildir invalid (no 'cur' directory)

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 claudir@linuxbras.com.br
+ 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 = 'claudir@linuxbras.com.br'
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 = claudir@linuxbras.com.br, <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 = claudir@linuxbras.com.br, <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 = claudir@linuxbras.com.br, 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
Reply With Quote
Sponsored Links
  #2  
Old 2nd May 2012, 17:07
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,380
Thanks: 833
Thanked 5,480 Times in 4,314 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 2nd May 2012, 19:36
linuxbras linuxbras is offline
Junior Member
 
Join Date: May 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Red face 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: <claudir@linuxbras.com.br> 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
Reply With Quote
  #4  
Old 2nd May 2012, 19:42
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,380
Thanks: 833
Thanked 5,480 Times in 4,314 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 2nd May 2012, 20:21
linuxbras linuxbras is offline
Junior Member
 
Join Date: May 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy 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 claudir@linuxbras.com.br
+ 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 claudir@linuxbras.com.br 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 = <COL114-W5DAD560A922CEEFE01F44AB2E0@phx.gbl>
Lsc1 May 2 15:19:10 postfix / qmgr [7828]: A95DEA00624: <linuxbras@hotmail.com> 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 = <COL114-W5DAD560A922CEEFE01F44AB2E0@phx.gbl>
Lsc1 May 2 15:19:13 postfix / qmgr [7828]: D7A83A00635: <linuxbras@hotmail.com> 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] <linuxbras@hotmail.com> -> <claudir@linuxbras.com.br>, Message-ID: <COL114-W5DAD560A922CEEFE01F44AB2E0@phx.gbl>, mail_id: 8ZZyOVOjLRNR, Hits: 0605, size: 1493, queued_as: D7A83A00635, 3798 ms
Lsc1 May 2 15:19:14 postfix / smtp [8212]: A95DEA00624: <claudir@linuxbras.com.br> 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: <claudir@linuxbras.com.br> 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: <linuxbras@hotmail.com> 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
Reply With Quote
  #6  
Old 3rd May 2012, 08:26
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,380
Thanks: 833
Thanked 5,480 Times in 4,314 Posts
 
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Webmin upgrade lishaw1968 Installation/Configuration 15 26th August 2010 15:23
After updating Fedora 13 - Unable to login in kernel 3 and 5 Besrilo Kernel Questions 6 12th August 2010 19:01
Email problem 'Cannot set my user or group id.' (using ISPConfig 3 + OpenSuSE 11.2) urosm Installation/Configuration 5 19th June 2010 22:41
can't help ispconfig to install please help steve51184 Installation/Configuration 17 20th February 2009 10:37
ISPConfig install issues... flyingaggie Installation/Configuration 2 18th July 2008 10:46


All times are GMT +2. The time now is 15:38.


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