开发者

Use smtpd.PureProxy with HTTP proxy

I want to set up SMTP relay server which also needs to use HTTP proxy. I'm using Python.

SMTP proxy:

import smtpd
import asyncore
smtpd.PureProxy(('local host name', 1234), ('smtp server name', 25))
asyncore.loop()

The issue is I need to use HTTP proxy in orde开发者_Python百科r to connect to SMTP server.

How can I specify it?


Square peg in round hole. SMTP is a different protocol to HTTP, they are incompatible.


I used desproxy to HTTP tunnel SMTP connection.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜