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 / 问题 / 715466
Accepted
Madno
Madno
Asked: 2015-08-20 23:30:49 +0800 CST2015-08-20 23:30:49 +0800 CST 2015-08-20 23:30:49 +0800 CST

Postfix 收不到来自 Gmail 的邮件

  • 772

我已经在 CentOS 7 上安装了带有 Dovecot 的 Postfix。当我尝试从 Outlook 等服务发送/接收电子邮件时,一切正常。

但是,当我从我的 Gmail 帐户向我的服务器上的电子邮件发送电子邮件时,出现了问题。消息永远不会到达我的服务器,而是被送回,这就是消息中提到的原因:

Technical details of temporary failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain xxxxxxxx.com by xxxxxxxx.com. [xx.zz.186.133].

The error that the other server returned was:
454 4.7.0 TLS not available due to local problem

这是我的main.cf文件: http: //pastebin.com/3Di4PYxt

以下是文件/etc/postfix夹中的文件:

access                 header_checks.inbound.db     ldap       transport
canonical              header_checks.internal       main.cf    transport.db
generic                header_checks.internal.db    master.cf  virtual
header_checks          header_checks.submission     relocated
header_checks.inbound  header_checks.submission.db  ssl

我在 /etc/postfix/ssl 中有这些文件:

server.crt  server.csr  server.key  server.key.secure

我按照本教程安装邮件服务器:http ://www.krizna.com/centos/setup-mail-server-centos-7/

注意:我已经看到了这个问题,但没有帮助。

postfix
  • 1 1 个回答
  • 2682 Views

1 个回答

  • Voted
  1. Best Answer
    Madno
    2015-08-21T23:38:06+08:002015-08-21T23:38:06+08:00

    最后我设法使用这个链接解决了这个问题:https ://workaround.org/ispmail/squeeze/ssl-certificates

    必须运行这些命令(以 root 身份):

    mkdir /etc/ssl/private/
    
    openssl req -new -x509 -days 3650 -nodes -out /etc/ssl/certs/dovecot.pem -keyout /etc/ssl/private/dovecot.pem
    
    chmod o= /etc/ssl/private/dovecot.pem
    
    openssl req -new -x509 -days 3650 -nodes -out /etc/ssl/certs/postfix.pem -keyout /etc/ssl/private/postfix.pem
    
    chmod o= /etc/ssl/private/postfix.pem
    
    postconf -e smtpd_tls_cert_file=/etc/ssl/certs/postfix.pem
    
    postconf -e smtpd_tls_key_file=/etc/ssl/private/postfix.pem
    
    service dovecot restart
    
    service postfix restart
    
    • 4

相关问题

  • Postfix 在特定端口上接受邮件

  • 让 Postfix 以两种方式处理垃圾邮件

  • Postfix 或 exim:自动/程序化和转发电子邮件设置

  • 后缀电子邮件地址

  • 什么是最好的开源电子邮件解决方案包

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