Fix reload + Fix double passowrd + fix iml ignore

This commit is contained in:
Michel Roux 2016-11-25 14:01:53 +01:00
parent a4cb00fd97
commit 3a44608bee
4 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@
.idea/
## File-based project format:
*.iws
.*iml
## Plugin-specific files:

View File

@ -5,6 +5,5 @@ read username
echo "Domain: "
read domain
echo "Password: "
userdbpw -md5 | userdb "$username@$domain" set systempw
makeuserdb

View File

@ -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

View File

@ -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