Centos maildir delivery failed: create maildir file /var/www/web3/Maildir/tmp/

Discussion in 'Installation/Configuration' started by sojic, Dec 3, 2008.

  1. sojic

    sojic New Member

    I just install ispconfig on Centos 5.2 (not for first time), following http://www.howtoforge.com/perfect-server-centos-5.2

    I can not log in with squirrel mail, with pop3 client, I can not receive mail. I can send (smtp is ok).

    When I try to send mail from gmail to [email protected] the mail is returning with message

     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    ls -la /var/www/web3
     
  3. sojic

    sojic New Member

    Code:
    [root@k ~]# ls -la /var/www/web3
    total 100
    drwxr-xr-x  8 k.net.mk_info web3 4096 Dec  4 04:00 .
    drwxr-xr-x 12 root          root 4096 Dec  3 22:06 ..
    drwxrwxr-x  2 k.net.mk_info web3 4096 Dec  3 22:06 cgi-bin
    -rw-------  1 k.net.mk_info web3   24 Dec  3 22:07 .forward
    -rw-rw-r--  1 root          web3   49 Dec  4 04:00 .htpasswd
    drwxr-xr-x  3 k.net.mk_info web3 4096 Dec  4 00:30 log
    lrwxrwxrwx  1 root          root   40 Dec  3 22:07 Maildir -> /var/www/web3/user/k.net.mk_info/Maildir
    drwxrwxrwx  2 apache        web3 4096 Dec  4 09:02 phptmp
    -rw-r--r--  1 root          root  478 Dec  3 22:07 .procmailrc
    lrwxrwxrwx  1 root          root   47 Dec  3 22:07 .spamassassin -> /var/www/web3/user/k.net.mk_info/.spamassassin/
    drwxr-xr-x  2 k.net.mk_info web3 4096 Dec  3 22:06 ssl
    drwxr-xr-x  3 k.net.mk_info web3 4096 Dec  3 22:07 user
    lrwxrwxrwx  1 root          root   48 Dec  3 22:07 .vacation.cache -> /var/www/web3/user/k.net.mk_info/.vacation.cache
    drwxrwxr-x  6 k.net.mk_info web3 4096 Dec  4 04:00 web
    [root@k ~]#
    
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /var/www/web3/user/k.net.mk_info/
    ?
     
  5. sojic

    sojic New Member

    Code:
    [root@k ~]# ls -la /var/www/web3/user/k.net.mk_info/
    total 180
    drwxr-xr-x 5 k.net.mk_info web3  4096 Dec  3 22:07 .
    drwxr-xr-x 3 k.net.mk_info web3  4096 Dec  3 22:07 ..
    -rw-r--r-- 1 root          root   103 Dec  3 22:07 .antivirus.rc
    -rw-r--r-- 1 root          root   934 Dec  3 22:07 .autoresponder.rc
    -rw-r--r-- 1 root          root 69497 Dec  3 22:07 .html-trap.rc
    -rw-r--r-- 1 root          root  3889 Dec  3 22:07 .local-rules.rc
    drwx-w--w- 3 k.net.mk_info web3  4096 Dec  3 22:24 Maildir
    -rw-r--r-- 1 root          root   204 Dec  3 22:07 .mailsize.rc
    -rw-r--r-- 1 root          root   656 Dec  3 22:07 .quota.rc
    drwx------ 2 k.net.mk_info web3  4096 Dec  3 22:07 .spamassassin
    -rw-r--r-- 1 root          root  1149 Dec  3 22:07 .spamassassin.rc
    -rw-r--r-- 1 root          root  2039 Dec  3 22:07 .user_prefs
    -rw-r--r-- 1 root          root    32 Dec  3 22:07 .vacation.msg
    drwxrwxr-x 2 k.net.mk_info web3  4096 Dec  3 22:07 web
    [root@k ~]#
    
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Please run
    Code:
    chmod 700 /var/www/web3/user/k.net.mk_info/Maildir
     
  7. sojic

    sojic New Member

    Same problem

    Code:
    
    [root@k k.net.mk_info]# pwd
    /var/www/web3/user/k.net.mk_info
    [root@k k.net.mk_info]# ls -la
    total 180
    drwxr-xr-x 5 k.net.mk_info web3  4096 Dec 16 14:16 .
    drwxr-xr-x 3 k.net.mk_info web3  4096 Dec  3 22:07 ..
    -rw-r--r-- 1 root          root   103 Dec 16 14:16 .antivirus.rc
    -rw-r--r-- 1 root          root   934 Dec 16 14:16 .autoresponder.rc
    -rw-r--r-- 1 root          root 69497 Dec 16 14:16 .html-trap.rc
    -rw-r--r-- 1 root          root  3889 Dec 16 14:16 .local-rules.rc
    drwx------ 3 k.net.mk_info web3  4096 Dec  3 22:24 Maildir
    -rw-r--r-- 1 root          root   204 Dec 16 14:16 .mailsize.rc
    -rw-r--r-- 1 root          root   656 Dec 16 14:16 .quota.rc
    drwx------ 2 k.net.mk_info web3  4096 Dec  3 22:07 .spamassassin
    -rw-r--r-- 1 root          root  1149 Dec 16 14:16 .spamassassin.rc
    -rw-r--r-- 1 root          root  2039 Dec 16 14:16 .user_prefs
    -rw-r--r-- 1 root          root    32 Dec 16 14:16 .vacation.msg
    drwxrwxr-x 2 k.net.mk_info web3  4096 Dec  3 22:07 web
    [root@k k.net.mk_info]#                                                 
    
    Code:
    <k.net.mk_info[at]k.net.mk> (expanded from <info[at]k.net.mk>): maildir delivery
       failed: create maildir file
       /var/www/web3/Maildir/tmp/1229433395.P3775.k.net.mk: Permission denied
    
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Did you disable SELinux?
     
  9. sojic

    sojic New Member

    Thanks, it work now.
     

Share This Page