linux下qmail配置问题集锦

1、指定的内存使用限度是可以依赖于你是用的的硬件平台和操作系统作适当提高的. 当用telnet连接到110端口失败或者POP3连接以难以理解的方式失败情况下, 或者你查看到如下错误信息: tcpserver: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory 考虑是否softlimit命令引起

可能需要根据你的操作系统和硬件平台的不同, 调整softlimit命令的的内存限制参数.

即,/var/qmail/supervise/qmail-smtpd/run 文件中的2000000加大到3000000或5000000或其他

#!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` LOCAL=`head -1 /var/qmail/control/me` if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in echo /var/qmail/supervise/qmail-smtpd/run exit 1 fi if [ ! -f /var/qmail/control/rcpthosts ]; then echo "No /var/qmail/control/rcpthosts!" echo "Refusing to start SMTP listener because it'll create an open relay" exit 1 fi exec /usr/local/bin/softlimit -m 2000000 \ /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1

2、Sorry,_no_mailbox_here_by_that_name I added | /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox to /var/qmail/control/defaultdelivery. (don't know if this helped or is even necessary)

Then deleted the contents of /var/qmail/control/locals restarted svscan and everything began to work again.

3、deferral: Uh-oh:_.qmail_has_prog_delivery_but_has_x_bit_set._(#4.7.0) cd /home/vpopmail/domains chmod 700 yuming.cn cd yuming.cn chmod -R 777 * chmod 600 .qmail-default

4、vpopmail与mysql断开连接 authvchkpw: trying this module vmysql: sql error[3]: MySQL server has gone away vchkpw: user does not exist authvchkpw: REJECT - try next module

步骤1:加大mysql的wait_time和interactive_timeout(两者保持一致),如: 进入mysql set wait_time=604800 set interactive_timeout=604800

步骤2: 加入vpopmail的补丁vmysql.patch: diff -u vpopmail-5.4.13.org/vmysql.c vpopmail-5.4.13/vmysql.c --- vpopmail-5.4.13.org/vmysql.c 2004-12-16 23:57:34.000000000 +0800 +++ vpopmail-5.4.13/vmysql.c 2006-03-31 09:42:45.000000000 +0800 @@ -188,7 +188,7 @@ { unsigned int timeout = 2;

- if ( update_open != 0 ) return(0); + if ( update_open && (mysql_ping(&mysql_update)==0) ) return(0); update_open = 1;

verrori = load_connection_info(); @@ -238,7 +238,7 @@ int vauth_open_read() { /* if we are already connected, just return */ - if ( read_open != 0 ) return(0); + if ( read_open && (mysql_ping(&mysql_read)==0) ) return(0); read_open = 1;

/* connect to mysql and set the database */

5、courier-authlib模块自动启动 cp courier-authlib.sysvinit /etc/rc.d/init.d/courier-authlib注意要在courier-authlib安装目录 chmod 755 /etc/rc.d/init.d/courier-authlib /sbin/chkconfig --level 0123456 courier-authlib on

6、courier-imap模块自动启动 cp courier-imap.sysvinit /etc/rc.d/init.d/courier-imap chmod 755 /etc/rc.d/init.d/courier-imap /sbin/chkconfig --level 0123456 courier-imap on

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值