If I understand the question correctly you simply want to buffer your emails. You could be much better off either using a third party to act as a backup mail server or set up additional mail servers as lower priority servers to collect the mail should one of the servers not be reached. You can ask on ServerFault about setting something like this up. I can't see the real benefit of writing an app yourself.
If you do wish to write something yourself then you will most likely wish to write both an SMTP server and and SMTP client one to accept the emails and one to deliver the message.
发布评论
评论(1)
如果我正确理解了这个问题,您只是想缓冲您的电子邮件。您最好使用第三方作为备份邮件服务器,或者设置其他邮件服务器作为优先级较低的服务器来收集邮件(如果其中一台服务器无法访问)。您可以在 ServerFault 上询问有关设置此类内容的信息。我看不出自己编写应用程序的真正好处。
如果您确实希望自己编写一些内容,那么您很可能希望同时编写 SMTP 服务器和 SMTP 客户端,其中一个用于接受电子邮件,另一个用于传递消息。
If I understand the question correctly you simply want to buffer your emails. You could be much better off either using a third party to act as a backup mail server or set up additional mail servers as lower priority servers to collect the mail should one of the servers not be reached. You can ask on ServerFault about setting something like this up. I can't see the real benefit of writing an app yourself.
If you do wish to write something yourself then you will most likely wish to write both an SMTP server and and SMTP client one to accept the emails and one to deliver the message.