mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
fixes for new dovecot
This commit is contained in:
parent
1f9080df15
commit
445b48deae
3 changed files with 10 additions and 4 deletions
|
@ -47,7 +47,13 @@ is_mail_new "$account"
|
|||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
md5=$(/usr/sbin/dovecotpw -s md5 -p "$password")
|
||||
|
||||
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
|
||||
|
||||
str="$account:$md5:$user:mail::$HOMEDIR/$user:$quota"
|
||||
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue