主题: iRedMail双网配置的问题
我是一个iRedMail的新手,也是一个Linux的新手,所以问的问题可能有点菜,请各位大大们见谅。
另外,在我注册账号并发布这个帖子之前,我已经花费了较长一段时间在BAIDU和GOOGLE上了,可惜,并没有解决问题。
首先我说明一下我的机器环境:
操作系统:Debian 6.0
iRedMail版本:0.7.0 beta2
网络配置:
eth0 172.16.6.136 172.16.6.1 255.255.255.0 202.96.134.133
eth1 211.154.134.214 211.154.134.1 255.255.255.0 58.74.188.178
hostname: mail.ifreecomm.com
domain: ifreecomm.com
问题描述:
1、当我将两个网卡都连接上的情况下,iRedmail无法收到来自外部邮箱的邮件(可以向外部邮箱发送邮件)。使用http://zmailer.org/mxverify.html检测MX记录,结果如下:
Testing MX server: mail.ifreecomm.com
Address lookup did yield following ones:
IPv4 211.154.134.214
Testing server at address: IPv4 211.154.134.214
ERROR: Connect failure reason: Connection timed out
(Still possibly all OK!)
2、我将连接到内网的网卡(eth0)的网线拔掉,iRedmail可以正常的接收来自外部邮箱的邮件。使用http://zmailer.org/mxverify.html检测MX记录,结果如下:
Testing MX server: mail.ifreecomm.com
Address lookup did yield following ones:
IPv4 211.154.134.214
Testing server at address: IPv4 211.154.134.214
[ CONNECTED! ]
220 mail.ifreecomm.com ESMTP Postfix (Debian/GNU)
EHLO mail.zmailer.org
250-mail.ifreecomm.com
250-PIPELINING
250-SIZE 15728640
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
Excellent! It speaks ESMTP!
MAIL FROM:<>
250 2.1.0 Ok
Fine, it accepts NULL return-path as is mandated by RFC 2821 section 6.1
RSET
250 2.0.0 Ok
MAIL FROM:<postmaster@mail.zmailer.org>
250 2.1.0 Ok
RCPT TO:<postmaster@ifreecomm.com>
550 5.1.1 <postmaster@ifreecomm.com>: Recipient address rejected: User unknown in virtual mailbox table
Eh ? What ? No ``postmaster'' supported there ? That violates RFC 2821 section 4.5.1.
Apparently OK!
3、总结来说,就是iRedmail的各项主体功能都是没有问题的。只是在连接了双网口的时候,不能接收到来自外部邮件服务器的邮件。
我检查了/etc/hosts文件和/var/spool/postfix/etc/hosts文件,以及/etc/resolve.conf和/var/spool/postfix/etc/resolve.conf文件,两组文件的内容是保持一致的。
请教各位大大,这个问题可能的原因,以及解决办法,不胜感激。另外我的/etc/postfix/main.cf配置文件的内容如下:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate