auto maildir cration

Discussion in 'Server Operation' started by jag7720, Sep 15, 2008.

  1. jag7720

    jag7720 New Member

    Last edited: Sep 15, 2008
  2. falko

    falko Super Moderator Howtoforge Staff

    The directories are created automatically when the first email arrives.
    What's the output of
    Code:
    ls -la /home/vmail
    ?
    Did you disable SELinux?
     
  3. jag7720

    jag7720 New Member

    I got it to work by doing a chmod 777 /home/vmail

    Not sure if that is the best solution.... is it? Is there a better way?

    SELinux is not installed

    [root@www init.d]# ls -la /home/vmail
    total 52
    drwxrwxrwx 5 vmail vmail 4096 Sep 15 13:51 .
    drwxr-xr-x 25 root root 4096 Sep 4 06:38 ..
    -rw------- 1 vmail vmail 1086 Jul 24 10:23 .bash_history
    -rw-r--r-- 1 vmail vmail 33 Jul 24 10:10 .bash_logout
    -rw-r--r-- 1 vmail vmail 176 Jul 24 10:10 .bash_profile
    -rw-r--r-- 1 vmail vmail 124 Jul 24 10:10 .bashrc
    -rw-r--r-- 1 vmail vmail 515 Jul 24 10:10 .emacs
    drwx------ 3 5000 5000 4096 Sep 15 13:51 hammersoup.com
    drwxr-xr-x 3 vmail vmail 4096 Jul 24 10:10 .kde
    drwxr-xr-x 4 vmail vmail 4096 Jul 24 10:10 .mozilla
    -rw-rw-r-- 1 vmail vmail 25 Jul 24 10:13 .rpmmacros
    -rw-r--r-- 1 vmail vmail 658 Jul 24 10:10 .zshrc


    [root@www init.d]# ls -la /home/
    drwxrwxrwx 5 vmail vmail 4096 Sep 15 13:51 vmail
     
  4. falko

    falko Super Moderator Howtoforge Staff

    The hammersoup.com directory is owned by a user and group that don't exist anymore (otherwise it would display the names insted of the IDs). Did you delete them?
     
  5. jag7720

    jag7720 New Member

    i did not delete them. I ran this

    postconf -e 'virtual_uid_maps = static:1001'
    postconf -e 'virtual_gid_maps = static:1001'

    those are the UID and GID of vmail. I think that will fix it.
     
    Last edited: Sep 19, 2008

Share This Page