将传入电子邮件集成到 php/mysql 应用程序中
我正在寻找创建一个传入电子邮件守护程序交换机,我可以将其与各种远程 php/mysql 应用程序集成。理想情况下,我想检查“收件人”地址,看看它是否在 mysql 数据库中,如果是,则解析电子邮件并通过 CURL 将电子邮件发布到目标目的地,并将附件保存在本地某处。
我可能会设置一个专门用于此任务的机架空间云服务器(仅接受电子邮件并发布到第 3 方 API)。然而,我不知道从哪里开始。我应该使用哪个服务器平台/发行版?需要定制哪些软件等等?
更新:我并不是在寻找完整的解决方案或教程,我只是想要一些关于良好起点的建议,因为 Linux 软件不是我的强项。
I am looking to create an incoming email daemon switchboard that I can integrate with various remote php/mysql apps. Ideally I want to check the 'to' address to see if it is in a mysql database and if it is, have the email parsed and posted via CURL to a target destination as well as have attachments saved somewhere locally.
I will likely set up a rackspace cloud server dedicated to this task (just accepting emails and posting to 3rd party APIs). However, I do not know where to start. Which server platform / distribution should I go with? Which software needs to be customized, etc?
Update: I am not looking for a full solution or tutorial, I just would like some advice on a good starting point as Linux software is not my forte.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在收到邮件后立即使用 procmail 启动您的应用程序
谷歌搜索 procmail 食谱
you can use procmail to fire up your application as soon as mail has been received
google for procmail recipes
这个项目将由两部分组成:邮件服务器和挖掘应用程序:
邮件服务器:
挖掘应用程序:一旦您可以阅读邮件,您需要在此处执行两项主要任务:
You're going to have two pieces with this project: The mail server and the mining application:
Mail Server:
Mining app: Once you can read mail you need to do two major tasks here: