文章标签 ‘排错’
HOWTO check step-by-step a Layer 4 LVS-NAT setup for problems
Q.1 Can the real server ping client?
rs# ping -n client
A.1 Yes => good
A.2 No => bad
Some settings for the director:
Linux 2.2/2.4:
ipchains -A forward -s RIP -j MASQ
Linux 2.4:
iptables -t nat -A POSTROUTING -s RIP -j MASQUERADE
Q.2 Traceroute to client goes through LVS box and reaches the [...]
收邮件遇到错误。
/var/log/maillog中有如下错误:
temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied maildrop: Temporary authentication failure.
(编译 courier-authlib 必须要加入–with-mailuser,–with-mailgroup 这两项;否则在 postfix 收取邮件的时候就会出现错误,在 /var/log/maillog 日志文件中可以看到这个错误提示:
temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied maildrop: Temporary authentication failure. )
(如果是用 RPM 安装的话,就必须敲这条命令 chmod 755 /usr/local/courier-authlib/var/spool/authdaemon
该目录权限不正确修改,maildrop及postfix等将无法正确获取用户的信息及密码认证。)
重新编译加上–with-mailuser,–with-mailgroup 可是却总是卡住。提示
Cannot obtain information for groupid vgroupl: Success
明明我在参数中是指定的–with-mailgrop=vgroup啊
google找遍了也无解,于是建立一个vgroupl的group吧
#groupadd vgroupl
然后编辑/etc/group把vgroup的gid改为1000,然后再编译courier-authlib
神啊,这次过了,编译好了以后配置好authdaemonrc和authmysqlrc后
执行
/usr/local/courier-authlib/sbin/authtest -s login coolerfeng@gehoo.cn test
Authentication succeeded.
Authenticated: coolerfeng@gehoo.cn [...]
上次只是安装好了postfix,并没有进行测试,今天用公司的服务器进行了安装.发现问题还真不少.
这次安装中,又遇到了上次安装没有遇到的问题
安装MAILDROP时.输出信息没有”Courier Authentication Library extension enabled”这一行
仔细看了前后步骤,并没有问题,那为啥maildrop不能和sasl和courier-authlib结合呢?
注意源码安装的,将courierauthconfig 命令链接到/usr/bin里,假设装在:
/usr/local/courier-authlib/bin/courierauthconfig,则:
ln -s /usr/local/courier-authlib/bin/courierauthconfig /usr/bin/courierauthconfig
这样编译出来的maildrop才会ourier Authentication Library extension enabled.
maildrop -v
maildrop 2.0.2 Copyright 1998-2005 Double Precision, Inc.
GDBM extensions enabled.
Courier Authentication Library extension enabled.
Maildir quota extension enabled.
This program is distributed under the terms of the GNU General Public
License. See COPYING for additional information.
这里在网上找到了解决办法,就是做一个软连接.
发信和收信都遇到了很多问题,可以通过查看日志/var/log/maillog来逐个排除.
经过蜗牛大侠的顶力相助,在下的问题已解决,是因为没有aliases.db 所以postfix不收信,所以pop3也就没有信可以收了。cp /etc/postfix/aliases /etc
执行newaliases
再postfix reload就搞定了.再一次谢谢蜗牛大侠~~
如果没有newaliases需要安装sendmail
[Incompat 20051220] The Postfix-with-Cyrus-SASL build procedure has
changed. [...]
今天在家照老大的文章安装postfix,结果遇到不少麻烦,
现在一一指出。老大的文章参考这里[url]http://sery.blog.51cto.com/10037/45500[/url]
特别申明:如果你是老手,高手,可以略过以下内容,以下内容主要是为新手进行指点.
1。部分软件下载连接不对。官方网站也错了,不过不重要,大家都能自己找到对应的tar包的,部分指令也有错误,输入的时候要仔细,我偷懒,老复制粘贴,结果绕了很多弯路。
2。给sasl打补丁的时候,
2、安装和配置SASL.
(1)安装
需要执行patch -p1 < sasl.patch 再执行make和 make install
(2) 在mysql中创建postfix所需的数据库。
这一步需要先启动mysql,
/usr/local/mysql/bin/mysqld_safe –user=mysql &
要不然无法导入mysql数据库。
(3) 测试postfixadmin。先修改apache的配置文件/usr/local/apache/conf/httpd.conf,加入如下内容:
这里对apache的配置文件修改的不全。红色的东西不能少,否则apache报错。
<Directory “/var/www/postfixadmin”>本文出自 “风吹云动” 博客,请务必保留此出处http://coolerfeng.blog.51cto.com/133059/46073
Alias /postfixadmin /var/www/postfixadmin
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
AuthType Basic
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName “sery.mail Access”
AuthUserFile /usr/local/apache/conf/htpasswd
Require valid-user
</Directory>
4。安装postfixe,我在这里遇到了错误。
Please specify the final destination directory for installed Postfix
configuration files.
config_directory: [] /usr/local/postfixe/conf
bin/postconf: [...]
学习疯狂老头的blog([url]http://blog.redzone.com.cn[/url]安装extmail心得
原文链接,第一部分:[url]http://blog.redzone.com.cn/read.php/35.htm[/url]
第二部分[url]http://blog.redzone.com.cn/read.php/36.htm[/url]
第三部分[url]http://blog.redzone.com.cn/read.php/37.htm[/url]
照着疯狂老头的blog在CENTOS5上安装extmail,别的地方都一切正常.但是也出现了几个小问题.
第2部分里面编辑 authmysqlrc 文件:
MYSQL_SERVER localhost
MYSQL_USERNAME extmail
MYSQL_PASSWORD extmail
MYSQL_SOCKET /tmp/mysql.sock (注意这里哦!)
mysql的socket路径应该是/var/lib/mysql/mysql.sock
第3部分,maildrop 测试账号,疯狂老头的文章中说用test@extmail.org这个用户.但是没有这个用户,因此
用系统自带的postmaster@extmail.org测试通过
用老头的命令maildrop -V 10 -d postmaster@extmail.org会卡住.需要手动按ctrl+c结束.
也可以用echo test| maildrop -V 10 -d postmaster@extmail.org来测试.更加完整的过程.
如果出现认证失败maildrop: Temporary authentication failure..检查/var/log/maillog发现是无法连接
数据库
Jan 5 14:11:18 localhost authdaemond: received userid lookup request: postmaster@extmail.org
Jan 5 14:11:18 localhost authdaemond: authmysql: trying this module
Jan 5 14:11:18 localhost maildrop[30991]: Temporary authentication failure.
Jan 5 14:11:18 localhost authdaemond: failed to connect to mysql [...]
