Good day.
Tell me, please, on this issue: Commands from my client come to my SMTP server in this order:
Ehlo
MAIL FROM
RCPT TO
Data
But then - no commands, until the timeout. This is what confused me - if the EHLO command is used , then the BDAT command should be used instead of DATA . Right?
Most interesting: I answer the DATA command:
"354 Start mail input; end with. \ R \ n"
then I read the text of the letter, then I write to the client
"250 OK \ r \ n"
Now, in theory, the client should send the command "QUIT", but it did not follow. I'm at a loss, no more ideas left. Can anyone come across this? Judging by the literature in the network, I'm doing everything right, but obviously not everything ..
UPD
I check service work
var client = new SmtpClient("Leonardo-PC", 25); var m = new MailMessage("localm@bank.lan", "+38065741545@Leonardo-PC"); m.Body = "Hello"; client.Send(m); Console.WriteLine(">> " + i + " (1)");
The code hangs on client.Send(m);
then the connection is broken by timeout
Maybe I'm doing something wrong?