happy-monk / secure-smtpd

Fork of Python's standard SMTP server. Adding support for various extensions to the protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Secure SMTPD

Secure-SMTPD extends on Petri Lehtinen's SMTPD library adding support for AUTH and SSL.

Usage

from secure_smtpd import SMTPServer, FakeCredentialValidator
SMTPServer(
    self,
    ('0.0.0.0', 465),
    None,
    require_authentication=True,
    ssl=True,
    certfile='examples/server.crt',
    keyfile='examples/server.key',
    credential_validator=FakeCredentialValidator(),
    debug=True
)
asyncore.loop()

About

Fork of Python's standard SMTP server. Adding support for various extensions to the protocol.

License:ISC License


Languages

Language:Python 100.0%