2016-10-05 22:40:56 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
echo "Username: "
|
|
|
|
read username
|
|
|
|
echo "Domain: "
|
|
|
|
read domain
|
|
|
|
|
|
|
|
echo "$username" >> "/etc/exim4/domains/$domain"
|
|
|
|
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
|
2016-11-25 13:01:53 +00:00
|
|
|
service exim4 reload
|