通过pop3 / imap获取邮件到postfix / dovecot

我设法使用postfix和dovecot设置我的第一个Debian邮件服务器。 我使用roundcube访问由MySQL数据库中的虚拟用户定义的IMAP帐户。

一切工作到目前为止。 我现在想做的是从其他服务器(例如hotmail)获取邮件并将其分发到相应的虚拟帐户。

由于我完全不知道从哪里开始,所以我想我会试一试,只是要求一个大方向。

任何帮助深表感谢。

您需要一个像fetchmail或getmail这样的工具。 他们通过POP / IMAP接收邮件并将其插入本地邮件系统。

您可以使用configuration文件(通常称为.fetchmailrc fetchmail,如下所示:

 poll mail.example.com protocol pop3: username "admin" password "dir3cti0n" is "squire" here; username "fore" password "0rd3r" is "foreman" here; 

这里is squire从远程地址到本地地图的映射。

(从这里拉的例子)