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