Open FrederikLauber opened 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,
certfile='/home/fullchain.pem', keyfile='/home/privkey.pem', credential_validator=CredentialValidator(), #maximum_execution_time = 1.0 )
server.run() `
Any ideas?
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,
server.run() `
Any ideas?