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 27th November 2010, 08:24
Keith Keith is offline
Junior Member
 
Join Date: Nov 2010
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default POP3 unable to login and geting mail from mailbox

all,
I am finished installation of ISPConfig and going for testing function. We are using Windows Live Mail for getting POP3 mail but it cannot. I checking Mail.log on ISPCONFIG server, it show below :

dovecot: chdir (/var/vmail/abc.com/keith) failed with uid 5000: Permission denied
docecot: child 31226 (pop3P returned error 89

Any adivse to me for solve the issue.

Keith
Reply With Quote
Sponsored Links
  #2  
Old 27th November 2010, 09:48
Keith Keith is offline
Junior Member
 
Join Date: Nov 2010
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default

It fixed on /var/vmail/abc.com permission. Checked that ISPCONFIG used 700 for create the directory. I need to change to 755 to fix the issue. I want to know that where can change the 755 by default the folder.
Reply With Quote
  #3  
Old 28th November 2010, 19:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,736 Times in 2,571 Posts
Default

Which distribution do you use? Which tutorial (URL) did you use to set up the server?
__________________
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
  #4  
Old 29th November 2010, 16:48
Keith Keith is offline
Junior Member
 
Join Date: Nov 2010
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default

I bought the manual and used http://howtoforge.com/installing-a-w...th-ispconfig-3 for setup without mirror mysql.
Reply With Quote
  #5  
Old 29th November 2010, 17:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,509
Thanks: 815
Thanked 5,269 Times in 4,130 Posts
Default

700 is the correct directory permission. Changing to 755 is not nescessary and a security risk.

1) Which ISPConfig version do you use?
2) Post the out put of:

ls -la /var/vmail/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 29th December 2010, 08:31
rikw22 rikw22 is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the same problem.

ISPConfig Version: 3.0.3.1


ns1:/# ls -la /var/vmail/
total 20K
drwxr-xr-x 4 root root 4,0K Dez 29 04:39 .
drwxr-xr-x 15 root root 4,0K Dez 29 03:36 ..
drwx------ 3 root root 4,0K Dez 29 05:11 abc.com.br
-rwxr-xr-x 1 vmail vmail 1,4K Dez 29 03:36 .mailfilter
drwxr-xr-x 2 root root 4,0K Dez 29 03:36 mailfilters

ns1:/var/vmail/abc.com.br# ls -lah
total 12K
drwx------ 3 root root 4,0K Dez 29 05:11 .
drwxr-xr-x 4 root root 4,0K Dez 29 04:39 ..
drwx------ 3 root root 4,0K Dez 29 05:09 rick

ns1:/var/vmail/abc.com.br/rick# ls
total 12K
drwx------ 3 root root 4,0K Dez 29 05:09 .
drwx------ 3 root root 4,0K Dez 29 05:11 ..
drwx------ 9 root root 4,0K Dez 29 05:09 Maildir


ns1:/var/vmail/abc.com.br/rick/Maildir# ls
total 44K
drwx------ 9 root root 4,0K Dez 29 05:09 .
drwx------ 3 root root 4,0K Dez 29 05:09 ..
-rwxr--r-- 1 root root 47 Dez 29 05:09 courierimapsubscribed
drwx------ 2 root root 4,0K Dez 29 05:09 cur
drwx------ 5 root root 4,0K Dez 29 05:09 .Drafts
drwx------ 5 root root 4,0K Dez 29 05:09 .Junk
drwx------ 2 root root 4,0K Dez 29 05:09 new
drwx------ 5 root root 4,0K Dez 29 05:09 .Sent
-rwxr--r-- 1 root root 23 Dez 29 05:09 subscriptions
drwx------ 2 root root 4,0K Dez 29 05:09 tmp
drwx------ 5 root root 4,0K Dez 29 05:09 .Trash


Debug:
Dec 29 05:12:35 ns1 dovecot: imap-login: Login: user=<rick@abc.com.br>, method=PLAIN, rip=192.168.0.5, lip=192.168.0.1, TLS
Dec 29 05:12:35 ns1 dovecot: auth(default): client in: AUTH#0111#011PLAIN#011service=IMAP#011secured#011l ip=192.168.0.1#011rip=192.168.0.5
Dec 29 05:12:35 ns1 dovecot: auth(default): client out: CONT#0111#011
Dec 29 05:12:35 ns1 dovecot: auth(default): client in: CONT#0111#<hidden>
Dec 29 05:12:35 ns1 dovecot: auth(default): client out: OK#0111#011user=rick@abc.com.br
Dec 29 05:12:35 ns1 dovecot: auth-worker(default): sql(rick@abc.com.br,192.168.0.5): query: SELECT password FROM mail_user WHERE email = 'rick@abc.com.br' AND disableimap = 'n'
Dec 29 05:12:35 ns1 dovecot: chdir(/var/vmail/abc.com.br/rick) failed with uid 5000: Permission denied
Dec 29 05:12:35 ns1 dovecot: auth(default): master in: REQUEST#01122#0114636#0111
Dec 29 05:12:35 ns1 dovecot: auth(default): master out: USER#01122#011rick@abc.com.br#011user=rick@abc.com .br#011home=/var/vmail/abc.com.br/rick#011mail=maildir:/var/vmail/abc.com.br/rick/Maildir#011uid=5000#011gid=5000#011quota=maildir:s torage=10240#011sieve=/var/vmail/abc.com.br/rick/.sieve
Dec 29 05:12:35 ns1 dovecot: auth-worker(default): sql(rick@abc.com.br,192.168.0.5): SELECT email as user, maildir as home, CONCAT('maildir:', maildir, '/Maildir') as mail, uid, gid, CONCAT('maildir:storage=', floor(quota/1024)) AS quota, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE email = 'rick@abc.com.br' AND disableimap = 'n'
Dec 29 05:12:35 ns1 dovecot: child 4704 (imap) returned error 89
Dec 29 05:12:35 ns1 dovecot: imap-login: Login: user=<rick@abc.com.br>, method=PLAIN, rip=192.168.0.5, lip=192.168.0.1, TLS

Fictitious Domain: abc.com.br
Fictitious Server IP : 192.168.0.1
Fictitious Client IP: 192.168.0.5


I've tried everything and I can not solve this problem.

regards,
Rick

Last edited by rikw22; 29th December 2010 at 08:36.
Reply With Quote
  #7  
Old 30th December 2010, 17:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,736 Times in 2,571 Posts
Default

Can you try this?
Code:
chown -R vmail:vmail /var/vmail/abc.com.br
Which distribution do you use?
__________________
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
  #8  
Old 31st December 2010, 03:58
rikw22 rikw22 is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

# cat /proc/version
Linux version 2.6.26-2-amd64 (Debian 2.6.26-26lenny1) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Thu Nov 25 04:30:55 UTC 2010

This:
Code:
chown -R vmail:vmail /var/vmail/abc.com.br
this solves my problem temporarily

I'm finding strange is because it created the files / folders as root
they should not be the owner www-data user for apache webserver?


Thank you for your attention and help!

Last edited by rikw22; 31st December 2010 at 03:59. Reason: I forgot to thank =P
Reply With Quote
  #9  
Old 31st December 2010, 14:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,736 Times in 2,571 Posts
Default

Quote:
Originally Posted by rikw22 View Post
I'm finding strange is because it created the files / folders as root
they should not be the owner www-data user for apache webserver?
No, it must be the user/group vmail (this is smtp, not http). Please check if ISPConfig uses the correct user/group when you create a new account.
__________________
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
  #10  
Old 1st January 2011, 21:47
rikw22 rikw22 is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Sorry, I think I expressed it badly,
What I meant is that ISPConfig created the files as root,
Folders User Defaults (Maildir/*) when I create the email account
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
Postfix not playing nicely with pop3 or pop3s ru4r34l Server Operation 4 28th October 2006 18:55


All times are GMT +2. The time now is 09:24.


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