Linux安装Extmail1.6

系统环境

Linux hzbenhe 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_64 GNU/Linux

Red Hat Enterprise Linux Server release 6.2 (Tikanga)

安装过程
根据http://wiki.extmail.org/extmail_solution_for_centos-5安装就可以
yum源:使用EMOS1.6.ISO本地源

安装过程整体来说还是比较简单顺利的。
目前已安装到《拾壹、配置Courier-IMAP》web和客户端邮件都可以正常收发

暂时没有配置安装垃圾邮件过滤。

安装问题
1.安装ExtMail yum install extsuite-webmail时候perl版本哟问题,我本来系统安装的比iso里的perl和要求的版本高,所以我就把系统里的先删了,安装了iso里的perl
2.同意安装cyrus-sasl时候有个cyrus-sasl-lib版本系统已有的比原来的高。
先把原来的删了rpm -e cyrus-sasl-lib,然后在EMOS包里找到cyrus-sasl-lib的rpm包安装上再yum install cyrus-sasl就可以搞定
3.telnet localhost 25错误如下

Oct 31 18:49:40 AY130822170240945887Z postfix/smtpd[10456]: connect from localhost[127.0.0.1]
Oct 31 18:49:40 AY130822170240945887Z postfix/smtpd[10456]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
Oct 31 18:49:40 AY130822170240945887Z postfix/smtpd[10456]: fatal: no SASL authentication mechanisms
Oct 31 18:49:41 AY130822170240945887Z postfix/master[10443]: warning: process /usr/libexec/postfix/smtpd pid 10456 exit status 1
Oct 31 18:49:41 AY130822170240945887Z postfix/master[10443]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

安装了cyrus-sasl-plain后就ok

4.Centos5.4安装Emos1.5时候根据文档安装下来没什么大的问题。但是在测试收发邮件时候发现只能发送,不能接受,同域下的可以正常收发。
后来用了客户端,发现不能连上pop3和smtp,这个是应为iptables原因,吧25 110加上白名单就ok
但是用客户端只能拉取服务器邮件不能发送。
正纠结了
后来在远程telnet 25不通,110通,netstat查看是已经开启了25端口,此时一位是阿里云服务器屏蔽了25端口。继续找原因
在服务器端telnet localhost 25通,telnet mail.xxx.com 不通,域名是可以正确解析到本机ip的
这样问题很明显了,是telnet域有问题。
后来netstat发现25端口在监听了127.0.0.1的,而110监听0.0.0.0也就是所有的来路。这就难怪了
好,找到了问题所在。
解决:
修改main.cf
inet_interfaces = localhost 改为 inet_interfaces = all
重启postfix
然后测试下,OK了web,和客户端都能正常收发了。

这个inet_interfaces配置在EMOS1.6中已经取消。

Linux安装Extmail1.5

Extmail1.5对应RH5.X
Extmail1.6对应RH6.X

系统环境

Linux hzbenhe 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_64 GNU/Linux

Red Hat Enterprise Linux Server release 5.6 (Tikanga)

安装过程
根据http://wiki.extmail.org/extmail_solution_for_centos-5安装就可以
yum源:http://mirror.extmail.org/yum/emos/1.5/os/$basearch/

安装问题
1.安装《拾壹、配置courier-imap]》时候======================
yum install courier-imap

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package courier-imap.x86_64 0:4.6.0-1 set to be updated
--> Processing Dependency: courier-authlib-devel >= 0.60.6.20080629 for package: courier-imap
--> Processing Dependency: libcourierauthsasl.so()(64bit) for package: courier-imap
--> Processing Dependency: libcourierauth.so()(64bit) for package: courier-imap
--> Finished Dependency Resolution
courier-imap-4.6.0-1.x86_64 from EMOS-base has depsolving problems
  --> Missing Dependency: libcourierauth.so()(64bit) is needed by package courier-imap-4.6.0-1.x86_64 (EMOS-base)
courier-imap-4.6.0-1.x86_64 from EMOS-base has depsolving problems
  --> Missing Dependency: courier-authlib-devel >= 0.60.6.20080629 is needed by package courier-imap-4.6.0-1.x86_64 (EMOS-base)
courier-imap-4.6.0-1.x86_64 from EMOS-base has depsolving problems
  --> Missing Dependency: libcourierauthsasl.so()(64bit) is needed by package courier-imap-4.6.0-1.x86_64 (EMOS-base)
Error: Missing Dependency: libcourierauth.so()(64bit) is needed by package courier-imap-4.6.0-1.x86_64 (EMOS-base)
Error: Missing Dependency: libcourierauthsasl.so()(64bit) is needed by package courier-imap-4.6.0-1.x86_64 (EMOS-base)
Error: Missing Dependency: courier-authlib-devel >= 0.60.6.20080629 is needed by package courier-imap-4.6.0-1.x86_64 (EMOS-base)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

解决:

wget http://shupp.org/software/courier-imap-4.1.2.tar.bz2
tar -jxvf courier-imap-4.1.2.tar.bz2 
cd courier-imap-4.1.2 
./configure --prefix=/usr/local/courier-imap --with-redhat --enable-unicode --disable-root-check --with-trashquota --without-ipv6 CPPFLAGS='-I/usr/courier-authlib/include' COURIERAUTHCONFIG='/usr/local/bin/courierauthconfig' CPPFLAGS='-I/usr/courier-authlib/include' 

make 
make install 
cp /usr/local/courier-imap/etc/imapd.dist /usr/local/courier-imap/etc/imapd 
cp /usr/local/courier-imap/etc/imapd-ssl.dist /usr/local/courier-imap/etc/imapd-ssl 
cp /usr/local/courier-imap/etc/pop3d.dist /usr/local/courier-imap/etc/pop3d 
cp /usr/local/courier-imap/etc/pop3d-ssl.dist /usr/local/courier-imap/etc/pop3d-ssl 

配置Courier-IMAP,为用户提供pop3服务:

vi /usr/local/courier-imap/etc/pop3d 
POP3DSTART=yes 

注:如果你想为用户提供IMAP服务,可以在”/usr/local/courier-imap/etc/imapd”文件中设置”IMAPDSTART=yes”。
设置courier-imap开机自动运行:

cp courier-imap.sysvinit /etc/rc.d/init.d/imapd 
chmod 755 /etc/rc.d/init.d/imapd 
chkconfig --add imapd 
service imapd start 

1.telnet localhost 110======================
ERR Temporary problem, please try again later
maillog日志
Oct 30 16:31:44 toc-server pop3d: Connection, ip=[127.0.0.1]
Oct 30 16:32:09 toc-server pop3d: authdaemon: s_connect() failed: No such file or directory
Oct 30 16:32:09 toc-server pop3d: LOGIN FAILED, user=test@extmail.org, ip=[127.0.0.1]
Oct 30 16:32:09 toc-server pop3d: authentication error: No such file or directory

解决:

这问题一直没搞定,最后还是放弃了在RH5.6上安装EMOS1.5