![使用正则表达式规范收件人映射时无法使用 Postfix 接收传入邮件](https://linux22.com/image/569991/%E4%BD%BF%E7%94%A8%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E8%A7%84%E8%8C%83%E6%94%B6%E4%BB%B6%E4%BA%BA%E6%98%A0%E5%B0%84%E6%97%B6%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%20Postfix%20%E6%8E%A5%E6%94%B6%E4%BC%A0%E5%85%A5%E9%82%AE%E4%BB%B6.png)
我在 mail.ans.co52.com 设置了一个测试服务器,运行 Postfix 并使用正则表达式规范收件人映射:
在 /etc/postfix/recipient_canonical-正则表达式:
/[0-9]+@mail\.ans\.co52\.com/ catchall
直接发送电子邮件至[电子邮件保护]工作正常,但如果我发送邮件到[电子邮件保护]失败并显示以下日志消息:
Dec 13 07:06:19 ans-www postfix/smtpd[16812]: connect from unknown[12.5.114.26]
Dec 13 07:06:19 ans-www postfix/smtpd[16812]: setting up TLS connection from unknown[12.5.114.26]
Dec 13 07:06:19 ans-www postfix/smtpd[16812]: Anonymous TLS connection established from unknown[12.5.114.26]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Dec 13 07:06:20 ans-www postfix/smtpd[16812]: 0C5087E077: client=unknown[12.5.114.26], sasl_method=LOGIN, sasl_username=register
Dec 13 07:06:20 ans-www postfix/cleanup[16815]: 0C5087E077: message-id=<[email protected]>
Dec 13 07:06:20 ans-www postfix/qmgr[16801]: 0C5087E077: from=<[email protected]>, size=827, nrcpt=1 (queue active)
Dec 13 07:06:20 ans-www postfix/smtpd[16812]: disconnect from unknown[12.5.114.26]
Dec 13 07:06:20 ans-www postfix/smtp[16803]: certificate verification failed for mail.ans.company52.com[205.186.183.147]:25: untrusted issuer /C=US/O=Equifax/OU=Equifax Secure Certificate Authority
Dec 13 07:06:21 ans-www postfix/smtp[16803]: 0C5087E077: to=<[email protected]>, relay=mail.ans.company52.com[205.186.183.147]:25, delay=1.2, delays=0.2/0/0.9/0.15, dsn=4.0.0, status=deferred (host mail.ans.company52.com[205.186.183.147] said: 451 Temporary local problem - please try later (in reply to RCPT TO command))
答案1
它的意思是:
Dec 13 07:06:20 ans-www postfix/smtp[16803]: certificate verification failed for mail.ans.company52.com[205.186.183.147]:25: untrusted issuer /C=US/O=Equifax/OU=Equifax Secure Certificate Authority
您的证书无效(无论是什么原因造成的),但 Postfix 会推迟递送/发送。请修复它。