POP3 unable to login and geting mail from mailbox

Discussion in 'Installation/Configuration' started by Keith, Nov 27, 2010.

  1. Keith

    Keith New Member

    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
     
  2. Keith

    Keith New Member

    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.
     
  3. falko

    falko Super Moderator Howtoforge Staff

    Which distribution do you use? Which tutorial (URL) did you use to set up the server?
     
  4. Keith

    Keith New Member

  5. till

    till Super Moderator Staff Member ISPConfig Developer

    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/
     
  6. rikw22

    rikw22 New Member

    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=<[email protected]>, 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#011lip=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#[email protected]
    Dec 29 05:12:35 ns1 dovecot: auth-worker(default): sql([email protected],192.168.0.5): query: SELECT password FROM mail_user WHERE email = '[email protected]' 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#[email protected]#[email protected]#011home=/var/vmail/abc.com.br/rick#011mail=maildir:/var/vmail/abc.com.br/rick/Maildir#011uid=5000#011gid=5000#011quota=maildir:storage=10240#011sieve=/var/vmail/abc.com.br/rick/.sieve
    Dec 29 05:12:35 ns1 dovecot: auth-worker(default): sql([email protected],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 = '[email protected]' 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=<[email protected]>, 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: Dec 29, 2010
  7. falko

    falko Super Moderator Howtoforge Staff

    Can you try this?
    Code:
    chown -R vmail:vmail /var/vmail/abc.com.br
    Which distribution do you use?
     
  8. rikw22

    rikw22 New Member

    # cat /proc/version
    Linux version 2.6.26-2-amd64 (Debian 2.6.26-26lenny1) ([email protected]) (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: Dec 31, 2010
  9. falko

    falko Super Moderator Howtoforge Staff

    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.
     
  10. rikw22

    rikw22 New Member

    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
     

Share This Page