IMAP转发器 [英] IMAP forwarder
问题描述
我想知道从IMAP帐户转发邮件的最快速,最可靠的方法是什么。
I'm wondering what is the quickest and most reliable way to forward mail from an IMAP account.
我的大学不允许我们的学生邮箱转发一个私人电子邮件帐户(每个人都在这里使用Gmail或Hotmail)。这是一个政治事情,不是技术性的。我们确实有对邮箱的IMAP访问权限。我想要一个通过IMAP下载邮件的服务,并转发。而且它是很好的扩大,所以成千上万的学生可以使用它。最终,我想建立一个公共注册页面,并从那里自动处理。
My university does not allow our student-mailbox to forward to a private e-mail account (everybody uses either Gmail or Hotmail here). It's a political thing, not technical. We do have IMAP access to the mailbox. I would like to have a service which downloads the mail through IMAP, and forwards. And it would be nice to scale it, so thousands of students can use it. Eventually, I want to build a public signup page, and have it processed automatically from there.
到目前为止,我已经制作了一个体面的PHP脚本,它连接,下载标题和正文部分,并将它们整合在一起。我有两个问题。
So far, I've made a decent PHP script which connects, downloads headers and body parts, and ties it all together. I have two problems with that.
1)我正在下载各种零件,并将它们贴在一起。我希望每一个异乎寻常的附件文件,奇怪的编码文字和每一种类型的标题都能存活下来。我不确定我有完整的标题。
1) I'm downloading all kind of parts, and sticking them back together. I hope that every exotic attached file, weird encoded piece of text and every type of header survives this. I'm not even sure I have the complete header.
2)到:电子邮件地址成为私人电子邮件地址,而不是原始学生的电子邮件地址,邮件地址。我认为这是跛脚的,不方便搜索和归档。
2) The to: e-mail address becomes the private e-mail address, not the original student e-mail address. I think this is lame, and inconvenient in searching and archiving.
PHP脚本是要走的路吗?使用特定的linux邮件服务/守护进程是否有招数? IMAP是否有转发命令,我失踪了?
Is the PHP script the way to go? Is there a trick using a particular linux mail service/daemon? Does IMAP have a 'forward' command, I'm missing?
推荐答案
You might want to look at Fetchmail, as this sounds like the problem it was designed to solve. Fetchmail retrieves mail from POP/IMAP/etc servers and forwards it to SMTP/LMTP/etc servers. Fetchmail has the advantage of a few years and lots of users ironing out problems with various IMAP servers.
这篇关于IMAP转发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!