Module smtpd
[hide private]
[frames] | no frames]

Module 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.


Version: Python SMTP proxy version 0.2

Classes [hide private]
Devnull
SMTPChannel
SMTPServer
DebuggingServer
PureProxy
MailmanProxy
Options
Functions [hide private]
 
usage(code, msg='')
 
parseargs()
Variables [hide private]
  program = '(imported)'
  DEBUGSTREAM = Devnull()
  NEWLINE = '\n'
  EMPTYSTRING = ''
  COMMASPACE = ', '

Imports: sys, os, errno, getopt, time, socket, asyncore, asynchat