确认了一下,收件人收到了邮件
不过延时好几个小时才收到
可能是队列太长的问题
支持 Red Hat Enterprise Linux, CentOS, Scientific Linux, Debian, Ubuntu, FreeBSD, OpenBSD
您尚未登陆。 请选择登陆或是注册一个新账号。
iRedMail 开源邮件服务解决方案 » 由 easthero 发表的文章
页次 1
确认了一下,收件人收到了邮件
不过延时好几个小时才收到
可能是队列太长的问题
A发给B一封带附件的邮件,rar格式加密码 B说没收到
我查了一下iredapd.log中有记录,mail.log没有记录
在www收到的logwatch中有以下类似的记录
--------------------- amavis Begin ------------------------
1094 messages checked and passed.
1 spam messages were found.
**Unmatched Entries**
(!)Decoding of p003 (Zip archive data, at least v2.0 to extract) failed, leaving it unpacked: Compress::Raw::Zlib defines neither package nor VERSION--version check failed at (eval 104) line 467.: 4 Time(s)
Found decoder for .F at /usr/bin/unfreeze: 1 Time(s)
Found decoder for .tar at /bin/cpio: 1 Time(s)
Found decoder for .deb at /usr/bin/ar: 1 Time(s)
SQL::Quarantine NOT loaded: 1 Time(s)
Internal decoder for .uue : 1 Time(s)
Passed UNCHECKED, LOCAL [221.181.95.222] [231.181.95.222] <a@foobar.com> -> <b@foobar.com>, Message-ID: <000901cb84a2$1c73f180$555bd480$@com>, mail_id: 77Wo31pnEfm8, Hits: -5.814, size: 1608276, queued_as: D189D220057, 978 ms: 1 Time(s)
INFO: unfolded 1 illegal all-whitespace continuation lines: 1 Time(s)
Found decoder for .cab at /usr/bin/cabextract: 1 Time(s)
Found decoder for .lha at /usr/bin/lha: 1 Time(s)
Found decoder for .gz at /usr/bin/gzip -d: 1 Time(s)
Found decoder for .exe at /usr/bin/unrar; /usr/bin/lha; /usr/bin/arj: 1 Time(s)
Found decoder for .rar at /usr/bin/unrar: 1 Time(s)
Internal decoder for .hqx : 1 Time(s)
Found decoder for .Z at /usr/bin/uncompress: 1 Time(s)
Found decoder for .lzo at /usr/bin/lzop -d: 1 Time(s)
Internal decoder for .asc : 1 Time(s)
(!)Decoding of p002 (Zip archive data, at least v2.0 to extract) failed, leaving it unpacked: Compress::Raw::Zlib defines neither package nor VERSION--version check failed at (eval 104) line 467.: 1 Time(s)
Internal decoder for .zip : 1 Time(s)
Internal decoder for .tnef: 1 Time(s)
Creating db in /var/amavis/db/; BerkeleyDB 0.36, libdb 4.3: 1 Time(s)
Found decoder for .arc at /usr/bin/nomarch: 1 Time(s)
Found decoder for .zoo at /usr/bin/zoo: 1 Time(s)
AM.PDP-in proto code loaded: 1 Time(s)
Local-out proto code loaded: 1 Time(s)
Using primary internal av scanner code for ClamAV-clamd: 1 Time(s)
Found decoder for .rpm at /usr/bin/rpm2cpio: 1 Time(s)
starting. /usr/sbin/amavisd at localhost.localdomain amavisd-new-2.6.4 (20090625), Unicode aware, LANG="en_US.UTF-8": 1 Time(s)
Found decoder for .cpio at /bin/cpio: 1 Time(s)
Passed UNCHECKED, LOCAL [125.215.44.61] [155.215.44.61] <b@foobar.com> -> <a@foobar.com>, Message-ID: <000301cb8489$8169ed60$843dc820$@com>, mail_id: Ih7fD0rhKOHZ, Hits: -6.759, size: 32410, queued_as: 21C56220057, 8694 ms: 1 Time(s)
No decoder for .7z tried: 7zr, 7za, 7z: 1 Time(s)
Internal decoder for .ync : 1 Time(s)
Internal decoder for .mail: 1 Time(s)
Found decoder for .arj at /usr/bin/arj: 1 Time(s)
No decoder for .tnef tried: tnef: 1 Time(s)
Found decoder for .bz2 at /usr/bin/bzip2 -d: 1 Time(s)---------------------- amavis End -------------------------
这封邮件到哪去了? /var/log/clamav也没有看到相关日志
再来一个问题,应该是iredmail的bug
就是cron脚本里awasts的路径不对
www@domain.com一直收到邮件说 awasts 找不到
正确的路径应该是 /usr/lib/cgi-bin/awstats/awstats.pl
解决办法是 修改 /etc/cron.d/awstats 以及以root执行 crontab -e修改
刚看了一下脚本,的确是iredmail的bug
AWSTATS_CGI_DIR是/usr/lib/cgi-bin
functions/awstats.sh 第 36 行
export AWSTATS_CGI_DIR="${AWSTATS_CGI_DIR}/awstats"
AWSTATS_CGI_DIR就变成了 /usr/lib/cgi-bin/awstats
到了第268行
1 */1 * * * perl ${AWSTATS_CGI_DIR}/awstats/awstats.pl -config=${HOSTNAME} -update >/dev/null
这样路径就变成了 /usr/lib/cgi-bin/awstats/awstats/awstats.pl ,多了一个 awstats
其实是 debian 的bug
见 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495629
1.安装postfix-policyd的时候会提示mysql连接失败,因为使用了空密码。iredmail.sh会退出
这时候使用 aptitude 或者 apt-get 安装postfix-policyd,会出现数据库配置对话框,输入密码即可正常安装
2.我当时因为安装不成功,所以卸载了相关软件想重新安装,结果到了 amavisd-new 又失败
提示
Creating/updating amavis user account...
Broken amavis system user found. To insure data-safety,
it is up to you the local administrator to remove the broken
amavis user, or repair it so that it is sane
dpkg: error processing amavisd-new (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
amavisd-new
原因是 amavisd-new 会创建 amavis 和 amavis组,但卸载的脚本有bug没有删除amavis用户。
userdel amavis 删除 amavis用户
再继续安装即可
发到 postmaster@domain.com 和 root@domain.com 都退信,提示无此用户
进入 postfixadmin 新建 alias 才成功
页次 1
iRedMail 开源邮件服务解决方案 » 由 easthero 发表的文章
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2010 PunBB.
页面生成时间 0.016 秒, 共执行查询 53 条