ZhangHuangbin 写道:
takyee 写道:

Suicide () TROUBLE in pre_loop_hook: db_init: BDB no dbN: __fop_file_setup:  Retry limit (100) exceeded, File exists. at (eval 101) line 327.

检查一下 amavisd.conf 里的 @storage_sql_dsn 和 @lookup_sql_dsn,看看是否漏了什么参数。

@storage_sql_dsn = (
    ['DBI:mysql:database=amavisd;host=127.0.0.1;port=3306', 'amavisd', 'XXXXXXXXXXXXXXXXXXX'],
);
#@lookup_sql_dsn = @storage_sql_dsn;

1;  # insure a defined return

我用上面配置的用户名和密码是可以登陆到MYSQL,并且可以查看相关的表,事情原来是一次意外断电后就出现了这种问题。。。麻烦张百忙中抽出点时间帮我看看,谢谢!!

ZhangHuangbin 写道:

执行 'amavisd debug' 命令看看哪里出了问题。


Apr 30 18:50:34.088 mx.domain.ltd /usr/local/sbin/amavisd[1940]: starting. /usr/local/sbin/amavisd at mx.domain.ltd amavisd-new-2.7.0 (20110701), Unicode aware
Apr 30 18:50:34.088 mx.domain.ltd /usr/local/sbin/amavisd[1940]: perl=5.012004, user=, EUID: 110 (110);  group=, EGID: 110 110 (110 110)
Apr 30 18:50:34.198 mx.domain.ltd /usr/local/sbin/amavisd[1940]: INFO: no optional modules: Unix::Getrusage
Apr 30 18:50:34.199 mx.domain.ltd /usr/local/sbin/amavisd[1940]: SpamControl: attempting to load scanner SpamAssassin, module Amavis::SpamControl::SpamAssassin
Apr 30 18:50:34.199 mx.domain.ltd /usr/local/sbin/amavisd[1940]: SpamControl: scanner SpamAssassin, module Amavis::SpamControl::SpamAssassin
Apr 30 18:50:34.665 mx.domain.ltd /usr/local/sbin/amavisd[1940]: INFO: SA version: 3.3.2, 3.003002, no optional modules: Net::CIDR::Lite Sys::Hostname::Long Image::Info Image::Info::GIF Image::Info::JPEG Image::Info::PNG Image::Info::BMP Image::Info::TIFF auto::NetAddr::IP::full6 auto::NetAddr::IP::Util::inet_n2dx auto::NetAddr::IP::Util::inet_n2ad auto::NetAddr::IP::Util::inet_any2n auto::NetAddr::IP::Util::ipv6_aton
Apr 30 18:50:34.666 mx.domain.ltd /usr/local/sbin/amavisd[1940]: SpamControl: init_pre_chroot on SpamAssassin done
Apr 30 18:50:34.666 mx.domain.ltd /usr/local/sbin/amavisd[1940]: bind to /var/amavis/amavisd.sock|unix, 127.0.0.1:10024/tcp, 127.0.0.1:9998/tcp
Pid_file "/var/amavis/amavisd.pid" already exists.  Overwriting!
Apr 30 18:50:34.667 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Net::Server: 2012/04/30-18:50:34 Amavis (type Net::Server::PreForkSimple) starting! pid(1940)
Apr 30 18:50:34.673 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Net::Server: Using default listen value of 128
Apr 30 18:50:34.673 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Net::Server: Binding to UNIX socket file /var/amavis/amavisd.sock using SOCK_STREAM
Apr 30 18:50:34.674 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
Apr 30 18:50:34.674 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Net::Server: Binding to TCP port 9998 on host 127.0.0.1
Apr 30 18:50:34.674 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Net::Server: Group Not Defined.  Defaulting to EGID '110 110'
Apr 30 18:50:34.675 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Net::Server: User Not Defined.  Defaulting to EUID '110'
Apr 30 18:50:34.675 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Net::Server: Setting up serialization via flock
Apr 30 18:50:34.676 mx.domain.ltd /usr/local/sbin/amavisd[1940]: after_chroot_init: EUID: 110 (110);  EGID: 110 110 (110 110)
Apr 30 18:50:34.676 mx.domain.ltd /usr/local/sbin/amavisd[1940]: config files read: /usr/local/etc/amavisd.conf
Apr 30 18:50:34.699 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Amavis::Conf        2.301
Apr 30 18:50:34.700 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Archive::Zip        1.30
Apr 30 18:50:34.700 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Authen::SASL        2.15
Apr 30 18:50:34.700 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module BerkeleyDB          0.50
Apr 30 18:50:34.700 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Compress::Zlib      2.024
Apr 30 18:50:34.700 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Convert::TNEF       0.17
Apr 30 18:50:34.700 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Convert::UUlib      1.4
Apr 30 18:50:34.701 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Crypt::OpenSSL::RSA 0.28
Apr 30 18:50:34.701 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module DBD::mysql          4.019
Apr 30 18:50:34.701 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module DBI                 1.618
Apr 30 18:50:34.701 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module DB_File             1.82
Apr 30 18:50:34.701 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Digest::MD5         2.39
Apr 30 18:50:34.701 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Digest::SHA         5.47
Apr 30 18:50:34.701 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Digest::SHA1        2.13
Apr 30 18:50:34.702 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module File::Temp          0.22
Apr 30 18:50:34.702 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module IO::Socket::INET6   2.69
Apr 30 18:50:34.702 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module MIME::Entity        5.502
Apr 30 18:50:34.702 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module MIME::Parser        5.502
Apr 30 18:50:34.703 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module MIME::Tools         5.502
Apr 30 18:50:34.703 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Mail::DKIM::Signer  0.39
Apr 30 18:50:34.703 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Mail::DKIM::Verifier 0.39
Apr 30 18:50:34.703 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Mail::Header        2.09
Apr 30 18:50:34.703 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Mail::Internet      2.09
Apr 30 18:50:34.703 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Mail::SPF           v2.007
Apr 30 18:50:34.704 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Mail::SpamAssassin  3.003002
Apr 30 18:50:34.704 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Net::DNS            0.68
Apr 30 18:50:34.705 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Net::LDAP           0.44
Apr 30 18:50:34.705 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Net::Server         0.99
Apr 30 18:50:34.705 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module NetAddr::IP         4.058
Apr 30 18:50:34.705 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Razor2::Client::Version 2.84
Apr 30 18:50:34.706 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Socket6             0.23
Apr 30 18:50:34.706 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Time::HiRes         1.9719
Apr 30 18:50:34.706 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module URI                 1.59
Apr 30 18:50:34.706 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Module Unix::Syslog        1.1
Apr 30 18:50:34.707 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Amavis::DB code      loaded
Apr 30 18:50:34.707 mx.domain.ltd /usr/local/sbin/amavisd[1940]: SQL base code        loaded
Apr 30 18:50:34.707 mx.domain.ltd /usr/local/sbin/amavisd[1940]: SQL::Log code        loaded
Apr 30 18:50:34.707 mx.domain.ltd /usr/local/sbin/amavisd[1940]: SQL::Quarantine      NOT loaded
Apr 30 18:50:34.707 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Lookup::SQL code     NOT loaded
Apr 30 18:50:34.707 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Lookup::LDAP code    loaded
Apr 30 18:50:34.707 mx.domain.ltd /usr/local/sbin/amavisd[1940]: AM.PDP-in proto code loaded
Apr 30 18:50:34.707 mx.domain.ltd /usr/local/sbin/amavisd[1940]: SMTP-in proto code   loaded
Apr 30 18:50:34.707 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Courier proto code   NOT loaded
Apr 30 18:50:34.707 mx.domain.ltd /usr/local/sbin/amavisd[1940]: SMTP-out proto code  loaded
Apr 30 18:50:34.707 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Pipe-out proto code  NOT loaded
Apr 30 18:50:34.708 mx.domain.ltd /usr/local/sbin/amavisd[1940]: BSMTP-out proto code NOT loaded
Apr 30 18:50:34.708 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Local-out proto code loaded
Apr 30 18:50:34.708 mx.domain.ltd /usr/local/sbin/amavisd[1940]: OS_Fingerprint code  NOT loaded
Apr 30 18:50:34.708 mx.domain.ltd /usr/local/sbin/amavisd[1940]: ANTI-VIRUS code      loaded
Apr 30 18:50:34.708 mx.domain.ltd /usr/local/sbin/amavisd[1940]: ANTI-SPAM code       loaded
Apr 30 18:50:34.708 mx.domain.ltd /usr/local/sbin/amavisd[1940]: ANTI-SPAM-EXT code   NOT loaded
Apr 30 18:50:34.708 mx.domain.ltd /usr/local/sbin/amavisd[1940]: ANTI-SPAM-C code     NOT loaded
Apr 30 18:50:34.708 mx.domain.ltd /usr/local/sbin/amavisd[1940]: ANTI-SPAM-SA code    loaded
Apr 30 18:50:34.708 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Unpackers code       loaded
Apr 30 18:50:34.708 mx.domain.ltd /usr/local/sbin/amavisd[1940]: DKIM code            loaded
Apr 30 18:50:34.708 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Tools code           NOT loaded
Apr 30 18:50:34.709 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found $file            at /usr/local/bin/file
Apr 30 18:50:34.709 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found $altermime       at /usr/local/bin/altermime
Apr 30 18:50:34.709 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Internal decoder for .mail
Apr 30 18:50:34.709 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .F    at /usr/local/bin/unfreeze
Apr 30 18:50:34.710 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .Z    at /usr/bin/uncompress
Apr 30 18:50:34.710 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .gz   at /usr/bin/gzip -d
Apr 30 18:50:34.710 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Internal decoder for .gz   (backup, not used)
Apr 30 18:50:34.710 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .bz2  at /usr/bin/bzip2 -d
Apr 30 18:50:34.711 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .xz   at /usr/bin/unxz -c
Apr 30 18:50:34.712 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .lzma at /usr/bin/xz -dc --format=lzma
Apr 30 18:50:34.712 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .lzo  at /usr/local/bin/lzop -d
Apr 30 18:50:34.712 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .rpm  at /usr/local/bin/rpm2cpio.pl
Apr 30 18:50:34.712 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .cpio at /bin/pax
Apr 30 18:50:34.713 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .tar  at /bin/pax
Apr 30 18:50:34.713 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .deb  at /usr/bin/ar
Apr 30 18:50:34.713 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Internal decoder for .zip
Apr 30 18:50:34.713 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .7z   at /usr/local/bin/7zr
Apr 30 18:50:34.714 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .rar  at /usr/local/bin/unrar
Apr 30 18:50:34.714 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .arj  at /usr/local/bin/arj
Apr 30 18:50:34.714 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .arc  at /usr/local/bin/nomarch
Apr 30 18:50:34.714 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .zoo  at /usr/local/bin/zoo
Apr 30 18:50:34.715 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .lha  at /usr/local/bin/lha
Apr 30 18:50:34.715 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .cab  at /usr/local/bin/cabextract
Apr 30 18:50:34.715 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .tnef at /usr/local/bin/tnef
Apr 30 18:50:34.715 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Internal decoder for .tnef (backup, not used)
Apr 30 18:50:34.716 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found decoder for    .exe  at /usr/local/bin/unrar; /usr/local/bin/lha; /usr/local/bin/arj
Apr 30 18:50:34.716 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Using primary internal av scanner code for ClamAV-clamd
Apr 30 18:50:34.716 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Found secondary av scanner ClamAV-clamscan at /usr/local/bin/clamscan
Apr 30 18:50:34.716 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Using internal spam scanner code for SpamAssassin
Apr 30 18:50:34.717 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Deleting db files __db.001,__db.002,__db.003,__db.004,snmp.db in /var/amavis/db
Apr 30 18:50:34.719 mx.domain.ltd /usr/local/sbin/amavisd[1940]: Creating db in /var/amavis/db/; BerkeleyDB 0.50, libdb 4.6
Apr 30 18:52:14.853 mx.domain.ltd /usr/local/sbin/amavisd[1940]: (!!)TROUBLE in pre_loop_hook: db_init: BDB no dbN: __fop_file_setup:  Retry limit (100) exceeded, File exists. at (eval 101) line 327.
Suicide () TROUBLE in pre_loop_hook: db_init: BDB no dbN: __fop_file_setup:  Retry limit (100) exceeded, File exists. at (eval 101) line 327.

==== 提供基本信息便于分析问题并得到快速回复 ====
- iRedMail 版本:iredmail 0.7.4
- 使用的 Linux/BSD 发行版名称及版本号:freebsd 8.2 32bit
- 与您的问题相关的日志信息:(delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
====

使用postqueue -p 查看所有进出队列全部投递失败,连接amavsid 10024端口失败,重新启动amavsid,不到一分钟时间,amavsid自动关闭,/var/log,没有看到了相关amavsid日志

mailllog中看到的日志:

Apr 30 17:58:51 mx amavis[1470]: (!!)TROUBLE in pre_loop_hook: db_init: BDB no dbN: __fop_file_setup:  Retry limit (100) exceeded, File exists. at (eval 101) line 327.
Apr 30 17:58:51 mx amavis[1470]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: db_init: BDB no dbN: __fop_file_setup:  Retry limit (100) exceeded, File exists. at (eval 101) line 327.

尊敬的 iredmail开发团队

   感谢你们孜孜不倦地工作,感谢你们辛勤的付出。为我们带来了如此完美的开源邮件系统解决方案,它帮助我完成了基于freebsd搭建邮件系统这个艰巨的任务。

    使用了iredmail一段时间,暂未发现iredmail有举报垃圾邮件功能,如果能集成或者有一套垃圾邮件训练平台,对减少中文垃圾邮件有很大的帮助。

     以上之是个人想法,或许iremail团队已经在着手解决这个问题了

30

(5 篇回复,发表在 iRedMail 技术支持)

张工,不好意思,写成了iredmail pro,那么如果新建了mail list,请问可以做到,只能规定某些用户发往mail list吗,如果任何人都可以发,被垃圾邮件给猜到了,后果很严重

31

(5 篇回复,发表在 iRedMail 技术支持)

==== 提供基本信息便于分析问题并得到快速回复 ====
- iRedMail 版本:0.7.4+ldap
- 使用的 Linux/BSD 发行版名称及版本号:Freebsd 8.2
- 与您的问题相关的日志信息:
====

张工,您好!

我现想给域中的所有帐户群发邮件(例如通知之类的),在iredmail 0.7.4中没有找到相关功能,请问iredmail pro有这样的功能吗,
我看过FAQ,也尝试过用ldap+alias来实现,但是管理起来不太方便,有100-200个帐户,有时有增加或者删减。

或者是有第三种方案。

期待您的答复!

wenyiran 写道:

==== 提供基本信息便于分析问题并得到快速回复 ====
- iRedMail 版本:0.6.1
- 使用的 Linux/BSD 发行版名称及版本号:ubuntu10.4
- 与您的问题相关的日志信息:一下是退信的内容,基本上每封都差不多的内容。
====-----邮件原件-----
发件人: Mail Delivery System [mailto:MAILER-DAEMON@mail.cynovo.com.cn]
发送时间: 2012年4月13日 17:43
收件人: jhan@cynovo.com.cn
主题: Undelivered Mail Returned to Sender

This is the mail system at host mail.cynovo.com.cn.

I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can delete your own text from the attached returned message.

                   The mail system

<nelson.liu@gausstech.com>: host gausstech.com[61.63.62.51] said:
550-"JunkMail
    rejected - mail.cynovo.com.cn [221.6.105.148]:38879 is in an RBL, 550 see
    Blocked - see http://www.spamcop.net/bl.shtml?221.6.105.148" (in reply to
    RCPT TO command)

IP被列入blacklist,自己去申诉吧,再查查你的邮件帐户有无弱口令,看看你的mail.log,查一查肉网客户端是不是在拼命的放垃圾邮件出去,在防火墙做一条规则,permit mail server  deny any to any smtp port,

鉴于国内DNS劫持泛滥的情况下,相信大家在使用DNS RBL的时候都会填上验证码,如如果像使用zen.spamhuas.org这样的RBL,验证吗多达 127.0.0.1-11,postfix 2.8以前的版本需要写10几行,2.8以后的版本可以这样写:

reject_rbl_clien zen.spamhaus.org=127.0.0.[2;11]

ubunut 11.04 postfix 2.8.5测试通过

ZhangHuangbin 写道:
bottle 写道:

主   题:***SPAM*** odiovts 企 业 白 领 核 心 办 公 技 能(PPT+Excel)高级应用2012

但收件人并不是我的邮件域,请问我要怎样防止垃圾邮件

iRedMail 默认的 Postfix 参数 smtpd_sender_restrictions 和 smtpd_recipient_restrictions 应该能挡掉这种类型的垃圾邮件的,麻烦您贴一下命令 'postconf -n' 的输出。另外,邮件标题里已经有 '***SPAM***' 标记,表示 Amavisd + SpamAssassin 已经识别到了这是垃圾邮件。

1. 怎样升级 policy 到 2.07

Policyd 官方没有提供从 1.8x 到 2.x 的升级文档,所以我们建议您继续使用 Policyd-1.8x。而且,个人观点,Policyd-2 不如 policyd-1 直观易用。

2. 我自己用php_imap 开发了个 webmail,我还想开发 mailadmin for php, policyadmin for php ,但不我清楚需要操作哪些数据库及表字段的含义,希望得到你的帮助

这个恐怕难以长话短说,还是需要您自己了解各个数据库、各个表、各个字段的作用。

3. 为什么 www.iredmail.org打不开呢,很多 iredmail的 连接都打不开

被墙了。

4. 你这个论坛好象不能上传图片,不能展示我的webmail啦,吼吼

可以上传,也看到了您上传的 webmail 截图。看上去不错。:)

另外,为何不直接用 Roundcube 呢?
从头开发一个 webmail 涉及太多技术细节,需要很长一段时间的完善期,所以如果不是必须这么做,个人不太建议从头开发一个。Roundcube 0.8 里启用了名为 "Larry" 的新主题,也许您可以看看。

张工,您好!

我的平台为 Freebsd 8.2+iredmail 0.7.4,使用状况一直非常非常好,就是中文垃圾邮件一直困扰着我,而且基本上都没有被SA认出
例如:
销儿售儿主儿管儿2儿天儿1儿夜儿强儿化儿训儿练儿营儿

【s培c训p时u间u】2012年3月24-25日广b州、4月14-15日深c圳、4月21-22日上b海、5月12-13日北d京
“佛曰:不可说。”易天行随口应道,忽然想到白天周
【i承e办d单b位f】企儿业儿学儿习儿网儿
“没见识了吧,土了吧,”滑头白了我一眼,“让基地
【i培p训s对s象z】总经理、销售总监、区域经理、销售经理、主管销售、准备被提拔的销售精英。
“史蒂夫少爷,把齐格冕下骂吐血的又不是你……”诺
【k培p训t费w用b】3200RMB/人儿(包括资料费、午餐、晚宴及上下午茶点等)
道格拉斯青岛有限公司
【l热l线o电k话k】47080868648589312314

代*开*发*票:有需要来电话:13715362114  QQ:2297845601

请问有什么好的建议来组挡中文垃圾邮件

期待您的答复!

ZhangHuangbin 写道:

在 local.cf 里加个 include 语法,直接包含这个文件即可。

另我在网上找到一份应该是中文垃圾邮件的标本压缩包60多M,我想尝试让SA来学习这些垃圾邮件标本,请问这样可行吗?标本地址为http://plg.uwaterloo.ca/~gvcormac/treccorpus06/

ZhangHuangbin 写道:

在 local.cf 里加个 include 语法,直接包含这个文件即可。

直接在localcf加一句 include Chinese_rules.cf?还是直接加一条Chinese_rules.cf,最近收到很多中文垃圾邮件都没有被识别,邮件头部信息也没有看到X-SPAM打分情况,很郁闷

因使用webmail测试通过,使用客户端发送邮件时依然退信,GOOGLE上发现原来是POSTFIX PIX BUGS,
http://www.arschkrebs.de/postfix/postfi … bugs.shtml看来我只能暂时停用DKIM了,尝试连接对方管理员,不知道是否还有第三种途径
引用 http://www.arschkrebs.de/postfix/postfi … bugs.shtml

Postfix and various CISCO PIX bugs

There was a huge discussion "PIX problems with DKIM header fields" on the postfix-users@postfix.org mailinglist recently. One of the symptoms observed was that sites behind a CISCO PIX with "esmtp protocol fixup" wouldn't accept DKIM-signed emails. The connection would simply been dropped during the DATA stage.

Jim Fenton of CISCO solved the riddle for us and wrote this:

There are three bugs (all resolved) relating to Content-Type issues:

CSCsh33982
(E)SMTP Multiple Content-Type headers check is wrong
CSCsi01498
ESMTP inspect cannot handle content-type string in DKIM headers
CSCdi23740
ESMTP inspect does not match content-type properly in mail headers
These bug fixes are all incorporated in version 7.2(2.19) and 8.0(2.7).

7.2(2.19) is available to registered users on cisco.com by clicking the "interim releases" link on the software download page. I'm still unsure of the availability of 8.0(2.7).

According to one of the bug descriptions, the message

SMTP: Multiple Content-Type headers!
will be logged if ESMTP debugging is enabled and this is the cause.

Heise.de published an article about this as well: Cisco PIX behindert authentifizierten Mail-Versand

And another Cisco PIX and ASA problem with inspection of a SMTP protocol (actually, parsing of a mail header section):
CSCsy28792
SMTP session disconnects due to improper parsing of a DKIM header field by ASA
Problem description:

SMTP session is disconnected during DATA phase of a SMTP transaction for mail messages with a DKIM signature, where the start of a string "content-type" or "content-transfer-encoding" in a tag's value of an "h" tag of a DKIM signature happens to fall on a packet boundary at a start of a packet. The session is dropped with the next packet containing a Content-Type or Content-Transfer-Encoding header field.

Platform:
ASA5580-40
Cisco Adaptive Security Appliance Software Version 8.1(2)

To be fixed in releases 8.1.2(22) and 8.1.3



ZhangHuangbin 写道:

在 Postfix main.cf 里设置:

smtp_pix_workarounds = disable_esmtp, delay_dotcrlf

版主 您好!

iRedmail:0.7.4
OS:FreeBSD 8.2 p6

我现准备使用CCERT Chinese_rules.cf规则,请问是否会对iredmail现在的sa规则产生冲突,另如果可以请使用CCERT的规则,请问是放在/usr/local/etc/mail/spamassassin/吗???另spamassassin/local.cf还需要做何设置吗?amavisd需要设置吗?

张工您好!

感谢您的支持!

我用postconf -d 看到好像默认的就是 smtp_pix_workarounds = disable_esmtp, delay_dotcrlf。
现已在main.cf中添加,再试试看效果如果。

ZhangHuangbin 写道:

在 Postfix main.cf 里设置:

smtp_pix_workarounds = disable_esmtp, delay_dotcrlf

- iRedMail 版本:0.7.4
- 使用的 Linux/BSD 发行版名称及版本号:FreeBSD 8.2 p6
- 与您的问题相关的日志信息:
postqueue -p

(lost connection with mail100.uimax.com[63.219.18.28] while sending message body)

tail -f /var/log/maillog

0CAFA181441: enabling PIX workarounds: disable_esmtp delay_dotcrlf for mail1.uimax.com[116.6.45.200]:25

使用potqueue -p带*号要投递到本地的邮件非常缓慢,特别那种一封邮件发给本地10个人左右的邮件,需要5分钟以上的投递时间,请问这样正常吗??

看来真是要狠狠的转投阵营了,相比起Linux正营,个人觉得FreeBSD在软件和驱动之类的支持方面感觉是冷清了些,另外说个题外话,请问张工您觉得FreeBSD的磁盘读写性能优于Ubuntu/Centos吗?

iredmail工作在FREEBSD平台上的组件版本更新速度远远低于ubuntu/Centos类Linux操作系统,如POP3、灰名单等一些组件相对较低。

在linux平台中Fail2ban调用iptables来封锁问题主机,但是在FREEBSD中没有iptalbes,请问有没有使用 Fail2ban+IPFW的教程,参考过http://www.iredmail.com/wiki/index.php?title=Addition/Harden.iRedMail.with.Fail2ban,但是都是iptables

问题已解决,感谢Zhang Huangbin的帮助


On Mar 16, 2012, at 5:23 PM, Zhang Huangbin wrote:

> 看了一下,是 /usr/ports/textproc/libxml2/Makefile 这个文件里有 typo error:
>
> CONFIGURE_ARGS?=---with-html-dir=${PREFIX}/share/doc \
>
> 这里 ?= 后面是连着3个-,正确的应该是两个。修改后即可。

此错误于26分钟前被修正了:
http://www.freebsd.org/cgi/cvsweb.cgi/p … 2/Makefile

错误内容如下:

/usr/bin/find /usr/ports/textproc/libxml2/work/libxml2-2.7.8 -type f -name configure  -exec /bin/sh -c "  mtime=\$(date -r \$(stat -f '%m' \$0) '+%Y%m%d%H%M.%S');  /usr/bin/sed -i '.batman' -e 's|freebsd1\*)|freebsd1.\*)|g'  -e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \$0;  touch -mt \$mtime \$0" {} \; || /usr/bin/true
===>   libxml2-2.7.8_2 depends on executable: gmake - found
===>   libxml2-2.7.8_2 depends on executable: pkg-config - found
===>   libxml2-2.7.8_2 depends on shared library: iconv.3 - found
===>  Configuring for libxml2-2.7.8_2
configure: error: unrecognized option: `---with-html-dir=/usr/local/share/doc'
Try `./configure --help' for more information
===>  Script "configure" failed unexpectedly.
Please run the gnomelogalyzer, available from
"http://www.freebsd.org/gnome/gnomelogalyzer.sh", which will diagnose the
problem and suggest a solution. If - and only if - the gnomelogalyzer cannot
solve the problem, report the build failure to the FreeBSD GNOME team at
gnome@FreeBSD.org, and attach (a)
"/usr/ports/textproc/libxml2/work/libxml2-2.7.8/config.log", (b) the output
of the failed make command, and (c) the gnomelogalyzer output. Also, it might
be a good idea to provide an overview of all packages installed on your system
(i.e. an `ls /var/db/pkg`). Put your attachment up on any website,
copy-and-paste into http://freebsd-gnome.pastebin.com, or use send-pr(1) with
the attachment. Try to avoid sending any attachments to the mailing list
(gnome@FreeBSD.org), because attachments sent to FreeBSD mailing lists are
usually discarded by the mailing list software.
*** Error code 1

Stop in /usr/ports/textproc/libxml2.
*** Error code 1

Stop in /usr/ports/lang/php5.
< ERROR > Port was not success installed, please fix it manually and then re-execute this script.

在对比FreeBSD Ubuntu后发现,对Ubuntu的支持应该是最好的,还有一个非主流的问题,在测试中我发现,系统资源消耗的比较严重的地方是对入站邮件进行扫描的环节,请问一下我可否将杀毒和垃圾邮件过滤放在另一台服务器来做???

不知道你有没有将pkgs目录下的get_all.sh里的www.iredmail.org 替换为173.254.22.21,iredmail.org被墙了。

louie 写道:

张大大 

我的iRedmail故障依旧啊 ,,,

是apache设置问题吗?怎么修改啊 ???

我现在访问 http://服务器地址或主机名/mail 提示:
Forbidden
You don't have permission to access /mail on this server.
--------------------------------------------------------------------------------
Apache Server at 168.88.8.210 Port 80

访问 httpS://服务器地址或者主机名/iredadmin  提示:
Forbidden
You don't have permission to access /iredadmin on this server.
--------------------------------------------------------------------------------
Apache Server at 168.88.8.210 Port 443



ls  /etc/apache2/conf.d/ 命令输出如下:
louie@Mail:~$ ls /etc/apache2/conf.d/
awstats.conf  iredadmin.conf         other-vhosts-access-log  phpmyadmin.conf     security
charset       localized-error-pages  phpldapadmin.conf        roundcubemail.conf

张工,您好!

请问在服务器操作系统上,iRedMail对Ubuntu是不是支持最好的?我比较倾向于FreeBSD,但是几个版本在安装到postfix的时候都会出错,我觉得好像对FreeBSD的支持稍逊色于Ubuntu,请教在生产环境中,选择FreeBSDj是否可行????

找到解决方法了,修改php.ini的时间设置
http://forums.freebsd.org/showthread.php?t=23479