本文介绍了自定义c#smtp服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我尝试用c#编写自定义smtp服务器。也许有些东西我对整个邮件的东西都不太了解,这就是为什么我在这里问这个问题。



现在我能够收到的数据一个mailprogram(例如MS Outlook)发送到我的smtp服务器(所有的HELO东西都在工作,万岁!!!!)。让我们说邮件的收件人是[email protected]。所以我收到了邮件的收件人,我知道收件人的电子邮件地址托管在名为muppets.com的服务器上。但是如何将kermits邮件转移到muppets.com?我不需要代码,但我想知道这个概念,也许是关于smtp服务器如何与邮件服务器通信,将邮件发送到邮件服务器或者绝对欢迎任何帮助的描述。



提前致谢

Senol

Hi,

i try to write a custom smtp server with c#. Maybe there is something that i dont really understand about the whole mail stuff, thats why i am asking the question here.

Right now i am able to receive the data that a mailprogram (e.g. MS Outlook) sends to my smtp server (All the HELO stuff is working, hooray!!!!). Lets say that the recipient of the message is [email protected]. So i have the recipient of the message and i know that the recipient email adress is hosted on a server called muppets.com. But how do i transfer kermits mail to muppets.com? I don''t need code but i would like to know about the concept, maybe a description on how the smtp server is communicating with the mail server, sending the mail to the mail server or whatever help is absolutely welcome.

Thanks in advance
Senol

推荐答案

Default Server:  google-public-dns-a.google.com
Address:  8.8.8.8

> set type=mx
> muppets.com
Server:  google-public-dns-a.google.com
Address:  8.8.8.8

Non-authoritative answer:
muppets.com     MX preference = 10, mail exchanger = n7smtpin03f.starwave.com
muppets.com     MX preference = 10, mail exchanger = n7smtpin01f.starwave.com
muppets.com     MX preference = 10, mail exchanger = n7smtpin02f.starwave.com
> set type=a
> n7smtpin03f.starwave.com
Server:  google-public-dns-a.google.com
Address:  8.8.8.8

Non-authoritative answer:
Name:    n7smtpin03f.starwave.com.GeneralTool.com
Address:  205.173.226.25





连接到邮件服务器后,SMTP命令与服务器的服务器大致相同,只是服务器现在开启了发送方。



PS:来自Beaker的电子邮件会很棒!大声笑Meep meep meep me me me me me me me me me me me me me me me me me



Once you connect to a mail server, the SMTP commands are more or less the same as the client to server except that your server is now on the sending side.

PS: Emails from Beaker would be awesome! lol "Meep meep meep me-me-meep. Meep meep."

这篇关于自定义c#smtp服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 15:09