
我用了這些設定設定 exim 使用 gmail 作為智慧主機,這很有效。但是,我似乎無法對其他 smtp 伺服器使用這些設置,例如 Yahoo 或 Fastmail(兩者都使用連接埠 465 而不是 587)。這兩個操作都失敗並顯示訊息defer (-18): Remote host smtp.example.com [x.x.x.x] closed connection in response to initial connection
。這些設定有什麼問題嗎?可能出了什麼問題?
my_route:
driver = manualroute
domains = ! +local_domains
transport = my_relay
route_list = * smtp.mail.yahoo.com
my_relay:
driver = smtp
port = 465
hosts_require_auth = $host_address
hosts_require_tls = $host_address
my_login:
driver = plaintext
public_name = LOGIN
hide client_send = : [email protected] : my_password
答案1
遇到了同樣的挑戰,並透過將 smtp 連接埠從 465 (SSL/TLS) 更改為 587 (STARTTLS) 解決了這個問題。