# needed for li's local mail delivery.
- tu /etc/hosts <<<"10.8.0.4 mail.iankelling.org"
+ tu /etc/hosts <<<"10.8.0.4 mx.iankelling.org"
# wgmail handles this.
#sgo vpn-mail-forward.service
# setup let's encrypt cert
m web-conf apache2 mail.iankelling.org
+ # TODO, i expanded the above cert manually to mx.iankelling.org, this should be captured
+ # in the automation here. We use mail.iankelling.org as our ehlo name when sending mail
+ # but our mx record is mx.iankelling.org. Initially I was just using mail.iankelling.org,
+ # but the problem is I want multiple ips to be able to identify as mail.iankelling.org,
+ # but a subset to be mx.iankelling.org. Afaik, there is no problem with having
+ # our mail cert be for mail.iankelling.org, and have people connect to mx.ian...,
+ # but it doesn't make logical sense to do this.
sudo rm -fv /etc/apache2/sites-enabled/mail.iankelling.org{,-redir}.conf
ser reload apache2
deb http://ppa.launchpad.net/system76-dev/stable/ubuntu $codename_compat main
deb-src http://ppa.launchpad.net/system76-dev/stable/ubuntu $codename_compat main
EOF
- s apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5D1F3A80254F6AFBA254FED5ACD442D1C8B7748B
+ # ubuntu keyserver is prone to intermittent failures
+ for (( i=0; i <= 4 ; i++ )); do
+ s apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5D1F3A80254F6AFBA254FED5ACD442D1C8B7748B && break
+ sleep 10
+ done
p update
# https://support.system76.com/articles/install-ubuntu/
# but i'm hoping this is not needed
deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu $codename_compat main
deb-src http://ppa.launchpad.net/obsproject/obs-studio/ubuntu $codename_compat main
EOF
- s apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BC7345F522079769F5BBE987EFC71127F425E228
+ for (( i=0; i <= 4 ; i++ )); do
+ s apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BC7345F522079769F5BBE987EFC71127F425E228 && break
+ sleep 10
+ done
p update
fi
;;
sgo dynamicipupdate.timer
-sgo epanicclean.timer
# stop autopoping windows when i plug in an android phone.