Fix reload + Fix double passowrd + fix iml ignore
This commit is contained in:
parent
a4cb00fd97
commit
3a44608bee
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@
|
||||
.idea/
|
||||
## File-based project format:
|
||||
*.iws
|
||||
.*iml
|
||||
|
||||
## Plugin-specific files:
|
||||
|
||||
|
@ -5,6 +5,5 @@ read username
|
||||
echo "Domain: "
|
||||
read domain
|
||||
|
||||
echo "Password: "
|
||||
userdbpw -md5 | userdb "$username@$domain" set systempw
|
||||
makeuserdb
|
||||
|
@ -6,7 +6,7 @@ echo "Domain: "
|
||||
read domain
|
||||
|
||||
echo "$username" >> "/etc/exim4/domains/$domain"
|
||||
echo "Password: "
|
||||
userdb "$username@$domain" set uid=$(id -u mail) gid=$(id -g mail) home="/var/vmail/$domain/$username" mail="/var/vmail/$domain/$username"
|
||||
userdbpw -md5 | userdb "$username@$domain" set systempw
|
||||
makeuserdb
|
||||
service exim4 reload
|
||||
|
@ -10,3 +10,4 @@ sed -i "/$username/d" "$DIR/$domain"
|
||||
[[ ! -s "$DIR/$domain" ]] && rm -f "$DIR/$domain"
|
||||
userdb "$username@$domain" del
|
||||
makeuserdb
|
||||
service exim4 reload
|
||||
|
Loading…
Reference in New Issue
Block a user