Postfix 作为转发服务器的问题

Postfix 作为转发服务器的问题

尝试将 Postfix 设置为邮件转发服务器。以下是我的配置的相关部分(我认为);

/etc/postfix/main.cf

inet_interfaces = 94.23.155.113
[...]
mydestination = sams-blog.net
[...]
virtual_alias_maps = hash:/var/urlatron/mail/maptest
virtual_alias_domains = hash:/var/urlatron/mail/domains

/var/urlatron/邮件/maptest

[email protected] [email protected]

/var/urlatron/邮件/域名

sams-blog.net

发送电子邮件至“[电子邮件保护]' 使用 GMail(与我尝试发送邮件的帐户不同的帐户),我什么也没收到,甚至没有收到失败信息。从表面上看,GMail 认为邮件已成功发送。使用https://www.wormly.com/test_smtp_server我得到以下

Resolving hostname...
Connecting...
SMTP -> FROM SERVER:
220 oncilla.customermail.urlatron.com URLATRON Inc. Mail Forwarding Server, abuse requests should be sent to [email protected] or phone +1 415 625 0043, URLATRON Inc. takes no responsibility for the contents of messages sent by this server.
SMTP -> FROM SERVER: 
250-oncilla.customermail.urlatron.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM: [email protected]
SMTP -> FROM SERVER:
SMTP -> ERROR: MAIL not accepted from server: 
RCPT TO: [email protected]
SMTP -> FROM SERVER:
SMTP -> ERROR: RCPT not accepted from server: 
Message sending failed.

我没有 /var/log/mail.log(PostFix 显然是在这里进行调试,但显然不是)。我有 /var/log/maillog,但那是空的。

我该如何调试它?我是否遗漏了什么显而易见的东西?最终的目标是让 PostFix 使用 MySQL 作为其别名的来源,但我想我会尝试让它与平面哈希文件一起工作。

我的完整 main.cf 文件是这里,以防我错过任何重要的事情

答案1

我认为名称解析超时或整个计算机都有问题。当我尝试时telnet 94.23.155.113 25,这是我可以得到的 SMTP 对话:

220 oncilla.customermail.urlatron.com URLATRON Inc. Mail Forwarding Server, abuse requests should be sent to [email protected] or phone +1 415 625 0043, URLATRON Inc. takes no responsibility for the contents of messages sent by this server.
helo bla
502 5.5.2 Error: command not recognized
helo bla
250 oncilla.customermail.urlatron.com
mail from:<[email protected]>

然后它就结束并无限期挂起——对“邮件来自:”命令没有进一步的响应。

查找日志时,请检查 syslog 配置(通常是 /etc/syslog.conf 或 /etc/rsyslog.d)- postfix 不会自行写入日志文件,而是使用 syslog。此外,请尝试重新启动 syslog 守护程序和 postfix - 以防 logrotate 因配置错误而终止您的日志记录功能。

相关内容