如何通过Web应用程序与邮件服务器通信 [英] How to communicate with a mail server through a web application
问题描述
我真的不熟悉邮件服务器,所以请原谅我的无知。
I am really unfamiliar with mail servers in general so please excuse my ignorance.
我需要能够通过我的基于Spring的Web应用程序来管理邮件服务器。通过管理,我的意思是为新用户创建邮件帐户,监听来自这些用户的传入更新,删除帐户,删除用户帐户等等。
I need to be able to administer a mail server through my Spring-based web application. By administer, I mean creating mail accounts for new users, listening for incoming updates from those users, deleting accounts, when user accounts are deleted, etc, etc, etc.
我假设邮件服务器(至少是好的)提供某种服务API(SOAP,REST,没关系),应用程序可以通过这些API挂钩并进行更改。但是,我真的不熟悉什么是好的开源服务器,以及他们提供什么选择。
I assume that mail servers (at least the good ones) provide some sort of a service API (SOAP, REST, it doesn't matter) through which an application can hook, and make changes. However, i am really unfamiliar with regards to what the good open-source servers out there are, and what options they provide.
如果有人可以提出建议,我会很高兴一个解决方案。
I will be glad if someone, could propose a solution.
推荐答案
有一个名为 Zimbra ,它有一个开放源代码社区版本,它有一个REST接口,也是一个SOAP。
There is a mail server called Zimbra which has an open source community edition, which has a REST interface and also a SOAP one.
- REST reference (if I understand correctly this won't suit your needs because you can only manipulate existing account via this)
- SOAP interface; one example here, there are many others on the forum.
这篇关于如何通过Web应用程序与邮件服务器通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!