smtpd

An RFC 2821 smtp proxy.

Usage: %(program)s [options] [localhost:localport [remotehost:remoteport]]

Options:

–nosetuid -n

This program generally tries to setuid `nobody’, unless this flag is set. The setuid call will fail if this program is not run as root (in which case, use this flag).

–version -V

Print the version number and exit.

–class classname -c classname

Use `classname’ as the concrete SMTP proxy class. Uses `PureProxy’ by default.

–debug -d

Turn on debugging prints.

–help -h

Print this message and exit.

Version: %(__version__)s

If localhost is not given then `localhost’ is used, and if localport is not given then 8025 is used. If remotehost is not given then `localhost’ is used, and if remoteport is not given, then 25 is used.

Functions

parseargs()
usage(code[, msg])

Classes

DebuggingServer(localaddr, remoteaddr)
Devnull
MailmanProxy(localaddr, remoteaddr)
Options
PureProxy(localaddr, remoteaddr)
SMTPChannel(server, conn, addr)
SMTPServer(localaddr, remoteaddr)