IMAP转发器 [英] IMAP forwarder

查看:157
本文介绍了IMAP转发器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道从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?

推荐答案

您可能需要查看,因为这听起来像是为了解决这个问题而设计的。 Fetchmail从POP / IMAP / etc服务器检索邮件,并将其转发到SMTP / LMTP / etc服务器。 Fetchmail有几年的优势,许多用户可以解决各种IMAP服务器的问题。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆