postfix使用587端口發郵件

postfix使用587端口發郵件:

postfix安裝略

vi /etc/mail.rc (最後添加)

set smtp=smtp://smtp.ming.com:587
set smtp-auth=login
set [email protected]
set smtp-auth-password=xxxxxxxx
set ssl-verify=ignore
set [email protected]
set smtp-use-starttls=yes

set nss-config-dir=/etc/pki/nssdb

:wq

service postfix restart

驗證:

echo "aa" | mail -s "bb" [email protected]

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章