Hai guys, I'm trying to learn how to parse emails sent to my computer. The domain points to my IP. I have a program bind port 25. I send myself an email with gmail. I get gmail's EHLO command. I send back my response, and it ignores me. That's as far as I can get.
I don't understand what the problem is. So maybe someone could recommend an SMTP server library or something. Thanks in advance
//accept connected google client
S: 220 mail.daedro.com ESMTP
C: EHLO mail-ew0-f228.google.com
S: 250 mail.daedro.com
//timeout no response
Code:
clientSocket.Send("220 mail.daedro.com ESMTP\r\n");
...
if(message->Data.find("EHLO") != std::string::npos)
clientSocket->Send("250 mail.daedro.com\r\n");
I also tried enhancing the ESMTP parameters but it didn't do anything:
Code:
clientSocket->Send("250-mail.daedro.com\r\n\
250-PIPELINING\r\n\
250-SIZE 20480000\r\n\
250-VRFY\r\n\
250-ETRN\r\n\
250-ENHANCEDSTATUSCODES\r\n\
250-8BITMIME\r\n\
250 HELP\r\n");