Reset password of mail user - urgent
Reset password of mail user - urgent
After an update, i can not reset password of any email user on the log file it shows that it is changing the password but actually not ;
log file
Any idea how can this be solved, thanks a lot ..:)
log file
Code: Select all
Apr 21 16:32:41 mail sudo: admin : TTY=unknown ; PWD=/usr/local/vesta/web/edit/mail ; USER=root ; COMMAND=/usr/local/vesta/bin/v-change-mail-account-password admin domain.com test PwZ9NSF4N1
-
- Posts: 4
- Joined: Fri Nov 14, 2014 6:48 am
- Contact:
Re: Reset password of mail user - urgent
Try to clean cache and cookies of your browser.
Re: Reset password of mail user - urgent
it has nothing to do with the cookies, but thanks for the replay.KelvinSmith wrote:Try to clean cache and cookies of your browser.
Re: Reset password of mail user - urgent
In order to solve the issue that I have, I changed some lines in here [*]/usr/local/_vesta/bin/v-change-mail-account-password
Code: Select all
#----------------------------------------------------------#
# Action #
#----------------------------------------------------------#
if [ -x '/usr/bin/doveadm' ]; then
md5=$(/usr/bin/doveadm pw -s md5 -p "$password")
else
md5=$(/usr/sbin/dovecotpw -s md5 -p "$password")
fi
if [[ "$MAIL_SYSTEM" =~ exim ]]; then
# sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/passwd [*][b]I changed this to below line [/b]
sed -i "/^$account@$domain:/d" $HOMEDIR/$user/conf/mail/$domain/passwd
#str="$account:$md5:$user:mail::$HOMEDIR/$user:$quota" [*][b]I changed this to below line [/b]
str="$account@$domain:$md5:$user:mail::$HOMEDIR/$user:$quota"
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
fi