secure-smtpd

Adds support for SSL, AUTH, and other goodies, to Petri Lehtinen's SMTPD library.


Keywords
secure, ssl, auth, smtp, smtpd, server
License
ISC
Install
pip install secure-smtpd==3.0.0

Documentation

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(),
)
asyncore.loop()