smtpd
smtpd — SMTP Server
Source code: Lib/smtpd.py
This module offers several classes to implement SMTP servers. One is a generic do-nothing implementation, which can be overridden, while the other two offer specific mail-sending strategies.
1. SMTPServer Objects
-
class smtpd.SMTPServer(localaddr, remoteaddr)
-
Create a new
SMTPServer
object, which binds to local address localaddr. It will treat remoteaddr as an upstream SMTP relayer. Both localaddr and remoteaddr should be a (host, por