在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Python/ python 發(fā)送郵件總是失敗

python 發(fā)送郵件總是失敗

最近部署了GSIL github敏感信息掃描 工具,掃描后無法發(fā)送郵件。
GSIL項目地址:https://github.com/FeeiCN/GSIL
提示的錯誤信息如下:

clipboard.png

Traceback (most recent call last):
  File "/usr/lib/python3.6/smtplib.py", line 387, in getreply
    line = self.file.readline(_MAXLINE + 1)
  File "/usr/lib/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/GSIL/gsil/notification.py", line 67, in notification
    s.ehlo()
  File "/usr/lib/python3.6/smtplib.py", line 441, in ehlo
    (code, msg) = self.getreply()
  File "/usr/lib/python3.6/smtplib.py", line 391, in getreply
    + str(e))
smtplib.SMTPServerDisconnected: Connection unexpectedly closed: [Errno 104] Connection reset by peer

請問各位大佬遇見過這種問題嗎?google了也沒找到相關(guān)的解決辦法,請各位大佬指教。謝謝。

回答
編輯回答
鐧簞噯

只遇到過使用的郵箱不能連接的問題,一般是端口和郵箱協(xié)議配置錯誤,或者是網(wǎng)絡(luò)中有防火墻不允許訪問,或者是系統(tǒng)環(huán)境缺少了什么必要的包

2017年5月18日 06:27
編輯回答
悶騷型

換其他郵件服務(wù)器試試?

2018年8月29日 19:57