PostfixAdmin Cannot Create Maildir

Discussion in 'HOWTO-Related Questions' started by asyadiqin, Apr 6, 2008.

  1. ksiadz

    ksiadz New Member


    I have same problem.
    any sugestion ?
     
  2. pcguym

    pcguym New Member

    it works for me. I have both maildirdel.sh and maildirmake.sh working with postfixadmin-2.2.1.1.

    #!/bin/bash
    set -e
    mail_home="/var/mail"
    if [ -d $mail_home/$1/$2 ] ; then
    cd "$mail_home/$1"
    rm -rf "$2"
    #echo "$mail_home/$1/$2 REMOVED"
    fi


    #!/bin/bash
    set -e
    mail_home="/var/mail"
    if [ ! -d $mail_home/$1 ] ; then
    mkdir $mail_home/$1
    chown -R vmail:vmail $mail_home/$1
    chmod -R 700 $mail_home/$1
    #echo "$mail_home/$1 CREATED"
    fi
    if [ -d $mail_home/$1 ] ; then
    cd "$mail_home"
    /usr/local/bin/maildirmake $2
    #echo "$mail_home/$1/$2 CREATED"
    /usr/local/bin/maildirmake -q "$3S" $2
    #echo "$3S $2 QUOTA CREATED"
    chown -R vmail:vmail $mail_home/$1/$2
    chmod -R 700 $mail_home/$1/$2
    fi
     
    Last edited: Oct 15, 2009

Share This Page