bcoe / secure-smtpd

Fork of Python's standard SMTP server. Adding support for various extensions to the protocol.
ISC License
128 stars 42 forks source link

Thunderbird: send helo first? #33

Open FrederikLauber opened 8 years ago

FrederikLauber commented 8 years ago

Hello,

I am trying to run a secure_smtp server and connect with thunderbird. Everytime I try to sent a email, I get this error:

"error: send helo first"

I have no clue where this is comming from or how to fix this.

Here is my Code:

` class CredentialValidator(object): def validate(self, username, password): if username == 'foo' and password == 'bar': return True return False

class SSLSMTPServer(SMTPServer): def process_message(self, peer, mailfrom, rcpttos, message_data): print(message_data)

server = SSLSMTPServer( ('0.0.0.0', 61455), None, require_authentication=True, ssl=True,

ssl_version=ssl.PROTOCOL_TLSv1_2,

certfile='/home/fullchain.pem',
keyfile='/home/privkey.pem',
credential_validator=CredentialValidator(),
#maximum_execution_time = 1.0
)

server.run() `

Any ideas?