Historical and Removed Modules

smtpd

Removed from the standard library in Python 3.12; historical example targets Python 3.11. Provided an asynchronous SMTP server built on asyncore. Use a maintained asyncio-based SMTP server implementation such as aiosmtpd when server behavior is required. smtplib is a client, not a server. No listener or mail delivery is started.

Formal Syntax & Structure

python syntaxpython
import smtpd  # Historical only: removed in Python 3.12

Return Value

module (historical)

Historical module namespace, not a supported standard-library import on the Python 3.13 baseline.

Working Example

Example Snippetpython
# Historical example: Python 3.11; not executed.from smtpd import SMTPServerprint(callable(SMTPServer.process_message))
Python Reference