bianbian coding life

便便代码人生: 关注技术, 翻译文档, 偶尔动动手

bianbian.org

[原] qmail打了smtpd-auth补丁后454 oops, unable to write pipe and I can’t auth

Posted by bianbian on 2008-01-03 04:22


本文Tags: ,

qmail打了smtpd-auth补丁后454 oops, unable to write pipe and I can’t auth 的解决:

我打的补丁是qmail-smtpd-auth-043_tgz.bin,google了N久也没找到好办法。幸好我备份了一个qmail-smtpd.c,对比打过补丁后的qmail-smptd.c,发现传入参数处理被改变了,不需要加域名。解决方法就是把 smtpd的run里:
/var/qmail/bin/qmail-smtpd domain.com /home/vpopmail/bin/vchkpw /bin/true 2>&1
的domain.com去掉,即:
/var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true 2>&1

网上还有盛传的一篇文章说的是用户和组设置的问题:
我估计是针对qmail-smtpd-auth-0.31的补丁版本的。
http://blog.5ilinux.com/archives/2006/04/qmailerror.html

454 oops, unable to write pipe and I can’t auth (#4.3.0)

这个错误是在你打了smtp auth的补丁之后,却发现不能正常auth,输入了正确的用户名密码还是提示不正确。可以通过下面的命令来测试。

[root@caph qmail-smtpd]# telnet localhost 25
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
220 xxx.com ESMTP
ehlo
250-xxx.com
250-PIPELINING
250-8BITMIME
250-SIZE 104857600
250 AUTH LOGIN PLAIN CRAM-MD5 //显示这个通常表示你已经打好了补丁,不过这个是可以通过修改qmail-smtp.c文件来定制的。
auth login
334 VXNlcm5hbWU6
awefaq23rasdf
334 UGFzc3dvcmQ6
awefwaef
454 oops, unable to write pipe and I can’t auth (#4.3.0)
quit
221 xxx.com
Connection closed by foreign host.

出现了这种问题是因为smtp运行脚本没有设置正确的用户所致。将你的smtp的tcpserver命令的运行用户和组指定一下。

QMAILDUID=`id -u vpopmail`
QMAILDGID=`id -g vpopmail`

/usr/local/bin/tcpserver -v -H -R -l “$LOCAL” -x /etc/tcp.smtp.cdb -c “$MAXSMTPD”
-u “$QMAILDUID” -g “$QMAILDGID” 0 smtp /usr/local/bin/rblsmtpd -r relays.ordb.org
/var/qmail/bin/qmail-smtpd
/home/vpopmail/bin/vchkpw /bin/true /bin/cmd5checkpw /bin/true 2>&1

不需要修改~vpopmail/bin/vchkpw的属性。

qmail的作者真牛,觉得自己写得很好了,再也不更新。导致现在patch漫天飞啊,苦了俺们了。。。
http://www.shupp.org/toaster/?page=toc

标签: ,

遵守创作共用协议,转载请链接形式注明来自http://bianbian.org 做人要厚道

相关日志

Posted in Linux, Technology | No Comments »

[哎] 这个生日在装系统中度过

Posted by bianbian on 2007-12-30 01:16


本文Tags:

www.nju.org.cn
机器5年前的了,只有512M内存,跑了mail服务器,apache+php,resin两个,mysql两个,还有若干虚拟主机,似乎还有ftp
偶只能彻底无语,硬盘最后光荣挂了

昨天开始装系统,编内核,做了尽可能的优化
去掉apache,改成nginx
极度没有人品的php从php4.3到php5.2只有4.4.4能编译成factcgi,亏我当年喜欢用你,再一次无语
resin,mysql留一对(谁知道怎么比较方便地从mysql3导出数据到mysql5?)
除了java的动态内容丢给resin反向代理,其他都nginx来负责输出

最最最无语的是给我的数据盘是IDE的,文件系统是NTFS的,文件属性,软链接文件都gone了,恢复
出来的resin、mysql等等拷过去都不能直接用,还得查版本找下载重编译,,,,无语
为了NTFS再编译内核,挂了半天,usb还是1.0的,于是只好
挂到另一台usb2.0的机器上,sftp过去,还好有lftp,不然死掉的心都有
这时候就知道USB是多慢了,怎么不拿SCSI盘拿去给数据恢复的放数据,再一次无语
mail已经有80G数据了,估计还得倒一天

在暗无天日,机器轰鸣,缺氧辐射的电信机房待一天
你就会有想死的感觉

感谢nginx,ssh,lftp,fuze,ntfs-3g
没有你们就没有冲过重重难关的胜利,也坚定了我要做个GPLer的决心
最后感慨一句,好久没有这么无语了

晚饭请一伙人吃了哈根达斯的冰激凌蛋糕,总算有点生日的样子。5555,俺的血汗钱

标签:

遵守创作共用协议,转载请链接形式注明来自http://bianbian.org 做人要厚道

相关日志

Posted in Technology | 2 Comments »

[原] PHP bug or Slackware bug? –enable-fastcgi always failed.

Posted by bianbian on 2007-12-29 04:07


本文Tags: , , ,

On Slackware 12.0, compile php to fastcgi alwayes failed, only get CGI:

./configure --enable-fastcgi --enable-force-cgi-redirect

./php --version
PHP x.x.x (cgi)
....

so use spawn-fcgi (lighttpd) always get exit.

OH MY GOD…. I tried from php 4.3.0 - php 5.2.0, only php 4.4.4 can get fastcgi:

./php --version
PHP 4.4.4 (cgi-fcgi) (built: Dec 29 2007 03:55:36)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

why??????????????????????

标签: , , ,

遵守创作共用协议,转载请链接形式注明来自http://bianbian.org 做人要厚道

相关日志

Posted in Technology, php | No Comments »

[原] slackware 12.0 编译内核

Posted by bianbian on 2007-12-28 19:00


本文Tags: , ,

make menuconfig 遇到错误:

In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:32:20: curses.h: No such file or directory
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:130: error: syntax error before “use_colors”
scripts/lxdialog/dialog.h:130: warning: type defaults to `int’ in declaration of `use_colors’
scripts/lxdialog/dialog.h:130: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:131: error: syntax error before “use_shadow”
scripts/lxdialog/dialog.h:131: warning: type defaults to `int’ in declaration of `use_shadow’
scripts/lxdialog/dialog.h:131: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:133: error: syntax error before “attributes”
scripts/lxdialog/dialog.h:133: warning: type defaults to `int’ in declaration of `attributes’
scripts/lxdialog/dialog.h:133: warning: data definition has no type or storage class
scripts/lxdialog/dialog.h:146: error: syntax error before ‘*’ token
scripts/lxdialog/dialog.h:146: warning: function declaration isn’t a prototype
scripts/lxdialog/dialog.h:149: error: syntax error before ‘*’ token
scripts/lxdialog/dialog.h:149: warning: function declaration isn’t a prototype
scripts/lxdialog/dialog.h:150: error: syntax error before ‘*’ token
scripts/lxdialog/dialog.h:150: warning: function declaration isn’t a prototype
scripts/lxdialog/dialog.h:151: error: syntax error before ‘*’ token
scripts/lxdialog/dialog.h:152: warning: function declaration isn’t a prototype
scripts/lxdialog/dialog.h:153: error: syntax error before ‘*’ token
scripts/lxdialog/dialog.h:153: warning: function declaration isn’t a prototype
scripts/lxdialog/checklist.c:32: error: syntax error before ‘*’ token
scripts/lxdialog/checklist.c:34: warning: function declaration isn’t a prototype
scripts/lxdialog/checklist.c: In function `print_item’:
scripts/lxdialog/checklist.c:38: warning: implicit declaration of function `wattrset’
scripts/lxdialog/checklist.c:38: error: `win’ undeclared (first use in this function)
scripts/lxdialog/checklist.c:38: error: (Each undeclared identifier is reported only once
scripts/lxdialog/checklist.c:38: error: for each function it appears in.)
scripts/lxdialog/checklist.c:39: warning: implicit declaration of function `wmove’
scripts/lxdialog/checklist.c:39: error: `choice’ undeclared (first use in this function)
scripts/lxdialog/checklist.c:41: warning: implicit declaration of function `waddch’
……

解决:
安装的时候少了一个包, 找到光盘里的 /slackware/l/ncruses-5.6-i486-2.tgz
# installpkg ncruses-5.6-i486-2.tgz
即可

标签: , ,

遵守创作共用协议,转载请链接形式注明来自http://bianbian.org 做人要厚道

相关日志

Posted in Linux, Technology | No Comments »

[哎]腐败啊~~~~~~~~

Posted by bianbian on 2007-12-12 19:41


本文Tags:

未出帐单查询

交易日期 记账日期 交易摘要 交易地点 卡号末四位 人民币金额
(略去网络帐单)
2007-11-17 2007-11-18 横店集团东阳横店仓储购 CN 7866 ¥58.00
2007-11-23 2007-11-24 宜家 CN 7866 ¥96.20
2007-11-24 2007-11-25 南京必胜客金山店 CN 7866 ¥75.00
2007-11-28 2007-11-29 南京必胜客乐富来店 CN 7866 ¥121.55
2007-11-29 2007-11-30 南京渔人庄活鱼锅贴 CN 7998 ¥12.00
2007-11-29 2007-11-30 南京必胜客乐富来店 CN 7866 ¥100.00
2007-11-29 2007-11-30 苏果超市 CN 7998 ¥22.00
2007-12-01 2007-12-02 苏果超市 CN 7998 ¥9.60
2007-12-02 2007-12-03 南京必胜客金山店 CN 7998 ¥100.00
2007-12-04 2007-12-05 南京必胜客金山店 CN 7998 ¥25.00
2007-12-05 2007-12-06 苏果超市 CN 7998 ¥14.10
2007-12-06 2007-12-07 南京必胜客金山店 CN 7998 ¥40.00
2007-12-07 2007-12-08 南京大洋百货中山南路1 CN 7998 ¥32.00
2007-12-07 2007-12-08 南京大洋百货中山南路1 CN 7998 ¥82.00
2007-12-07 2007-12-08 南京必胜客大洋店 CN 7866 ¥242.40
2007-12-08 2007-12-09 苏果超市 CN 7998 ¥17.60
2007-12-09 2007-12-10 南京必胜客乐富来店 CN 7866 ¥150.00
2007-12-10 2007-12-11 南京食为先美食 CN 7866 ¥103.00

标签:

遵守创作共用协议,转载请链接形式注明来自http://bianbian.org 做人要厚道

相关日志

Posted in Uncategorized | 3 Comments »