bcoe / 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

Thunderbird: send helo first?

FrederikLauber opened this issue · comments

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?