https://jon.sprig.gs/blog/post/9
Use GMail's SMTP gateway using the command line from Ubuntu without lots of config tips