主题: 部署iRedmail,无法收发信,怀疑是防火墙问题

部署的时候好像提示iptables出错,现在收发邮件都不行,日志如下:

Mar 23 01:21:20 mail postfix/flush[2611]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 01:21:20 mail postfix/flush[2611]: warning: inet_protocols: configuring for IPv4 support only
Mar 23 01:23:07 mail postfix/smtpd[2628]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 01:23:07 mail postfix/smtpd[2628]: warning: inet_protocols: configuring for IPv4 support only
Mar 23 01:23:07 mail postfix/proxymap[2629]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 01:23:07 mail postfix/proxymap[2629]: warning: inet_protocols: configuring for IPv4 support only
Mar 23 01:23:07 mail postfix/smtpd[2628]: connect from localhost[127.0.0.1]
Mar 23 01:23:08 mail postfix/trivial-rewrite[2631]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 01:23:08 mail postfix/trivial-rewrite[2631]: warning: inet_protocols: configuring for IPv4 support only
Mar 23 01:23:08 mail postfix/trivial-rewrite[2631]: warning: do not list domain mail.flowerby.net in BOTH mydestination and virtual_mailbox_domains
Mar 23 01:23:08 mail postfix/cleanup[2632]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 01:23:08 mail postfix/cleanup[2632]: warning: inet_protocols: configuring for IPv4 support only
Mar 22 17:23:08 mail postfix/smtpd[2628]: 4ED6D1F64B: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=postmaster@mail.flowerby.net
Mar 23 01:23:08 mail postfix/cleanup[2632]: 4ED6D1F64B: message-id=<33ecfc0b034f2b0feafdd72aefe72589@127.0.0.1>
Mar 23 01:23:08 mail postfix/qmgr[2025]: 4ED6D1F64B: from=<postmaster@mail.flowerby.net>, size=577, nrcpt=1 (queue active)
Mar 23 01:23:08 mail postfix/smtp[2633]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 01:23:08 mail postfix/smtp[2633]: warning: inet_protocols: configuring for IPv4 support only
Mar 23 01:23:08 mail postfix/smtp[2633]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Mar 23 01:23:08 mail postfix/bounce[2634]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 01:23:08 mail postfix/bounce[2634]: warning: inet_protocols: configuring for IPv4 support only
Mar 22 17:23:09 mail postfix/smtp[2633]: 4ED6D1F64B: to=<chiangtao@gmail.com>, relay=none, delay=0.59, delays=0.57/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Mar 22 17:23:09 mail postfix/smtpd[2628]: disconnect from localhost[127.0.0.1]

请老大们给看看。新人,刚刚转到linux

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

先解决掉这个问题:

Mar 23 01:23:08 mail postfix/trivial-rewrite[2631]: warning: do not list domain mail.flowerby.net in BOTH mydestination and virtual_mailbox_domains

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

原帖由 Bibby 于 2009-3-23 10:00 发表 http://www.iredmail.org/bbs/images/common/back.gif
先解决掉这个问题:Mar 23 01:23:08 mail postfix/trivial-rewrite[2631]: warning: do not list domain mail.flowerby.net in BOTH mydestination and virtual_mailbox_domains


老大,我是新手,这个具体是什么含义?

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

原帖由 eddiechen 于 2009-3-23 10:02 发表 http://www.iredmail.org/bbs/images/common/back.gif
我看好像你的端口,25,110端口是没有问题的。

你别用postmaster来测试,换成别的普通邮箱来测试。因为在0.4版本的postmaster,是一个管理帐号。


这是用我安装时候第一个邮箱地址通过webmail发的

Mar 23 10:10:56 mail postfix/flush[6014]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 10:10:56 mail postfix/flush[6014]: warning: inet_protocols: configuring for IPv4 support only
Mar 23 10:13:39 mail postfix/smtpd[6033]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 10:13:39 mail postfix/smtpd[6033]: warning: inet_protocols: configuring for IPv4 support only
Mar 23 10:13:39 mail postfix/proxymap[6034]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 10:13:39 mail postfix/proxymap[6034]: warning: inet_protocols: configuring for IPv4 support only
Mar 23 10:13:39 mail postfix/smtpd[6033]: connect from localhost[127.0.0.1]
Mar 23 10:13:39 mail postfix/trivial-rewrite[6035]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 10:13:39 mail postfix/trivial-rewrite[6035]: warning: inet_protocols: configuring for IPv4 support only
Mar 23 10:13:39 mail postfix/trivial-rewrite[6035]: warning: do not list domain mail.flowerby.net in BOTH mydestination and virtual_mailbox_domains
Mar 23 10:13:39 mail postfix/cleanup[6036]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 10:13:39 mail postfix/cleanup[6036]: warning: inet_protocols: configuring for IPv4 support only
Mar 23 02:13:39 mail postfix/smtpd[6033]: CE9731F652: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=edm@mail.flowerby.net
Mar 23 10:13:39 mail postfix/cleanup[6036]: CE9731F652: message-id=<1678b4139592ce944c72a9e3701144b3@127.0.0.1>
Mar 23 10:13:40 mail postfix/qmgr[2030]: CE9731F652: from=<edm@mail.flowerby.net>, size=599, nrcpt=1 (queue active)
Mar 23 10:13:40 mail postfix/smtp[6037]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 10:13:40 mail postfix/smtp[6037]: warning: inet_protocols: configuring for IPv4 support only
Mar 23 10:13:40 mail postfix/smtp[6037]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Mar 23 10:13:40 mail postfix/bounce[6038]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 10:13:40 mail postfix/bounce[6038]: warning: inet_protocols: configuring for IPv4 support only
Mar 23 02:13:40 mail postfix/smtp[6037]: CE9731F652: to=<chiangtao@gmail.com>, relay=none, delay=0.39, delays=0.38/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Mar 23 02:13:41 mail postfix/smtpd[6033]: disconnect from localhost[127.0.0.1]

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

原帖由 chiangtao 于 2009-3-23 10:17 发表 http://www.iredmail.org/bbs/images/common/back.gif

老大,我是新手,这个具体是什么含义?


用字典把它翻译了理解一下

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

原帖由 Bibby 于 2009-3-23 10:20 发表 http://www.iredmail.org/bbs/images/common/back.gif

用字典把它翻译了理解一下


英文我还是能看的

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

原帖由 cityhunter 于 2009-3-23 11:03 发表 http://www.iredmail.org/bbs/images/common/back.gif
如果直接用乾淨的os 裝iredmail應該不會有這個問題的
檢查你的postfix裡的main.cf mydestination


谢谢这位兄弟。我用的是vps,新装的,应该是比较干净的系统,呵呵,tar都是后装的。
我也在网上搜索了一些,我修改了postfix的main.cf   把里面的mydestination的内容注释掉了,但是还是这样的问题。

mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

原帖由 eddiechen 于 2009-3-23 11:39 发表 http://www.iredmail.org/bbs/images/common/back.gif
我也是用vps来测试,正常来说,你在vps上安装,你只需要确认

1:apache,mysql,sendmail已经卸载
2:yum可以正常使用。
3:dns已经正确设置

这个时候,你就可以开始安装,不需要注释任何内容,装完就可以正常使用。

我的vps缺省的主机 ...


先谢谢斑竹。
我这里现在登录webmail都是正常的,所以apache应该好用。mysql什么的也是好的
yum是正常的,因为我在vps安装的时候,没有镜像可以用,全部软件都是yum下来的。
dns也设置正确了。

刚才vps出了一些问题,我之前把postfix里面的virtual_mailbox_domains
部分屏蔽了,好像现在没有上面bibby提到的错误,稍后我测试一下再来。

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

原帖由 eddiechen 于 2009-3-23 13:26 发表 http://www.iredmail.org/bbs/images/common/back.gif
iredmail的目的就是要做到方便安装。所有的修改配置,都通过脚本来解决,基本不需要你修改任何的配置文件,就可以正常使用。

反正是vps,你多测试,安装几次。 ...


现在的问题是这样的,

Mar 23 05:21:49 mail postfix/smtpd[2235]: connect from localhost[127.0.0.1]
Mar 23 13:21:49 mail postfix/trivial-rewrite[2255]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Mar 23 13:21:49 mail postfix/trivial-rewrite[2255]: warning: inet_protocols: configuring for IPv4 support only
Mar 23 05:21:49 mail postfix/smtpd[2235]: 3ECC01F657: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=edm@mail.flowerby.net
Mar 23 13:21:49 mail postfix/cleanup[2250]: 3ECC01F657: message-id=<1f35a009e94f8996d5dc871d3aec53ef@127.0.0.1>
Mar 23 13:21:50 mail postfix/qmgr[2147]: 3ECC01F657: from=<edm@mail.flowerby.net>, size=579, nrcpt=1 (queue active)
Mar 23 05:21:50 mail postfix/smtp[2251]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Mar 23 05:21:52 mail postfix/smtp[2251]: 3ECC01F657: to=<chiang.tao@gmail.com>, relay=none, delay=1.2, delays=1.2/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Mar 23 05:21:58 mail postfix/smtpd[2235]: disconnect from localhost[127.0.0.1]

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

Mar 23 05:21:50 mail postfix/smtp[2251]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

把 amavisd 服务给启动了:

# /etc/init.d/amavisd restart

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

谢谢斑竹的回复,现在是这个出错了,不知道是不是vps本身配置的问题?

/etc/init.d/amavisd restart
Shutting down Mail Virus Scanner (amavisd):                [FAILED]
Starting Mail Virus Scanner (amavisd): Error in config file "/etc/amavisd.conf": Can't open PEM file /var/lib/dkim/mail.flowerby.net.pem: Permission denied at /usr/sbin/amavisd line 551.
                                                           [FAILED]

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

斑竹帮忙给看看吧。:)

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

其他兄弟有能帮忙的么?

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

Starting Mail Virus Scanner (amavisd): Error in config file "/etc/amavisd.conf": Can't open PEM file /var/lib/dkim/mail.flowerby.net.pem: Permission denied at /usr/sbin/amavisd line 551.
                                                           [FAILED]

你是不是重新生成了 /var/lib/dkim/mail.flowerby.net.pem?执行一下以下命令之后重启 amavisd:

# setfacl -m u:amavis:r-- /var/lib/dkim/mail.flowerby.net.pem

回复: 部署iRedmail,无法收发信,怀疑是防火墙问题

operation not supported
执行后就提示这个