[patch] Make imap auth work out of the box

This patch just makes the mailbox when the user is made
This commit is contained in:
jmjl 2022-12-07 18:01:59 +00:00
parent 82cb5db493
commit d3cf3bae79

View file

@ -53,6 +53,8 @@ case $1 in
printf "%s\n" "$3" | sudo tee "/home/$1/.ssh/authorized_keys"
#sudo chmod 664 "/home/$1/.ssh/authorized_keys"
#sudo chown $1:$1 "/home/$1/.ssh" -R
sudo touch /var/mail/"$1"
sudo chown "$1":mail /var/mail/"$1"
#printf "\nannouncing new user on mastodon\n"
/opt/tools/bin/tooltoot "welcome new user ~$1!"