fetchmail问题:提取多个帐户

我在我的linux机器上安装了fetchmail。 这里是我的.fetchmailrc中的configuration

set logfile /root/fetchmail.log ##set daemon 300 poll smtp.gmail.com proto imap user "[email protected]" pass "mypass1" is "root" here poll smtp.gmail.com proto imap user "[email protected]" pass "mypass2" is "root" here ssl fetchall no keep mda "/usr/bin/procmail -f %F -d %T"; 

我想从两个帐户中获取,但是当我运行fetchmail -kv时,它只能获取第二个gmail。我已经修改了基于fetchmail的fetchmailrc,但仍然没有用。可以有人帮我吗?

我终于find了解决我的问题的方法。似乎需要在.fetchmailrc中完成一些更改。要使fetchmail正常工作,请修改.fetchmailrc,如下所示:

 set postmaster "root" set bouncemail set logfile /root/fetchmail.log poll pop.gmail.com proto pop3 user '[email protected]' there with password 'paswd' is root here options ssl user '[email protected]' there with password 'paswd' is root here options ssl fetchall no keep mda "/usr/bin/procmail -f %F -d %T"; 

请注意,这些设置可能会根据您的需求而有所不同。但是这些代码具有保持fetchmail运行的基本设置。希望对于遇到同样问题的人有帮助。