这是我及一些朋友在安装qmail过程中出现的问题,会不断更新
1.tcpserver: fatal: unable to figure out port number for smtp
修改qmail-smtpd/run启动脚本。调整softlimit值到6000
2. readproctitle service errors: ...emporary failure?multilog: fatal: unable to lock directory /var/log/qmail: temporary failure?multilog: fatal: unable to lock directory /var/log/qmail: temporary failure?multilog: fatal: unable to lock directory /var/log/qmail: temporary failure?multilog: fatal: unable to lock directory /var/log/qmail: temporary failure?multilog: fatal: unable to lock directory /var/log/qmail: temporary failure?
a.qmail相应log启动脚本是否有语法错误(如目录名是否正确,日志目录是否存在等)
b.是否启动了两qmail服务,建议重启电脑再检测
3.tcpserver: warning: dropping connection, unable to read /home/vpopmail/etc/tcp.smtp.cdb: access denied
很明显,这是权限的问题,请检查vpopmail家目录的权限是否为755,用ls -lat /home|grep vpopmail即可查看
4. readproctitle service errors: ...] [-r residentbytes] [-s stackbytes] [-t cpusecs] child?/var/qmail/ssl/env: line 12: unexpected EOF while looking for matching `''?/var/qmail/ssl/env: line 15: syntax error: unexpected end of file?softlimit: usage: softlimit [-a allbytes] [-c corebytes] [-d databytes] [-f filebytes] [-l lockbytes] [-m membytes] [-o openfiles] [-p processes] [-r residentbytes] [-s stackbytes] [-t cpusecs] child?
请确定evn文件没有错误 具体请见本博客另一篇文章:netqmail与tls如何设置:http://blog.chinaunix.net/u2/74118/showart.php?id=1217987
5.could not open lock file /var/qmail/users/assign.lock
Failed while attempting to update_file() the assign file
Error. Failed to add domain to assign file
Error: Could not update file
之前本机上有装好qmail,后因硬盘出现故障,重装系统后将备份恢复过去重新增加域就出现这样的问题,重新安装qmail后故障依旧,vadddomain权限为4755,我在本机上将vadddomain权限更改为755后运行正常,在网上查资料有人说将vadddomain权限设置为4711也可以解决上类问题,不过在我机上测不通过.
6. Logins with UID 89 not permitted (see first_valid_uid in config file).
先说明一下,我imap服务器用的是vpopmail与dovecot给合,squirrelmail用作webmail登录,在登录时 出现上述现象,后经检查发现,因为dovecot.conf配置文件默认是禁止uid 500以下及gid 500以下用户登录,而我们的vpopmail用户id 与组id 为89,所以才会出现这样的问题。
7.Mon, 22 Sep 2008 16:35:15 CST:12265: error_condition: X-Qmail-Scanner-2.05: Unable to open pipe to /var/qmail/bin/qmail-queue [71] (#4.3.0) -
Mon, 22 Sep 2008 16:35:15 CST:12261: error_condition: X-Qmail-Scanner-2.05: Unable to close pipe to /var/qmail/bin/qmail-queue [71] (#4.3.0) - Illegal seek
请确定你的clamd巳经启动
8.
解决qmail经常收到投递失败的邮件
这一段部分来自:
http://blog.5ilinux.com/archives/2006/04/qmailerror.html
首先说明一下<>和<#@[]>都是系统bouce信件信封(envelope)上的寄信人地址
这两种信都是系统产生的,区别在于<>往往是系统single bouce的地址,而<#@[]>则是系统double bounces或者triple bouces的地址
系统用这两种地址是为了避免邮件回路(mail loops)
来自<#@[]>一般都是系统的double bounces
要去掉这些double bounces可以有一种简单的办法
其原理是产生一个nobody的地址,发往这里的信件都会被丢弃,这样double bouces就不会烦你的postmaster了
具体步骤如下:
echo “#” > /var/qmail/alias/.qmail-doublebounceto (或者直接丢弃:echo “| cat > /dev/null” … )
echo “doublebounceto” > /var/qmail/control/doublebounceto
9.
垃圾邮件太多
1)装上发信黑名单 CBL:
2)装上maildrop和垃圾邮件过滤器 SpamAssassin:
请参考大麻的这篇文章,如果你是用qmailadmin来管理用户,将./.mailfilter路径改为/etc/mailfilter即可
阅读(1165) | 评论(0) | 转发(0) |