Use MailKit features to implement the receiving part of a SMTP communication?!? #1908
DierkDroth
started this conversation in
General
Replies: 1 comment 1 reply
-
Yes, you'll probably want to look at the SmtpDataFilter which you'll need for undoing the byte-stuffing that happens in the SMTP DATA command. Alternatively, you could look at the Pop3Stream.Read() method (or the ReadAsync method): https://github.com/jstedfast/MailKit/blob/master/MailKit/Net/Pop3/Pop3Stream.cs#L373 I can't think of anything else other than obviously you could use MimeKit's MimeParser to parse messages and the MailboxAddress.TryParse for MAIL FROM and RCPT TO commands. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@jstedfast I'm digesting the crazy idea of implementing my own mail server.
I'm aware there are many non-trivial pieces involved mainly about spam filtering inbound mails (likely doable) but also making sure outbound mails are not rejected (SPF, rDNS, DMARC etc., likely more complicated)
On the coding part: basically communication between 'mail servers' is just STMP, AFAIK. So I wonder if MailKit would have some components/features under the hood which would facilitate receiving, parsing, processing SMTP messages?!?
Would you have any insights? Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions