以下內容是參考 https://kifarunix.com/configure-postfix-to-use-gmail-smtp-on-ubuntu-18-04/
首先安裝一下 postfix 與 mailutils
安裝過程設定使用 Internet site: Mail is sent and received directly using SMTP.
安裝後修改 /etc/postfix/main.cf
修改 /etc/postfix/sasl_passwd 加入密碼
應用程式密碼可以在 https://myaccount.google.com/apppasswords 產生
沒有留言:
張貼留言