Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

Reset password of mail user - urgent

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
magos
Posts: 17
Joined: Wed Jul 09, 2014 7:49 pm

Reset password of mail user - urgent
  • Quote

Post by magos » Tue Apr 21, 2015 1:35 pm

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

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
Any idea how can this be solved, thanks a lot ..:)
Top

KelvinSmith
Posts: 4
Joined: Fri Nov 14, 2014 6:48 am
Contact:
Contact KelvinSmith
Website

Re: Reset password of mail user - urgent
  • Quote

Post by KelvinSmith » Wed Apr 22, 2015 6:14 am

Try to clean cache and cookies of your browser.
Top

magos
Posts: 17
Joined: Wed Jul 09, 2014 7:49 pm

Re: Reset password of mail user - urgent
  • Quote

Post by magos » Thu Apr 23, 2015 6:28 am

KelvinSmith wrote:Try to clean cache and cookies of your browser.
it has nothing to do with the cookies, but thanks for the replay.
Top

magos
Posts: 17
Joined: Wed Jul 09, 2014 7:49 pm

Re: Reset password of mail user - urgent
  • Quote

Post by magos » Mon Apr 27, 2015 3:19 pm

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


Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password