/usr/local/vesta/bin/v-change-mail-account-password :46
#----------------------------------------------------------# # Action # #----------------------------------------------------------# # Generating hashed password salt=$(generate_password "$PW_MATRIX" "8") md5="{MD5}$($BIN/v-generate-password-hash md5 $salt <<<$password)" #alttaki satır sadece şifre değiştirildiğine kota bilgisi bozulduğu için eklendi quota=$(get_object_value "mail/$domain" 'ACCOUNT' "$account" '$QUOTA') if [ "$quota" = 'unlimited' ]; then quota=0 fi if [[ "$MAIL_SYSTEM" =~ exim ]]; then sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/passwd #str="$account:$md5:$user:mail::$HOMEDIR/$user:$quota" str="$account:$md5:$user:mail::$HOMEDIR/$user::userdb_quota_rule=*:storage=${quota}M" echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd fi
/usr/local/vesta/bin/v-change-mail-account-quota :48
#----------------------------------------------------------# # Action # #----------------------------------------------------------# md5=$(get_object_value "mail/$domain" 'ACCOUNT' "$account" '$MD5') if [[ "$MAIL_SYSTEM" =~ exim ]]; then if [ "$quota" = 'unlimited' ]; then quota=0 fi sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/passwd #str="$account:$md5:$user:mail::$HOMEDIR/$user:$quota" str="$account:$md5:$user:mail::$HOMEDIR/$user::userdb_quota_rule=*:storage=${quota}M" echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd fi
/usr/local/vesta/bin/v-add-mail-account :49
#----------------------------------------------------------# # Action # #----------------------------------------------------------# # Generating hashed password salt=$(generate_password "$PW_MATRIX" "8") md5="{MD5}$($BIN/v-generate-password-hash md5 $salt <<<$password)" # Adding account info into password file if [[ "$MAIL_SYSTEM" =~ exim ]]; then if [ "$quota" = 'unlimited' ]; then quota='0' fi #str="$account:$md5:$user:mail::$HOMEDIR/$user:$quota" str="$account:$md5:$user:mail::$HOMEDIR/$user::userdb_quota_rule=*:storage=${quota}M" echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd fi