- edit /etc/postfix/sasl_passwd, add this line
[smtp.gmail.com]:587 username@gmail.com:password - chmod 0400 /etc/postfix/sasl_passwd,
- vi /etc/postfix/main.cf, add these lines:
#relayhost = (uncomment this line)
# chiao
relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_use_tls = yes - postmap /etc/postfix/sasl_passwd
- service postfix restart
2018年8月29日 星期三
setup gmail relay
cf: https://www.howtoforge.com/tutorial/configure-postfix-to-use-gmail-as-a-mail-relay/#debian-ubuntu
-
cf: https://ubuntuhandbook.org/index.php/2022/01/default-torrent-app-magnet-links-ubuntu/ Set “QBittorrent” as default app for magnet link,...
-
cf: https://www.tenforums.com/tutorials/101274-uninstall-printer-driver-windows-10-a.html Open cmd in administer mode Run printmanagement...
-
cf: https://stackoverflow.com/questions/54184707/warning-continue-targeting-switch-is-equivalent-to-break-did-you-mean-to-u Error while...