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.
精彩评论