主题: 安装iRedMail无法正常工作

os:rhel5.2 x64
系统已安装amp,于是按http://www.iredmail.org/wiki/index.php? … iant=zh-cn讲的设置了这些参数后来安装的,安装后原mysql不能启动,改回原配置文件就可以了。但是邮件部分始终不能工作,请大家给点建议,不胜感激。

安装的config:

 
export VMAIL_USER_HOME_DIR='/home/vmail'
export SIEVE_DIR='/home/vmail/sieve'
export BACKEND='MySQL'
export MYSQL_ROOT_PASSWD='111'
export MYSQL_ADMIN_USER='vmailadmin'
export MYSQL_ADMIN_PW='111'
export FIRST_DOMAIN='domain.com'
export DOMAIN_ADMIN_NAME='postmaster'
export DOMAIN_ADMIN_PASSWD='111'
export FIRST_USER='www'
export FIRST_USER_PASSWD='111'
export ENABLE_SPF='YES'
export USE_MANAGESIEVE='YES'
export USE_PYSIEVED='YES'
export USE_POP3='YES'
export USE_POP3S='YES'
export USE_IMAP='YES'
export USE_IMAPS='YES'
export ENABLE_DOVECOT="YES"
export DOVECOT_PROTOCOLS=' pop3 pop3s imap imaps'
export ENABLE_DOVECOT_SSL="YES"
export USE_RCM='YES'
export DEFAULT_LANG='zh_CN'
export USE_POSTFIXADMIN='YES'
export SITE_ADMIN_NAME='postmaster@domain.com'
export MAIL_ALIAS_ROOT='admin@domain.com'

.iRedMail.installation.status

 
export status_adduser_vmail="DONE"
export status_apache_php_config="DONE"
export status_mysql_initialize="DONE"
export status_mysql_import_vmail_users="DONE"
export status_postfix_config_basic="DONE"
export status_postfix_config_mysql="DONE"
export status_postfix_config_virtual_host="DONE"
export status_postfix_config_sasl="DONE"
export status_postfix_config_tls="DONE"
export status_postfix_config_syslog="DONE"
export status_policyd_user="DONE"
export status_policyd_config="DONE"
export status_policy_service_config="DONE"
export status_enable_dovecot_ssl="DONE"
export status_enable_dovecot="DONE"
export status_dovecot_config="DONE"
export status_pysieved_config="DONE"
export status_clamav_config="DONE"
export status_amavisd_config="DONE"
export status_sa_config="DONE"
export status_rcm_install="DONE"
export status_rcm_config="DONE"
export status_postfixadmin_install="DONE"
export status_disable_selinux="DONE"
export status_remove_sendmail="DONE"
export status_re_generate_iredmail_repo="DONE"
export status_replace_iptables_rule="DONE"
export status_replace_mysql_config="DONE"
export status_run_freshclam_now="DONE"
export status_start_postfix_now="DONE"
export status_clear_away="DONE"
export status_install_all_pkgs="DONE"
export status_enable_all_services="DONE"

[ 本帖最后由 teel 于 2009-4-26 14:55 编辑 ]

回复: 安装iRedMail无法正常工作

/var/log/messages part1

Apr 25 22:14:29 www yum: Installed: perl-Compress-Zlib - 1.42-1.fc6.x86_64
Apr 25 22:14:29 www yum: Installed: perl-Digest-SHA1 - 2.11-1.2.1.x86_64
Apr 25 22:14:29 www yum: Installed: nomarch - 1.4-2.el5.x86_64
Apr 25 22:14:29 www yum: Installed: perl-NetAddr-IP - 4.007-1.el5.rf.x86_64
Apr 25 22:14:29 www yum: Installed: perl-Unix-Syslog - 1.0-1.el5.rf.x86_64
Apr 25 22:14:29 www yum: Installed: zoo - 2.10-2.2.el5.rf.x86_64
Apr 25 22:14:29 www yum: Installed: perl-version - 0.74-1.el5.rf.x86_64
Apr 25 22:14:29 www yum: Installed: cabextract - 1.2-1.el5.rf.x86_64
Apr 25 22:14:30 www yum: Installed: ripole - 0.2.0-1.2.el5.rf.x86_64
Apr 25 22:14:30 www yum: Installed: lha - 1.14i-19.2.2.el5.rf.x86_64
Apr 25 22:14:30 www yum: Installed: perl-BerkeleyDB - 0.36-1.el5.rf.x86_64
Apr 25 22:14:30 www yum: Installed: perl-Net-SSLeay - 1.30-4.fc6.x86_64
Apr 25 22:14:30 www yum: Installed: perl-Digest-SHA - 5.47-1.el5.rf.x86_64
Apr 25 22:14:30 www yum: Installed: perl-Convert-UUlib - 1:1.11-1.ired.x86_64
Apr 25 22:14:30 www yum: Installed: ncompress - 4.2.4-47.x86_64
Apr 25 22:14:30 www yum: Installed: arc - 5.21o-1.el5.rf.x86_64
Apr 25 22:14:30 www yum: Installed: freeze - 2.5.0-1.2.el5.rf.x86_64
Apr 25 22:14:30 www yum: Installed: lzo - 1.08-5.el5.rf.x86_64
Apr 25 22:14:30 www yum: Installed: lzop - 1.01-2.el5.rf.x86_64
Apr 25 22:14:30 www yum: Installed: perl-Crypt-OpenSSL-RSA - 0.25-1.el5.rf.x86_64
Apr 25 22:14:30 www yum: Installed: unrar - 3.8.2-1.el5.rf.x86_64
Apr 25 22:14:30 www yum: Installed: unarj - 2.63-0.a.2.el5.rf.x86_64
Apr 25 22:14:30 www yum: Installed: perl-IO-stringy - 2.110-1.2.el5.rf.noarch
Apr 25 22:14:30 www yum: Installed: perl-Digest-HMAC - 1.01-15.noarch
Apr 25 22:14:30 www yum: Installed: perl-IO-Zlib - 1.04-4.2.1.noarch
Apr 25 22:14:30 www yum: Installed: perl-Archive-Tar - 1.30-1.fc6.noarch
Apr 25 22:14:30 www yum: Installed: perl-IO-Socket-SSL - 1.01-1.fc6.noarch
Apr 25 22:14:31 www yum: Installed: perl-Archive-Zip - 1.26-1.el5.rf.noarch
Apr 25 22:14:31 www yum: Installed: perl-Net-CIDR-Lite - 0.20-1.2.el5.rf.noarch
Apr 25 22:14:31 www yum: Installed: perl-Sys-Hostname-Long - 1.4-1.2.el5.rf.noarch
Apr 25 22:14:31 www yum: Installed: perl-Net-IP - 1.25-2.fc6.noarch
Apr 25 22:14:31 www yum: Installed: perl-Net-DNS - 0.59-3.el5.x86_64
Apr 25 22:14:31 www yum: Installed: clamav-db - 0.95.1-1.el5.rf.x86_64
Apr 25 22:14:31 www yum: Installed: clamav - 0.95.1-1.el5.rf.x86_64
Apr 25 22:14:31 www yum: Installed: perl-HTML-Tagset - 3.10-2.1.1.noarch
Apr 25 22:14:31 www yum: Installed: perl-HTML-Parser - 3.55-1.fc6.x86_64
Apr 25 22:14:31 www yum: Installed: perl-libwww-perl - 5.805-1.1.1.noarch
Apr 25 22:14:31 www yum: Installed: spamassassin - 3.2.5-1.el5.rf.x86_64
Apr 25 22:14:32 www yum: Installed: perl-TimeDate - 1:1.16-5.el5.noarch
Apr 25 22:14:32 www yum: Installed: perl-MailTools - 2.04-1.el5.rf.noarch
Apr 25 22:14:32 www yum: Installed: perl-Mail-DKIM - 0.32-1.el5.rf.noarch
Apr 25 22:14:32 www yum: Installed: perl-Net-Server - 0.97-1.el5.rf.noarch
Apr 25 22:14:32 www yum: Installed: perl-Convert-BinHex - 1.119-2.2.el5.rf.noarch
Apr 25 22:14:32 www yum: Installed: perl-MIME-tools - 5.420-3.el5.noarch
Apr 25 22:14:32 www yum: Installed: perl-Convert-TNEF - 0.17-3.2.el5.rf.noarch
Apr 25 22:14:32 www yum: Installed: perl-Error - 0.17015-1.el5.rf.noarch
Apr 25 22:14:32 www yum: Installed: pysieved - 1.0-2.ired.noarch
Apr 25 22:14:32 www yum: Installed: perl-Mail-SPF - 2.006-1.el5.rf.noarch
Apr 25 22:14:32 www yum: Installed: dovecot-sieve - 1.1.6-9.el5.x86_64
Apr 25 22:14:32 www yum: Installed: clamd - 0.95.1-1.el5.rf.x86_64
Apr 25 22:14:32 www yum: Installed: amavisd-new - 2.6.2-2.ired.x86_64
Apr 25 22:14:32 www yum: Installed: perl-Mail-SPF-Query - 1.999.1-2.el5.rf.noarch
Apr 25 22:14:32 www yum: Installed: policyd - 1.82-4.rhms.x86_64

回复: 安装iRedMail无法正常工作

/var/log/messages part2

Apr 26 01:40:44 www freshclam[3337]: freshclam daemon 0.95.1 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64) 
Apr 26 01:40:44 www freshclam[3337]: ClamAV update process started at Sun Apr 26 01:40:44 2009 
Apr 26 01:41:24 www freshclam[3337]: Can't query current.cvd.clamav.net 
Apr 26 01:41:24 www freshclam[3337]: Invalid DNS reply. Falling back to HTTP mode. 
Apr 26 01:41:24 www freshclam[3337]: Reading CVD header (main.cvd): 
Apr 26 01:42:44 www freshclam[3337]: Can't get information about db.cn.clamav.net: Name or service not known 
Apr 26 01:42:44 www freshclam[3337]: Can't read main.cvd header from db.cn.clamav.net (IP: ) 
Apr 26 01:42:44 www freshclam[3337]: Trying again in 5 secs... 
Apr 26 01:42:49 www freshclam[3337]: ClamAV update process started at Sun Apr 26 01:42:49 2009 
Apr 26 01:43:29 www freshclam[3337]: Can't query current.cvd.clamav.net 
Apr 26 01:43:29 www freshclam[3337]: Invalid DNS reply. Falling back to HTTP mode. 
Apr 26 01:43:29 www freshclam[3337]: Reading CVD header (main.cvd): 
Apr 26 01:44:49 www freshclam[3337]: Can't get information about db.cn.clamav.net: Name or service not known 
Apr 26 01:44:49 www freshclam[3337]: Can't read main.cvd header from db.cn.clamav.net (IP: ) 
Apr 26 01:44:49 www freshclam[3337]: Trying again in 5 secs... 
Apr 26 01:44:54 www freshclam[3337]: ClamAV update process started at Sun Apr 26 01:44:54 2009 
Apr 26 01:45:34 www freshclam[3337]: Can't query current.cvd.clamav.net 
Apr 26 01:45:34 www freshclam[3337]: Invalid DNS reply. Falling back to HTTP mode. 
Apr 26 01:45:34 www freshclam[3337]: Reading CVD header (main.cvd): 
Apr 26 01:46:54 www freshclam[3337]: Can't get information about db.cn.clamav.net: Name or service not known 
Apr 26 01:46:54 www freshclam[3337]: Can't read main.cvd header from db.cn.clamav.net (IP: ) 
Apr 26 01:46:54 www freshclam[3337]: Giving up on db.cn.clamav.net... 
Apr 26 01:46:54 www freshclam[3337]: ClamAV update process started at Sun Apr 26 01:46:54 2009 
Apr 26 01:47:34 www freshclam[3337]: Can't query current.cvd.clamav.net 
Apr 26 01:47:34 www freshclam[3337]: Invalid DNS reply. Falling back to HTTP mode. 
Apr 26 01:47:34 www freshclam[3337]: Reading CVD header (main.cvd): 
Apr 26 01:48:54 www freshclam[3337]: Can't get information about db.local.clamav.net: Name or service not known 
Apr 26 01:48:54 www freshclam[3337]: Can't read main.cvd header from db.local.clamav.net (IP: ) 
Apr 26 01:48:54 www freshclam[3337]: Trying again in 5 secs... 
Apr 26 01:48:59 www freshclam[3337]: ClamAV update process started at Sun Apr 26 01:48:59 2009 
Apr 26 01:49:39 www freshclam[3337]: Can't query current.cvd.clamav.net 
Apr 26 01:49:39 www freshclam[3337]: Invalid DNS reply. Falling back to HTTP mode. 
Apr 26 01:49:39 www freshclam[3337]: Reading CVD header (main.cvd): 
Apr 26 01:50:59 www freshclam[3337]: Can't get information about db.local.clamav.net: Name or service not known 
Apr 26 01:50:59 www freshclam[3337]: Can't read main.cvd header from db.local.clamav.net (IP: ) 
Apr 26 01:50:59 www freshclam[3337]: Trying again in 5 secs... 
Apr 26 01:51:04 www freshclam[3337]: ClamAV update process started at Sun Apr 26 01:51:04 2009 
Apr 26 01:51:44 www freshclam[3337]: Can't query current.cvd.clamav.net 
Apr 26 01:51:44 www freshclam[3337]: Invalid DNS reply. Falling back to HTTP mode. 
Apr 26 01:51:44 www freshclam[3337]: Reading CVD header (main.cvd): 
Apr 26 01:53:04 www freshclam[3337]: Can't get information about db.local.clamav.net: Name or service not known 
Apr 26 01:53:04 www freshclam[3337]: Can't read main.cvd header from db.local.clamav.net (IP: ) 
Apr 26 01:53:04 www freshclam[3337]: Giving up on db.local.clamav.net... 
Apr 26 01:53:04 www freshclam[3337]: Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check http://www.clamav.net/support/mirror-problem for possible reasons. 
Apr 26 01:53:04 www freshclam[3337]: -------------------------------------- 
Apr 26 02:45:45 www freshclam[3830]: ClamAV update process started at Sun Apr 26 02:45:45 2009 
Apr 26 02:45:45 www freshclam[3830]: main.cvd is up to date (version: 50, sigs: 500667, f-level: 38, builder: sven) 
Apr 26 02:45:45 www freshclam[3830]: getfile: daily-9214.cdiff not found on remote server (IP: 61.177.194.226) 
Apr 26 02:45:45 www freshclam[3830]: getpatch: Can't download daily-9214.cdiff from db.cn.clamav.net 
Apr 26 02:45:45 www freshclam[3830]: getfile: daily-9214.cdiff not found on remote server (IP: 61.129.251.119) 
Apr 26 02:45:45 www freshclam[3830]: getpatch: Can't download daily-9214.cdiff from db.cn.clamav.net 
Apr 26 02:45:51 www freshclam[3830]: Trying host db.cn.clamav.net (58.221.253.170)... 
Apr 26 02:45:51 www freshclam[3830]: connect_error: getsockopt(SO_ERROR): fd=5 error=111: Connection refused 
Apr 26 02:45:51 www freshclam[3830]: Can't connect to port 80 of host db.cn.clamav.net (IP: 58.221.253.170) 
Apr 26 02:45:51 www freshclam[3830]: Trying host db.cn.clamav.net (221.6.197.162)... 
Apr 26 02:46:21 www freshclam[3830]: nonblock_connect: connect timing out (30 secs) 
Apr 26 02:46:21 www freshclam[3830]: Can't connect to port 80 of host db.cn.clamav.net (IP: 221.6.197.162) 
Apr 26 02:46:21 www freshclam[3830]: getpatch: Can't download daily-9214.cdiff from db.cn.clamav.net 
Apr 26 02:46:21 www freshclam[3830]: Incremental update failed, trying to download daily.cvd 
Apr 26 02:46:21 www freshclam[3830]: Trying host db.cn.clamav.net (58.221.253.170)... 
Apr 26 02:46:21 www freshclam[3830]: connect_error: getsockopt(SO_ERROR): fd=5 error=111: Connection refused 
Apr 26 02:46:21 www freshclam[3830]: Can't connect to port 80 of host db.cn.clamav.net (IP: 58.221.253.170) 
Apr 26 02:46:21 www freshclam[3830]: Trying host db.cn.clamav.net (61.177.194.226)... 
Apr 26 02:46:48 www freshclam[3830]: Downloading daily.cvd [100%] 
Apr 26 02:46:48 www freshclam[3830]: daily.cvd updated (version: 9289, sigs: 45615, f-level: 42, builder: acab) 
Apr 26 02:46:48 www freshclam[3830]: Database updated (546282 signatures) from db.cn.clamav.net (IP: 61.177.194.226) 
Apr 26 02:46:48 www freshclam[3830]: Clamd was NOT notified: Can't connect to clamd through /tmp/clamd.socket 
Apr 26 02:46:48 www logrotate: ALERT exited abnormally with [1]
Apr 26 04:02:01 www freshclam[23952]: ClamAV update process started at Sun Apr 26 04:02:01 2009 
Apr 26 04:02:01 www freshclam[23952]: main.cvd is up to date (version: 50, sigs: 500667, f-level: 38, builder: sven) 
Apr 26 04:02:01 www freshclam[23952]: daily.cvd is up to date (version: 9289, sigs: 45615, f-level: 42, builder: acab) 
Apr 26 04:02:01 www logrotate: ALERT exited abnormally with [1]

回复: 安装iRedMail无法正常工作

maillog 反复出现以下内容:

 

Apr 26 12:48:57 www postfix/pickup[15232]: warning: connect #1 to subsystem public/cleanup: Connection refused
Apr 26 12:49:07 www postfix/pickup[15232]: warning: connect #2 to subsystem public/cleanup: Connection refused
Apr 26 12:49:17 www postfix/pickup[15232]: warning: connect #3 to subsystem public/cleanup: Connection refused
Apr 26 12:49:27 www postfix/pickup[15232]: warning: connect #4 to subsystem public/cleanup: Connection refused
Apr 26 12:49:37 www postfix/pickup[15232]: warning: connect #5 to subsystem public/cleanup: Connection refused
Apr 26 12:49:47 www postfix/pickup[15232]: warning: connect #6 to subsystem public/cleanup: Connection refused
Apr 26 12:49:57 www postfix/pickup[15232]: warning: connect #7 to subsystem public/cleanup: Connection refused
Apr 26 12:50:07 www postfix/pickup[15232]: warning: connect #8 to subsystem public/cleanup: Connection refused
Apr 26 12:50:17 www postfix/pickup[15232]: warning: connect #9 to subsystem public/cleanup: Connection refused
Apr 26 12:50:27 www postfix/pickup[15232]: warning: connect #10 to subsystem public/cleanup: Connection refused
Apr 26 12:50:37 www postfix/pickup[15232]: fatal: connect #11 to subsystem public/cleanup: Connection refused
Apr 26 12:50:38 www postfix/master[3263]: warning: process /usr/libexec/postfix/pickup pid 15232 exit status 1
Apr 26 12:50:38 www postfix/master[3263]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling