cosullivan / SmtpServer

A SMTP Server component written in C#
MIT License
692 stars 163 forks source link

Listener stops after a while #123

Closed gurc4n closed 3 years ago

gurc4n commented 4 years ago

Hi, I am trying to develop a really simple app, it just needs to listen on port 25 and write to a database.

I created the server just like in the sample server app.

It works for several messages.. and stops listening..

Do I need to trigger the cancellation token after every message and recreate the server? Or do I miss something else here?

cosullivan commented 4 years ago

Hi @gurc4n ,

No, the server doesn't need to be stopped, it should just keep running. When you say it stops listening, does it stop accepting new connections?

How many connections does it make before it stops and what operating system are you running?

Thanks, Cain.