1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

manage hostmaster@ and postmaster@ automatically, create administrator@ during setup instead

closes #94
This commit is contained in:
Joshua Tauberer
2014-07-09 19:29:46 +00:00
parent 22a010ecb9
commit 41b3df6d78
3 changed files with 85 additions and 19 deletions

View File

@@ -222,8 +222,10 @@ if [ -z "`tools/mail.py user`" ]; then
echo "Okay. I'm about to set up $EMAIL_ADDR for you."
fi
tools/mail.py user add $EMAIL_ADDR $EMAIL_PW # will ask for password if none given
tools/mail.py alias add hostmaster@$PRIMARY_HOSTNAME $EMAIL_ADDR
tools/mail.py alias add postmaster@$PRIMARY_HOSTNAME $EMAIL_ADDR
# Create the user's mail account. This will ask for a password if none was given above.
tools/mail.py user add $EMAIL_ADDR $EMAIL_PW
# Create an alias to which we'll direct all automatically-created administrative aliases.
tools/mail.py alias add administrator@$PRIMARY_HOSTNAME $EMAIL_ADDR
fi