| | |
| | | LOGNAME=tolower("$LOGNAME") |
| | | EXTENSION="$1" |
| | | RECIPIENT=tolower("$2") |
| | | USER="$3" |
| | | HOST="$4" |
| | | USER=tolower("$3") |
| | | HOST=tolower("$4") |
| | | SENDER="$5" |
| | | DEFAULT="{dist_postfix_vmail_mailbox_base}/$HOST/$USER/." |
| | | |
| | | # Workaround for broken tolower function in some current fedora releases |
| | | |
| | | if(!$USER) |
| | | { |
| | | USER=$3 |
| | | } |
| | | if(!$HOST) |
| | | { |
| | | HOST=$4 |
| | | } |
| | | |
| | | if ( "$EXTENSION" ne "" ) |
| | | { |
| | |
| | | # Autocreate maildir, if not existant |
| | | # |
| | | |
| | | `test -e {dist_postfix_vmail_mailbox_base}/$HOST` |
| | | if ( $RETURNCODE != 0 ) |
| | | { |
| | | `mkdir {dist_postfix_vmail_mailbox_base}/$HOST` |
| | | } |
| | | #`test -e {dist_postfix_vmail_mailbox_base}/$HOST` |
| | | #if ( $RETURNCODE != 0 ) |
| | | #{ |
| | | # `mkdir {dist_postfix_vmail_mailbox_base}/$HOST` |
| | | #} |
| | | |
| | | `test -e {dist_postfix_vmail_mailbox_base}/$HOST/$USER` |
| | | if ( $RETURNCODE != 0 ) |
| | | { |
| | | `maildirmake {dist_postfix_vmail_mailbox_base}/$HOST/$USER` |
| | | `chmod -R 0700 {dist_postfix_vmail_mailbox_base}/$HOST` |
| | | } |
| | | #`test -e {dist_postfix_vmail_mailbox_base}/$HOST/$USER` |
| | | #if ( $RETURNCODE != 0 ) |
| | | #{ |
| | | # `maildirmake {dist_postfix_vmail_mailbox_base}/$HOST/$USER` |
| | | # `chmod -R 0700 {dist_postfix_vmail_mailbox_base}/$HOST` |
| | | #} |
| | | |
| | | # Check if the user has a autoresponder enabled |
| | | |
| | |
| | | } |
| | | |
| | | # Create a mailsize file |
| | | `test -e {dist_postfix_vmail_mailbox_base}/$HOST/$USER` |
| | | if ( $RETURNCODE == 0 ) |
| | | { |
| | | `echo $SIZE >> {dist_postfix_vmail_mailbox_base}/$HOST/$USER/ispconfig_mailsize` |
| | | } |
| | | |
| | | |
| | | # |