为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Gmail, OAuth2, POPfile -- How to?

  • 6 个回答
  • 1 人有此问题
  • 2 次查看
  • 最后回复者为 cheetah2003

more options

So Google went ahead and disabled normal logins. This has broken POPFile mail classifier.

POPFile likes to sit between my mail servers and Thunderbird, causing all emails fetched from remote servers to pass through the mail classifier before Thunderbird gets them.

When I use these settings: Server name: 10.0.0.15 Username: pop.gmail.com:995:xxxx@gmail.com:ssl Connection Security: SSL/TLS Authentication Method: OAuth2

Thunderbird just gets 'connection timed out.' No OAuth2 login screen appears. I've tested OAuth2+Thunderbird with POPFile removed from the equation and everything works normally.

Does anyone know how to get POPFile mail classifier to work with OAuth2? This is likely not the right place to ask, but asking anyway if anyone has some suggestions. Thanks!

So Google went ahead and disabled normal logins. This has broken POPFile mail classifier. POPFile likes to sit between my mail servers and Thunderbird, causing all emails fetched from remote servers to pass through the mail classifier before Thunderbird gets them. When I use these settings: Server name: 10.0.0.15 Username: pop.gmail.com:995:xxxx@gmail.com:ssl Connection Security: SSL/TLS Authentication Method: OAuth2 Thunderbird just gets 'connection timed out.' No OAuth2 login screen appears. I've tested OAuth2+Thunderbird with POPFile removed from the equation and everything works normally. Does anyone know how to get POPFile mail classifier to work with OAuth2? This is likely not the right place to ask, but asking anyway if anyone has some suggestions. Thanks!

所有回复 (6)

more options

I think you need to reconsider your mail scanning. oAuth is not something that can be done by proxy. So this POPFile mail classifier will need to support oauth authentication in it's own right. As it has not seen an update in more that 12 years I doubt that will be happening.

https://sourceforge.net/projects/popfile/files/

more options

Hey Matt, thanks for the reply.

Do you perhaps know of something I could use to fetch the mail (fetchmail comes to mind?) to transfer the email to another server (like my local server), then I could use POPFile to classify as usual, fetching from the local mail server instead. Do you or anyone else know of an OAuth2 capable fetchmail?

Another mail classifier might be an option too, though, ugh, the idea of losing decades of training POPfile seems.. not a good idea.

more options

But Thunderbird POP accounts can use OAuth as follows:

Please note: If you run a localhost server eg: Apache then you will need to switch it off temporarilly to allow google to set up the token.

Thunderbird has made alterations so now both POP and IMAP accounts can use OAuth2 for gmail.

  • Select 'Menu app icon' > 'Preferences' > 'Privacy & Security '

Under 'Web Content'

  • Select 'Accept cookies from sites'

It may also be a good idea to make exception:

Now make changes to Account Settings:

  • Right click on gmail pop/imap account name in Folder Pane and select 'Settings'

This opens the Account Settings in new tab The pop/imap account name should be selected Look bottom right for Outgoing Server (SMTP)

  • Click on 'Edit Server _SMTP' button
  • Set Authentication Method : OAuth2
  • Click on OK

Now set the incoming authentication:

  • select 'Server Settings' for gmail account
  • server name: pop.gmail.com
  • Port: 995
  • Connection Security: SSL/TLS
  • Set Authentication Method : OAuth2


Exit Thunderbird and wait a few moments for background processes to complete Start Thunderbird

Gmail will prompt you to enter gmail email address and normal password you use to access webmail account. Follow instructions. It will ask this to allow Thunderbird to access server.

An Oauth token will get stored in Thunderbird - same place as passwords and from then onwards Thunderbird will use it to access server.

由Toad-Hall于修改

more options

Thanks Toad-Hall, but this is not a solution to my issue.

As I wrote originally, OAuth2 + Thunderbird is fine. It's when I add POPFile into the mix, things become a problem.

Perhaps next time you can read the entire issue before replying. Thanks.

more options

I read your issue and understood you were looking for a POPFILE that managed Oauth. I was offering the alternative normal method in case you decided to use it because POPFILE was no longer possible. But you do mention you already have Oauth working ok, so I see your point.

由Toad-Hall于修改

more options

Toad-Hall: Perhaps you know of a 'fetchmail' tool I can use that supports OAuth2, which I could use to transfer emails from GMAIL to a different email server (like my own.)?

If I could transfer the emails out of GMAIL and into a local email inbox, then I wouldn't need OAuth2 in Thunderbird at all, since the emails would just be shoved into my local email server's inbox.

由cheetah2003于修改