diff --git a/.gitignore b/.gitignore index 54ad16e..2cf9d78 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ .idea/ ## File-based project format: *.iws +.*iml ## Plugin-specific files: diff --git a/commands/exim_passwd.sh b/commands/exim_passwd.sh index 050fc0b..c486472 100644 --- a/commands/exim_passwd.sh +++ b/commands/exim_passwd.sh @@ -5,6 +5,5 @@ read username echo "Domain: " read domain -echo "Password: " userdbpw -md5 | userdb "$username@$domain" set systempw makeuserdb diff --git a/commands/exim_useradd.sh b/commands/exim_useradd.sh index 377796b..62089dd 100644 --- a/commands/exim_useradd.sh +++ b/commands/exim_useradd.sh @@ -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 diff --git a/commands/exim_userdel.sh b/commands/exim_userdel.sh index 2eb7160..67ed637 100644 --- a/commands/exim_userdel.sh +++ b/commands/exim_userdel.sh @@ -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