主题: 关于无法访问postadmin的问题

前些时间花了一个星期终于把0.4版本的正常安装好,过程可以用痛苦来形容。现在用了一个下午来测试0.5.1时遇到了如下问题
我的环境是:
cent os 5.3 事先架好了lamp 再安装iredmail 0.5.1
服务器地址是:192.168.0.44  开放的端口有:80 20 21 443 25 465 110 995 143 993 389 636
现遇到两个问题:
1.访问http://192.168.0.44/mail/时,输入帐号密码,提示:连接服务器失败(帐号密码正确)
2.访问:http://192.168.0.44/postfixadmin时,提示:The requested URL /postfixadmin was not found on this server.
同时我也试了http://192.168.0.44/postfixadmin/index.phphttp://192.168.0.44/postfixadmin/login.php都提示:The requested URL /postfixadmin was not found on this server.


查看数据库有vmail这个数据库

maillog日志:
Nov  9 15:02:52 mail postfix/master[3222]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Nov  9 15:03:52 mail postfix/smtpd[5788]: fatal: chroot(/var/spool/postfix): Operation not permitted
Nov  9 15:03:53 mail postfix/master[3222]: warning: process /usr/libexec/postfix/smtpd pid 5788 exit status 1
Nov  9 15:03:53 mail postfix/master[3222]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Nov  9 15:04:53 mail postfix/smtpd[5819]: fatal: chroot(/var/spool/postfix): Operation not permitted
Nov  9 15:04:54 mail postfix/master[3222]: warning: process /usr/libexec/postfix/smtpd pid 5819 exit status 1
Nov  9 15:04:54 mail postfix/master[3222]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Nov  9 15:05:55 mail postfix/smtpd[5850]: fatal: chroot(/var/spool/postfix): Operation not permitted
Nov  9 15:05:56 mail postfix/master[3222]: warning: process /usr/libexec/postfix/smtpd pid 5850 exit status 1
Nov  9 15:05:56 mail postfix/master[3222]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Nov  9 15:06:56 mail postfix/smtpd[6088]: warning: SASL: Connect to dovecot-auth failed: Connection refused
Nov  9 15:06:56 mail postfix/smtpd[6088]: fatal: no SASL authentication mechanisms
Nov  9 15:06:57 mail postfix/master[3222]: warning: process /usr/libexec/postfix/smtpd pid 6088 exit status 1
Nov  9 15:06:57 mail postfix/master[3222]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Nov  9 15:10:50 mail roundcube: PHP Warning:  fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to 127.0.0.1:143 (鎷掔粷杩炴帴
) in /var/www/roundcubemail-0.2.1/program/lib/imap.inc on line 611
Nov  9 15:10:50 mail roundcube: [09-Nov-2009 15:10:50 +0800] IMAP Error: Could not connect to 127.0.0.1 at port 143: 鎷掔粷杩炴帴 (POST /mail/?_task=&_action=log
in)
Nov  9 15:11:05 mail postfix/postfix-script[6909]: stopping the Postfix mail system
Nov  9 15:11:05 mail postfix/master[3222]: terminating on signal 15
Nov  9 15:11:05 mail postfix/postfix-script[6966]: starting the Postfix mail system
Nov  9 15:11:06 mail postfix/master[6967]: daemon started -- version 0.5.1, configuration /etc/postfix
Nov  9 15:11:11 mail roundcube: PHP Warning:  fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to 127.0.0.1:143 (鎷掔粷杩炴帴
) in /var/www/roundcubemail-0.2.1/program/lib/imap.inc on line 611
Nov  9 15:11:11 mail roundcube: [09-Nov-2009 15:11:11 +0800] IMAP Error: Could not connect to 127.0.0.1 at port 143: 鎷掔粷杩炴帴 (POST /mail/?_task=&_action=log
in)
Nov  9 15:11:38 mail roundcube: PHP Warning:  fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to 127.0.0.1:143 (鎷掔粷杩炴帴

[ 本帖最后由 redhatlinux6 于 2009-11-9 15:56 编辑 ]

回复: 关于无法访问postadmin的问题

为何要自己先架设 LAMP 然后再装 iRedMail?

回复: 关于无法访问postadmin的问题

因为mail服务和web服务要放在同一台服务器上,难道iRedmail的安装还跟安装顺序有关?正确的安装顺序应该是怎么安装的?

回复: 关于无法访问postadmin的问题

iRedMail 会帮你安装 AMP 的啊

回复: 关于无法访问postadmin的问题

经过2个小时的琢磨,现已成功安装上
按管理员所说的,也一样会出现上面所说的问题,postadmin还是一样访问不了,提示还是和上面的一样

下面我说下我的步骤:
1.先安装AMP环境,AMP环境工作正常,会出现postadmin还是访问不了,提示:The requested URL /postfixadmin was not found on this server.你只需把postfixadmin-2.2.1.1复制到/var/www/html/目录下重命名为:postfixadmin并给755的限,再访问就可以访问了
2.这一种方法,按管理员所以,先不要架AMP环境,在这种情况下,会出现在访问phpmyadmin postfixadmin时提示:The requested URL /postfixadmin was not found on this server.,页面不存在。解决方法是把phpmyadmin postfixadmin目录都复制到/var/www/html/目录下,关把权限修改成755,解决


个人感觉:
1.0.5.1比0.4版,webmail漂亮些,而且访问速度更快,多了一种webmail访问的方式(squirrel)
2.安装起来比0.4版更容易

个人推荐安装方式:
1.熟悉AMP环境的,选择先安装AMP环境,再安装Iredmail,这样可以选择安装高版本的apache php mysql,因为iredmail里面安装的版本相对较底
2.新手,直接安装iredamail,这样虽然amp版本较底,但可以省去很多配制的麻烦

回复: 关于无法访问postadmin的问题

还有一种方法是不用复制文件,而是更改apache配制文件,虚拟机里面的路径解析服务(一台服务器里面放多个网站时会用到),加一条路径解析,当访问 http://域名/postfixadmin时,/var/www/postfixadmin