X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fsetup_mail.sh;h=81eb50ea9052be1c4c886f24d279c53ff10bfce5;hb=fa769057b7cf85a0a37968890a64c46e95ac9bf2;hp=dd8f80f8e63e3f60d03b3e39a76617cd90f05102;hpb=decb103a10c87150712da651e9c5b99ac35dab26;p=config diff --git a/buster/setup_scripts/setup_mail.sh b/buster/setup_scripts/setup_mail.sh index dd8f80f..81eb50e 100755 --- a/buster/setup_scripts/setup_mail.sh +++ b/buster/setup_scripts/setup_mail.sh @@ -10,6 +10,8 @@ mail="$1" mail_domain="$2" old_server="$3" +read -p'You sure you entered the correct mail domain? (not the server domain, but what comes after the @ in your mail addresses) If not, abort here!' ignore + config_tree_prefix="${HOME}/config/buster" echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections echo "postfix postfix/mailname string ${mail_domain}" | debconf-set-selections @@ -78,8 +80,8 @@ if [ "${old_server}" != "" ]; then su -lc "scp plom@${old_server}:.fetchmailrc ~" plom su -lc "scp plom@${old_server}:.pingmailrc ~" plom su -lc "ssh -t plom@${old_server} \"su -lc 'service postfix stop'\"" plom - #su -lc "ssh plom@${old_server} \"su -lc 'service fetchmail_old_account stop'\"" plom - su -lc "ssh -t plom@${old_server} \"su -lc 'service fetchmail stop'\"" plom + su -lc "ssh plom@${old_server} \"su -lc 'service fetchmail_old_account stop'\"" plom + #su -lc "ssh -t plom@${old_server} \"su -lc 'service fetchmail stop'\"" plom cp "${config_tree_prefix}/setup_scripts/mirror_dir.sh" /home/plom/ su -lc "./mirror_dir.sh ${old_server} /home/plom/mail" plom rm /home/plom/mirror_dir.sh @@ -109,6 +111,7 @@ echo "Also ensure SPF record of 'v=spf1 mx -all' as TXT entry at @ or subdomain" echo "Also ensure reverse DNS lookup for our IP points to $(hostname -f)" echo "Also ensure MX record of priority 10 for @ or subdomain pointing to $(hostname -f)" echo "IMAPS password for user plom is: ${password}" +echo "Also don't forget borgbackup migration …" # todo just for proper mail /sending/: # * how to check IP safety