开发者

Use smtpd.PureProxy with HTTP proxy

开发者 https://www.devze.com 2023-02-14 13:22 出处:网络
I want to set up SMTP relay server which also needs to use HTTP proxy. I\'m using Python. SMTP proxy: import smtpd

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

精彩评论

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

关注公众号