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/
|
.idea/
|
||||||
## File-based project format:
|
## File-based project format:
|
||||||
*.iws
|
*.iws
|
||||||
|
.*iml
|
||||||
|
|
||||||
## Plugin-specific files:
|
## Plugin-specific files:
|
||||||
|
|
||||||
|
@ -5,6 +5,5 @@ read username
|
|||||||
echo "Domain: "
|
echo "Domain: "
|
||||||
read domain
|
read domain
|
||||||
|
|
||||||
echo "Password: "
|
|
||||||
userdbpw -md5 | userdb "$username@$domain" set systempw
|
userdbpw -md5 | userdb "$username@$domain" set systempw
|
||||||
makeuserdb
|
makeuserdb
|
||||||
|
@ -6,7 +6,7 @@ echo "Domain: "
|
|||||||
read domain
|
read domain
|
||||||
|
|
||||||
echo "$username" >> "/etc/exim4/domains/$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"
|
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
|
userdbpw -md5 | userdb "$username@$domain" set systempw
|
||||||
makeuserdb
|
makeuserdb
|
||||||
|
service exim4 reload
|
||||||
|
@ -10,3 +10,4 @@ sed -i "/$username/d" "$DIR/$domain"
|
|||||||
[[ ! -s "$DIR/$domain" ]] && rm -f "$DIR/$domain"
|
[[ ! -s "$DIR/$domain" ]] && rm -f "$DIR/$domain"
|
||||||
userdb "$username@$domain" del
|
userdb "$username@$domain" del
|
||||||
makeuserdb
|
makeuserdb
|
||||||
|
service exim4 reload
|
||||||
|
Loading…
Reference in New Issue
Block a user