主题: 请教一个在aws上安装iredmail的问题。

- iRedMail 版本号:iRedMail-0.8.7
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号: ec2 Amazon Linux AMI 3.10.35-43.137.amzn1.x86_64
安装步骤如下:
1、添加/etc/redhat-release
     CentOS release 6.5(Final)
2、安装报错:
Error: Package: clamd-0.97.7-1.el6.rf.x86_64 (iRedMail)
           Requires: clamav = 0.97.7-1.el6.rf
           Installed: clamav-0.98.1-1.3.amzn1.x86_64 (@amzn-updates)
               clamav = 0.98.1-1.3.amzn1
修改functions/packages.sh,去掉clamd${PKG_ARCH}
       ALL_PKGS="${ALL_PKGS} clamd${PKG_ARCH} clamav${PKG_ARCH} clamav-db${PKG_ARCH} spamassassin${PKG_ARCH} altermime${PKG_ARCH} perl-LDAP.noarch perl-Mail-SPF.noarch amavisd-new.noarch"
出现新报错:
Transaction check error:
  file /usr/libexec/dovecot/managesieve from install of dovecot-managesieve-2:0.3.6-26.el6.x86_64 conflicts with file from package dovecot-1:2.0.9-7.13.amzn1.x86_64
  file /usr/libexec/dovecot/managesieve-login from install of dovecot-managesieve-2:0.3.6-26.el6.x86_64 conflicts with file from package dovecot-1:2.0.9-7.13.amzn1.x86_64
  file /usr/lib64/dovecot/settings/libmanagesieve_login_settings.so conflicts between attempted installs of dovecot-pigeonhole-1:2.0.9-7.13.amzn1.x86_64 and dovecot-managesieve-2:0.3.6-26.el6.x86_64
  file /usr/lib64/dovecot/settings/libmanagesieve_settings.so conflicts between attempted installs of dovecot-pigeonhole-1:2.0.9-7.13.amzn1.x86_64 and dovecot-managesieve-2:0.3.6-26.el6.x86_64
  file /usr/libexec/dovecot/managesieve conflicts between attempted installs of dovecot-pigeonhole-1:2.0.9-7.13.amzn1.x86_64 and dovecot-managesieve-2:0.3.6-26.el6.x86_64
  file /usr/libexec/dovecot/managesieve-login conflicts between attempted installs of dovecot-pigeonhole-1:2.0.9-7.13.amzn1.x86_64 and dovecot-managesieve-2:0.3.6-26.el6.x86_64

Error Summary

修改functions/packages.sh,去掉dovecot-managesieve${PKG_ARCH} dovecot-pigeonhole${PKG_ARCH}

安装成功。

3、重启后,访问https://xxx.xxx.xxx.xxx/mail
输入用户名密码,提示:
connection to storage server failed
登陆服务器检查:
正在启动 Dovecot Imap:doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 274: Unknown setting: mailbox
                                                           [失败]

274行配置:

    mailbox Sent {
        auto = subscribe
        special_use = \Sent
    }

请大神,协助。

回复: 请教一个在aws上安装iredmail的问题。

目前的解决方案:
1: Create file /etc/redhat-release with below content, so that iRedMail will consider its a CentOS Linux 6.

CentOS Linux 62: open file iRedMail-0.8.7/conf/global, find below lines:


        export PKG_ARCH=".${OS_ARCH}"
        if [ X"${OS_ARCH}" == X"i386" ]; then
            export PKG_ARCH=''
        fiComment out 1st, 2nd, 4th lines like below:


        #export PKG_ARCH=".${OS_ARCH}"
        #if [ X"${OS_ARCH}" == X"i386" ]; then
            export PKG_ARCH=''
        #fi3: Open file iRedMail-0.8.7/functions/packages.sh, find below lines:


    if [ X"${DISTRO}" == X"RHEL" ]; then
        ALL_PKGS="${ALL_PKGS} clamd${PKG_ARCH} clamav${PKG_ARCH} clamav-db${PKG_ARCH} spamassassin${PKG_ARCH} altermime${PKG_ARCH} perl-LDAP.noarch perl-Mail-SPF.noarch amavisd-new.noarch"Remove 'clamav${PKG_ARCH}' in 2nd line:


    if [ X"${DISTRO}" == X"RHEL" ]; then
        ALL_PKGS="${ALL_PKGS} clamd${PKG_ARCH} clamav-db${PKG_ARCH} spamassassin${PKG_ARCH} altermime${PKG_ARCH} perl-LDAP.noarch perl-Mail-SPF.noarch amavisd-new.noarch"

4: Run iRedMail installer with below command:


# YUM='yum --disableplugin=priorities' bash iRedMail.sh

目前情况安装正常。

3 最后由 noagain (2014-06-11 10:41:42) 编辑

回复: 请教一个在aws上安装iredmail的问题。

目前的情况如下 :
1、登陆webmail无法发送邮件提示如下:
    SMTP Error (451): Failed to add recipient "postmaster@works.in.net" (4.3.5 Server configuration problem).
2、Postfix的log信息如下:
     Jun 11 01:32:33 mail postfix/smtpd[2720]: connect from mail.works.in.net[127.0.0.1]
     Jun 11 01:32:33 mail postfix/smtpd[2720]: warning: connect to 127.0.0.1:10031: Connection refused
     Jun 11 01:32:33 mail postfix/smtpd[2720]: warning: problem talking to server 127.0.0.1:10031: Connection refused
     Jun 11 01:32:34 mail postfix/smtpd[2720]: warning: connect to 127.0.0.1:10031: Connection refused
     Jun 11 01:32:34 mail postfix/smtpd[2720]: warning: problem talking to server 127.0.0.1:10031: Connection refused
     Jun 11 01:32:34 mail postfix/smtpd[2720]: NOQUEUE: reject: RCPT from mail.works.in.net[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<postmaster@works.in.net> to=<postmaster@works.in.net> proto=ESMTP helo=<mail.works.in.net>
     Jun 11 01:32:34 mail roundcube: SMTP Error: SMTP error: Failed to add recipient 'postmaster@works.in.net' in /var/www/roundcubemail-1.0.1/program/lib/Roundcube/rcube.php on line 1504 (POST /mail/?_task=mail&_unlock=loading1402450351578&_lang=en_US?_task=mail&_action=send)
    Jun 11 01:32:34 mail postfix/smtpd[2720]: disconnect from mail.works.in.net[127.0.0.1]
3、查找iredmail.org里办法:
     检查并重启如下服务:
     /etc/init.d/iredapd restart
    /etc/init.d/amavisd restart
4、检查10031端口:
    netstat -antp|grep 10031
    无结果。
5、检查10031相关信息
    /etc/policyd/cluebringer.conf中port=10031
6、检测policyd
     ps -aux|grep policyd
     无结果
7、检查cbpolicyd
    /etc/init.d/cbpolicyd status
    启动服务
    /etc/init.d/cbpolicyd start
    Starting cbpolicyd: /usr/bin/perl: symbol lookup error: /usr/lib64/perl5/vendor_perl/auto/Cache/FastMmap/CImpl/CImpl.so: undefined symbol: Perl_Gthr_key_ptr  [失败]
8、检查FastMmap:
    rpm -qa|grep -i fastmmap
    perl-Cache-FastMmap-1.34-1.el6.rf.x86_64


请大牛协助下,谢谢。

回复: 请教一个在aws上安装iredmail的问题。

noagain 写道:

     Jun 11 01:32:33 mail postfix/smtpd[2720]: warning: connect to 127.0.0.1:10031: Connection refused

10031 端口是 Amavisd 服务,重启一下 amavisd 服务看看。

回复: 请教一个在aws上安装iredmail的问题。

重启过了,还是不行。

回复: 请教一个在aws上安装iredmail的问题。

啊,10031 是 policyd/cluebringer 服务。我的回复里搞错了,不好意思

回复: 请教一个在aws上安装iredmail的问题。

检查过cbpolicyd
    /etc/init.d/cbpolicyd status
    启动服务
    /etc/init.d/cbpolicyd start
    Starting cbpolicyd: /usr/bin/perl: symbol lookup error: /usr/lib64/perl5/vendor_perl/auto/Cache/FastMmap/CImpl/CImpl.so: undefined symbol: Perl_Gthr_key_ptr  [失败]