policyd已经是远程的数据库ip了。
后来才发现chdir()是空的,在执行iredmail.sh的时候没有创建 /home/policyd目录 。创建后已经启动了。
很奇怪的是怎么会没有创建该目录呢?我在虚拟机上都是自动创建的。
在执行iredmail.sh以前我关闭了selinux、以及把php、httpd都卸载了,执行clear脚本也都选Y了。.
另外, /var/html/awstats/awstats.pl 文件也没有创建。
支持 Red Hat Enterprise Linux, CentOS, Scientific Linux, Debian, Ubuntu, FreeBSD, OpenBSD
您尚未登陆。 请选择登陆或是注册一个新账号。
iRedMail 开源邮件服务解决方案 » 由 luoxiangru 发表的文章
页次 1
policyd已经是远程的数据库ip了。
后来才发现chdir()是空的,在执行iredmail.sh的时候没有创建 /home/policyd目录 。创建后已经启动了。
很奇怪的是怎么会没有创建该目录呢?我在虚拟机上都是自动创建的。
在执行iredmail.sh以前我关闭了selinux、以及把php、httpd都卸载了,执行clear脚本也都选Y了。.
另外, /var/html/awstats/awstats.pl 文件也没有创建。
10031 policyd 服务起不来。
/etc/init.d/policyd restart 每回都是报一个致命错误,然后显示启动成功。
mailog:
Sep 4 20:50:20 mail postfix/smtpd[28117]: connect from mail.xcxxc.cn[127.0.0.1]
Sep 4 20:50:20 mail postfix/smtpd[28117]: EAD63C47906A: client=mail.xcxxc.cn[127.0.0.1], sasl_method=LOGIN, sasl_username=luoxiangru@zzb.zh
Sep 4 20:50:21 mail postfix/cleanup[28121]: EAD63C47906A: message-id=<4202ede6fabd35d881a24ef29c6e1f54@zzb.zh>
Sep 4 20:50:21 mail postfix/qmgr[28048]: EAD63C47906A: from=<luoxiangru@zzb.zh>, size=553, nrcpt=1 (queue active)
Sep 4 20:50:21 mail roundcube: User luoxiangru@zzb.zh [21.99.0.67]; Message for www@zzb.zh; 250: 2.0.0 Ok: queued as EAD63C47906A
Sep 4 20:50:21 mail postfix/smtpd[28117]: disconnect from mail.xcxxc.cn[127.0.0.1]
Sep 4 20:50:21 mail postfix/smtpd[28125]: connect from mail.xcxxc.cn[127.0.0.1]
Sep 4 20:50:21 mail postfix/smtpd[28125]: 23C27C479071: client=mail.xcxxc.cn[127.0.0.1]
Sep 4 20:50:21 mail postfix/cleanup[28121]: 23C27C479071: message-id=<4202ede6fabd35d881a24ef29c6e1f54@zzb.zh>
Sep 4 20:50:21 mail postfix/smtpd[28125]: disconnect from mail.xcxxc.cn[127.0.0.1]
Sep 4 20:50:21 mail postfix/qmgr[28048]: 23C27C479071: from=<luoxiangru@zzb.zh>, size=1465, nrcpt=1 (queue active)
Sep 4 20:50:21 mail amavis[27977]: (27977-01) Passed CLEAN, MYNETS/MYUSERS LOCAL [127.0.0.1] [127.0.0.1] <luoxiangru@zzb.zh> -> <www@zzb.zh>, Message-ID: <4202ede6fabd35d881a24ef29c6e1f54@zzb.zh>, mail_id: 4JvNSvWLdIrJ, Hits: -4.059, size: 553, queued_as: 23C27C479071, 150 ms
Sep 4 20:50:21 mail postfix/pipe[28126]: 23C27C479071: to=<www@zzb.zh>, relay=dovecot, delay=0.01, delays=0/0/0/0.01, dsn=4.3.0, status=deferred (temporary failure)
Sep 4 20:50:21 mail postfix/smtp[28122]: EAD63C47906A: to=<www@zzb.zh>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.22, delays=0.06/0/0.01/0.15, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=27977-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 23C27C479071)
Sep 4 20:50:21 mail postfix/qmgr[28048]: EAD63C47906A: removed
Sep 04 23:24:56 managesieve-login: Fatal: Dovecot version mismatch: Master is v1.2.17, login is v1.2.16 (if you don't care, set version_ignore=yes)
Sep 04 23:24:56 managesieve-login: Fatal: Dovecot version mismatch: Master is v1.2.17, login is v1.2.16 (if you don't care, set version_ignore=yes)
Sep 04 23:24:56 managesieve-login: Fatal: Dovecot version mismatch: Master is v1.2.17, login is v1.2.16 (if you don't care, set version_ignore=yes)
Sep 04 23:24:56 dovecot: Info: Created login processes successfully, unstalling
Sep 04 23:24:57 managesieve-login: Fatal: Dovecot version mismatch: Master is v1.2.17, login is v1.2.16 (if you don't care, set version_ignore=yes)
Sep 04 23:24:57 managesieve-login: Fatal: Dovecot version mismatch: Master is v1.2.17, login is v1.2.16 (if you don't care, set version_ignore=yes)
Sep 04 23:24:57 dovecot: Error: Temporary failure in creating login processes, slowing down for now
Sep 04 23:24:57 managesieve-login: Fatal: Dovecot version mismatch: Master is v1.2.17, login is v1.2.16 (if you don't care, set version_ignore=yes)
Sep 04 23:25:41 imap-login: Info: Login: user=<gyj@zzb.zh>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Sep 04 23:25:41 IMAP(gyj@zzb.zh): Info: Disconnected: Logged out bytes=233/991
netstat -tnpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 4960/hpiod
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 4313/imap-login
tcp 0 0 127.0.0.1:7777 0.0.0.0:* LISTEN 5891/python
tcp 0 0 0.0.0.0:962 0.0.0.0:* LISTEN 4596/rpc.statd
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 29225/dovecot
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 30249/amavisd (mast
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 29308/master
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 5087/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 29308/master
tcp 0 0 127.0.0.1:9998 0.0.0.0:* LISTEN 30249/amavisd (mast
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 29225/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 4313/imap-login
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 4505/portmap
tcp 0 0 127.0.0.1:2000 0.0.0.0:* LISTEN 29225/dovecot
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 29308/master
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 4976/cupsd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 29308/master
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 4966/python
tcp 0 0 :::80 :::* LISTEN 29406/httpd
tcp 0 0 :::22 :::* LISTEN 4518/sshd
tcp 0 0 :::443 :::* LISTEN 29406/httpd
删除php、apache及执行 clear_iredmail.sh 后。又装了一遍,能发邮件了。但是收不到邮件。
#pamassassin -d --lint
[26690] warn: config: failed to parse line, skipping, in "/etc/mail/spamassassin/local.cf": whitelist_from_dkim *@gmail.com *@paypal.com
[26690] warn: lint: 1 issues detected, please rerun with debug enabled for more information
#amavisd debug
Sep 3 20:22:52.273 mail.zzb.zh /usr/sbin/amavisd[5246]: Net::Server: Starting "1" children
Sep 3 20:22:52.279 mail.zzb.zh /usr/sbin/amavisd[5518]: (!)Net::Server: 2011/09/03-20:22:52 Couldn't open lock file "/var/amavis/amavisd.lock"[Permission denied]\n at line 203 in file /usr/lib/perl5/vendor_perl/5.8.8/Net/Server/PreForkSimple.pm
Sep 3 20:22:52.279 mail.zzb.zh /usr/sbin/amavisd[5518]: Net::Server: 2011/09/03-20:22:52 Server closing!
Sep 3 20:22:52.283 mail.zzb.zh /usr/sbin/amavisd[5246]: Net::Server: Starting "1" children
比对了一下成功安装的虚拟机,几个端口没有监听。
10024 amavisd
9998 amavisd
10031 policyd
722 rpc.slatd
# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 4989/hpiod
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 4642/imap-login
tcp 0 0 127.0.0.1:7777 0.0.0.0:* LISTEN 25145/python
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 13350/dovecot
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 20239/master
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 24050/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 20239/master
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 13350/dovecot
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 30844/spamd.pid
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 4642/imap-login
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 4575/portmap
tcp 0 0 127.0.0.1:2000 0.0.0.0:* LISTEN 13350/dovecot
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 20239/master
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 5016/cupsd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 20239/master
tcp 0 0 0.0.0.0:1019 0.0.0.0:* LISTEN 4653/rpc.statd
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 4994/python
tcp 0 0 :::80 :::* LISTEN 23346/httpd
tcp 0 0 :::22 :::* LISTEN 5007/sshd
tcp 0 0 :::443 :::* LISTEN 23346/httpd
#rpm -qa | grep 'perl'
perl-NetAddr-IP-4.007-1.el5.rf
perl-URI-1.35-3
perl-IO-Compress-2.030-2.el5.rf
perl-Convert-ASN1-0.20-1.1
perl-Convert-TNEF-0.17-3.2.el5.rf
perl-Sys-Hostname-Long-1.4-1.2.el5.rf
shorewall-perl-4.0.15-1.el5
perl-Geo-IP-1.38-1.el5.rf
perl-DBI-1.52-2.el5
perl-XML-NamespaceSupport-1.09-1.2.1
perl-libwww-perl-5.805-1.1.1
perl-BerkeleyDB-0.36-1.el5.rf
perl-IO-Zlib-1.04-4.2.1
perl-5.8.8-27.el5
perl-String-CRC32-1.4-2.fc6
newt-perl-1.08-9.2.2
perl-Crypt-OpenSSL-RSA-0.25-1.el5.rf
perl-XML-SAX-0.14-8
perl-TimeDate-1.16-5.el5
perl-Convert-UUlib-1.11-1.ired
perl-Compress-Raw-Zlib-2.030-1.el5.rf
perl-IO-Socket-SSL-1.01-1.fc6
perl-Net-DNS-0.59-3.el5
perl-Convert-BinHex-1.119-2.2.el5.rf
perl-Net-Server-0.97-1.el5.rf
perl-Mail-SPF-2.007-1.el5
perl-Archive-Tar-1.30-1.fc6
perl-Digest-SHA1-2.11-1.2.1
perl-MailTools-2.04-1.el5.rf
perl-DBD-mysql-4.008-1.el5.rf
perl-Net-SSLeay-1.30-4.fc6
perl-Socket6-0.19-3.fc6
perl-Digest-HMAC-1.01-15
perl-Compress-Raw-Bzip2-2.031-1.el5.rf
perl-HTML-Tagset-3.10-2.1.1
perl-MIME-tools-5.420-3.el5
perl-IO-Socket-INET6-2.51-2.fc6
perl-Mail-SPF-Query-1.999.1-3.el5
perl-Digest-SHA-5.47-1.el5.rf
perl-Net-CIDR-Lite-0.20-1.2.el5.rf
perl-HTML-Parser-3.55-1.fc6
perl-Unix-Syslog-1.0-1.el5.rf
perl-Archive-Zip-1.26-1.el5.rf
perl-BSD-Resource-1.28-1.fc6.1
perl-version-0.74-1.el5.rf
perl-IO-stringy-2.110-1.2.el5.rf
perl-Net-IP-1.25-2.fc6
perl-Error-0.17015-1.el5.rf
perl-Mail-DKIM-0.36-1.ired
perl-LDAP-0.33-3.fc6
[root@mail config]# tail -f /var/log/maillog
Sep 2 18:50:50 mail amavis[5464]: (!)Net::Server: 2011/09/02-18:50:50 Couldn't open lock file "/var/amavis/amavisd.lock"[Permission denied]\n at line 203 in file /usr/lib/perl5/vendor_perl/5.8.8/Net/Server/PreForkSimple.pm
Sep 2 18:50:50 mail amavis[5465]: (!)Net::Server: 2011/09/02-18:50:50 Couldn't open lock file "/var/amavis/amavisd.lock"[Permission denied]\n at line 203 in file /usr/lib/perl5/vendor_perl/5.8.8/Net/Server/PreForkSimple.pm
Sep 2 18:50:50 mail amavis[5466]: (!)Net::Server: 2011/09/02-18:50:50 Couldn't open lock file "/var/amavis/amavisd.lock"[Permission denied]\n at line 203 in file /usr/lib/perl5/vendor_perl/5.8.8/Net/Server/PreForkSimple.pm
iredmail放的独立数据库。配置了/config下得mysql为远程数据库 ,apache_php 的/var/www 为 /data/web , $server_dir/html 设为 $server_dir/mail 。安装完后相关的数据表没有建立,我在虚拟机上先模拟了一次安装,把那些库文件导入到 远程数据库服务器上。现在可以登录,发送邮件的时候发出 SMTP 错误(-1) :连接服务器失败 的错误。说明:我在本地也是用另一台虚拟机做数据库服务器的。安装后正常发送邮件,不知道这为什么不行******************************************[root@mail config]# tail -f /var/log/maillog/usr/lib/perl5/vendor_perl/5.8.8/Net/Server/PreForkSimple.pmSep 2 18:50:50 mail amavis[5459]: (!)Net::Server: 2011/09/02-18:50:50 Couldn't open lock file
页次 1
iRedMail 开源邮件服务解决方案 » 由 luoxiangru 发表的文章
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2010 PunBB.
页面生成时间 0.004 秒, 共执行查询 70 条