Postfix作为转发服务器的问题

试图将Postfix设置为邮件转发服务器。 这是我的configuration相关(我认为)位;

/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发送邮件到'[email protected]'时(我试图发送一个单独的帐户),我完全没有回来,甚至没有失败。 从外观上看,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的debugging,但显然不是)。 我有/ var / log / maillog,但是这是空的。

我怎么去debugging呢? 有没有什么明显的我已经错过了? 最终的目的是让PostFix使用MySQL作为别名的源代码,但我想我会试着让它使用平面散列文件来启动。

我的完整的main.cf文件在这里 ,因为我错过了任何重要的东西

我认为有名称parsing超时或整个机器有问题。 当我尝试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]> 

并在那里结束并无限期地挂起 – 对“mail from:”命令没有进一步的回应。

查找日志时,请检查系统日志configuration(通常是/etc/syslog.conf或/etc/rsyslog.d) – postfix不会自行写入日志文件,而是使用syslog。 也可以尝试重新启动系统日志守护进程和后缀 – 以防万一logrotate设法由于configuration错误而终止日志loggingfunction。