Disable automatic creation of maildirs in courier setups
Currently, maildrop creates maildirs for users automatically when they dont exist. This is normally ok as postfix normally checks if a mailbox exists and forwards only mails to the lda when theere is a mailbox record in the database, but this results in problems with domain aliases as maildrop will create mailboxes for non existing accounts when the email is sent to the domain alias. But this also means that the code to send the welcome email has to be changed so that sending of this email is delayed until the maildir was created by ispconfig.
Autocreate maildir, if not existant
#test -e /var/vmail/$HOST
#if ( $RETURNCODE != 0 )
#{
mkdir /var/vmail/$HOST
#}
#test -e /var/vmail/$HOST/$USER
#if ( $RETURNCODE != 0 )
#{
maildirmake /var/vmail/$HOST/$USER
chmod -R 0700 /var/vmail/$HOST
#}
test -e /var/vmail/$HOST/$USER
if ( $RETURNCODE != 0 )
{
available exitcodes: EX_NOUSER=67, EX_TEMPFAIL=75
EXITCODE = 67 exit }
This will also affect the welcome emails.