3 月 302013
 

为Horde Webmail 1.2.11编译的PHP 5.2.17环境配置

horde-webmail-03

ss

horde-webmail-04

 

horde-webmail-05

修改Horde日志文件路径

horde-webmail-06

错误分析1 登录webmail页面反应缓慢且产生错误日志信息

Apr 08 13:54:18 HORDE [warning] [imp] Could not complete request. 
Reason Given: [AUTHENTICATIONFAILED] Authentication 
failed.: NO [pid 12547 on line 384 of "/usr/local/horde/imp/lib/IMAP/Client.php"]

修改dovecot验证方法配置

# vi /usr/local/dovecot/etc/dovecot/conf.d/10-auth.conf
auth_mechanisms = plain login

错误分析2 通过Horde Webmail发送邮件失败

horde-webmail-07

发送邮件失败时的Horde错误日志

Apr 01 11:27:25 HORDE [error] [imp] sendmail returned error code 127 
[pid 23321 on line 754 of "/usr/local/horde/imp/lib/Compose.php"]

发送邮件失败时的Apache错误日志

sh: /usr/lib/sendmail: 没有那个文件或目录

解决方法

[root@mail ~]# cd /usr/lib/
[root@mail lib]# ln -s /usr/sbin/sendmail sendmail

相关下载:(1) Horde Webmail 1.2.11

3 月 272013
 

Postfix日志(/var/log/maillog)显示有关防火墙设置的信息

 Mar 27 12:05:02 pfx postfix/smtp[7463]: AF67B212CA6: enabling PIX workarounds: 
 disable_esmtp delay_dotcrlf for mx1.hotmail.com[65.55.37.104]:25 

使用Telnet从本地LAN网络或本机连接服务器25端口时显示的正常信息

220 pfx.sample.com ESMTP Postfix (2.8.14)
EHLO test.sample.com
250-pfx.sample.om
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN CRAM-MD5
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

Continue reading »

3 月 252013
 

错误分析1

C:\Users\Administrator>telnet mail.linuxcache.net 110 
+OK Dovecot ready. 
user hello@mail.linuxcache.net 
+OK 
pass mypasswd 
-ERR [IN-USE] Internal error occurred. Refer to server log for more information. 

Mar 25 17:56:39 pop3(hello@mail.linuxcache.net): Error: user 
hello@mail.linuxcache.net: Initialization failed: Namespace '': 
mkdir(/var/vmail/mail.linuxcache.net/hello@mail.linuxcache.net) failed: 
Permission denied (euid=8(mail) egid=12(mail) missing +w perm: /var/vmail, 
dir owned by 0:0 mode=0755)

Continue reading »

3 月 202013
 

安装Dovecot服务

添加用户

[root@mail dovecot-2.1.15]# groupadd dovenull 
[root@mail dovecot-2.1.15]# useradd -M dovenull -s /sbin/nologin -g dovenull 
[root@mail dovecot-2.1.15]# groupadd dovecot 
[root@mail dovecot-2.1.15]# useradd -M dovecot -s /sbin/nologin -g dovecot

编译安装

[root@mail dovecot-2.1.15]# ./configure --prefix=/usr/local/dovecot --with-mysql 
[root@mail dovecot-2.1.15]# make 
[root@mail dovecot-2.1.15]# make install

Continue reading »

3 月 192013
 

安装Postfix

安装依赖包

[root@mail ~]# yum install db4-devel perl

创建用户和组

[root@mail ~]# useradd -M -s /sbin/nologin postfix
 [root@mail ~]# groupadd postdrop

编译安装

[root@mail postfix-2.8.14]# make -f Makefile.init makefiles \
 > 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql \
 > -DUSE_SASL_AUTH \
 > -DDEF_SERVER_SASL_TYPE=\"/usr/local/dovecot/include/dovecot\"' \
 > 'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm'
 [root@mail postfix-2.8.14]# make
 [root@mail postfix-2.8.14]# make install

Continue reading »

3 月 142013
 

安装Apache服务

安装perl(编译apache模块依赖)

[root@mail httpd-2.2.24]# yum install perl

添加用户

[root@mail httpd-2.2.24]# groupadd -r apache 
[root@mail httpd-2.2.24]# useradd -r -M -g apache apache

编译安装

[root@mail httpd-2.2.24]# ./configure --prefix=/usr/local/apache \
 > --enable-so --enable-rewrite 
[root@mail httpd-2.2.24]# make 
[root@mail httpd-2.2.24]# make install

Continue reading »