百思不得其解,实在我的IMAP工作是正常的,而且我用thunderbird也可以连接上
监看/var/log/maillog时发现,squirrelmail在登陆时,log并不记录
临看/var/log/message时,发现这个时候写入了这么一条记录
kernel: audit(1208928634.263:213): avc:  denied  { name_connect } for  pid=12046 comm="httpd" dest=143 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:pop_port_t:s0 tclass=tcp_socket
可见这个登陆信息并没有提交到IMAP。
于是squirrelmail 13  Permission denied
找到这么一解决方法:
原来是要输入这么一条命令:
setsebool -P httpd_can_network_connect=1
原来又是SELinux的权限问题,现在的SELinux异常强大啊,以后,没事还是学学SELinux。
另外,还是一句老话,建议所有的新手在学习还是禁用iptables与SELinux,减少一个故障点。不过,好像chkconfig iptables off 这个命令在CentOS或者RHEL 5.1里面都不生效了,每次我都要把iptables remove才会有效果。
                  	
				
