Home / 用gmail當作smarthost,或是外寄郵件伺服器

一般寄送郵件伺服器解法:
1. 把外寄郵件伺服器位置 smtp.gmai.com
2. port用587
3. 認證方式選TLS
如此就可以用gmail的smtp寄信

Debian exim4 smarthost解法:
1. dpkg-reconfigure exim4-config
2. 用smarthost來寄送郵件
3. 問你smarthost的位置時,填smtp.gmail.com::587
4. 存檔
5. 編輯 /etc/exim4/conf.d/transport/30_exim4-config_remote_smtp_smarthost
6. 在尾端加入port = 587
7. /etc/init.d/exim4/reload

大功告成。