AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1069351
Accepted
DottorBooom
DottorBooom
Asked: 2021-07-13 03:12:45 +0800 CST2021-07-13 03:12:45 +0800 CST 2021-07-13 03:12:45 +0800 CST

Fetchmail 不使用指定的协议

  • 772

我正在尝试设置 fetchmail 以使用 pop3 从 gmail 下载一些邮件。如您所见,问题在于 fetchmail 而不是使用 pop 协议将使用 imap。

为了确保在配置过程中不犯任何错误,我将总结该过程:

  1. 我在 /etc/default 文件夹中编辑了名为“fetchmail”的文件,并将变量 demo 设置为“yes”;

  2. 现在我在文件夹 /etc 中创建了配置文件“fetchmailrc”。在这篇文章中,我写道:

    set postmaster "root"
    set daemon 600
    
    poll pop.gmail.com with proto POP3
        user '[email protected]' there with password 'secretPWD' is root here options ssl
    
  3. 然后我继续进行测试,看看它是否使用命令:“fetchmail -d0 -vk pop.gmail.com”。该命令的响应如下:

    fetchmail: 6.4.2 querying pop.gmail.com (protocol auto) at Mon Jul 12 12:43:41 2021: poll started
    fetchmail: 6.4.2 querying pop.gmail.com (protocol IMAP) at Mon Jul 12 12:43:41 2021: poll started
    Trying to connect to 173.194.69.109/143...connection failed.
    fetchmail: connection to pop.gmail.com:imap [173.194.69.109/143] failed: Connection timed out.
    Trying to connect to 173.194.69.108/143...connection failed.
    fetchmail: connection to pop.gmail.com:imap [173.194.69.108/143] failed: Connection timed out.
    Trying to connect to 2a00:1450:4013:c00::6c/143...connection failed.
    fetchmail: connection to pop.gmail.com:imap [2a00:1450:4013:c00::6c/143] failed: Network is unreachable.
    Trying to connect to 2a00:1450:4013:c00::6d/143...connection failed.
    fetchmail: connection to pop.gmail.com:imap [2a00:1450:4013:c00::6d/143] failed: Network is unreachable.
    fetchmail: Connection errors for this poll:
    name 0: connection to pop.gmail.com:imap [173.194.69.109/143] failed: Connection timed out.
    name 1: connection to pop.gmail.com:imap [173.194.69.108/143] failed: Connection timed out.
    name 2: connection to pop.gmail.com:imap [2a00:1450:4013:c00::6c/143] failed: Network is unreachable.
    name 3: connection to pop.gmail.com:imap [2a00:1450:4013:c00::6d/143] failed: Network is unreachable.
    IMAP connection to pop.gmail.com failed: Network is unreachable
    fetchmail: 6.4.2 querying pop.gmail.com (protocol IMAP) at Mon Jul 12 12:48:02 2021: poll                         completed
    fetchmail: 6.4.2 querying pop.gmail.com (protocol auto) at Mon Jul 12 12:48:02 2021: poll completed
    fetchmail: Query status=2 (SOCKET)
    fetchmail: normal termination, status 2
    

我可以假设,fetchmail 试图强制 imap 协议而不是 pop。我完全不明白为什么要这样做。

也许我的低意识让我错过了一些东西。现在我正在开发最新版本的 Ubuntu 服务器。非常感谢您的关注,我很抱歉我的英语不好。

PS我知道不鼓励使用root帐户,但现在我只做一些尝试。当我了解如何配置 fetchmail 后,下一步是使用 postfix、dovecot 和 fetchmail 设置一个完整的邮件服务器。另外,我已经知道 getmail 的存在以及他非常简单的设置。但现在我想了解这个错误的原因。

email imap email-server pop3
  • 1 1 个回答
  • 214 Views

1 个回答

  • Voted
  1. Best Answer
    Nobody
    2021-07-13T05:48:01+08:002021-07-13T05:48:01+08:00

    当您从命令行运行 fetchmail 时,默认情况下它将使用该/.fetchmailrc文件而不是其他任何东西。

    要手动测试文件夹 /etc 中的配置文件“fetchmailrc”,您需要使用 -f <pathname>or --fetchmailrc <pathname> 选项。

    换句话说,用

    fetchmail -d0 -vk --fetchmailrc /etc/fetchmailrc
    
    • 2

相关问题

  • 如何绕过 ISP 的限制性电子邮件政策?

  • SharePoint 传入电子邮件出现“未知别名”错误

  • 电子邮件帐户的角色名称与人名

  • 如何在笔记本电脑上使用 Tobit David?[关闭]

  • 随行人员通过 VPN 连接到 Exchange 2007

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve