这个不要用Alias来解决,用bcc就可以完美解决!

IredMail: 0.8.1
Ubuntu: 12.04
以下红色字体是我修改/etc/amavis/conf.d/50-user后的效果,但群发邮件依然很慢


$policy_bank{'MYUSERS'} = {
    # declare that mail was submitted by our smtp client
    originating => 1,

    # enables disclaimer insertion if available
    allow_disclaimers => 1,

    # notify administrator of locally originating malware
    virus_admin_maps => ["root\@$mydomain"],
    spam_admin_maps  => ["root\@$mydomain"],
    warnbadhsender   => 0,

    # forward to a smtpd service providing DKIM signing service
    #forward_method => 'smtp:[127.0.0.1]:10027',

    # force MTA conversion to 7-bit (e.g. before DKIM signing)
    smtpd_discard_ehlo_keywords => ['8BITMIME'],

    # don't remove NOTIFY=SUCCESS option
    terminate_dsn_on_notify_success => 0,

    # don't perform spam/virus/header check.
    bypass_spam_checks_maps => [1],
    bypass_virus_checks_maps => [1],
    bypass_header_checks_maps => [1],
# allow sending any file names and types
    bypass_banned_checks_maps => [1],
};

在google查了资料,直接在/etc/dovecot/dovecot.confi 增加以下参数即可
service imap-login {
        process_limit = 500
        process_min_avail=2
        }

更改时做了一个简单的测试,测试前是100,修成10,日志显示如下:
Oct 29 13:49:51 master: Warning: service(imap-login): process_limit (100) reached, client connections are being dropped
Oct 29 14:05:01 master: Warning: service(imap-login): process_limit (100) reached, client connections are being dropped
Oct 29 14:08:29 master: Warning: service(imap-login): process_limit (10) reached, client connections are being dropped
Oct 29 14:09:38 master: Warning: service(imap-login): process_limit (10) reached, client connections are being dropped
所以这个参数应该是有效的。

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本: 0.8.1
- 使用的 Linux/BSD 发行版名称及版本号: ubuntu 12.04
- 与您的问题相关的日志信息:
====
部署iredmail后,客户端全部使用thundbird,现在经常会出现如附件提示的错误.
/etc/init.d/dovecot restart 后正常,出异常时/var/log/dovecot.log错误提示如下。
Oct 29 11:37:58 master: Warning: service(imap-login): process_limit (100) reached, client connections are being dropped

请问张工,这个参数在哪个配置文件可以修改?谢谢!

==== 提供基本信息便于分析问题并得到快速回复 ====
- iRedMail 版本:
- 使用的 Linux/BSD 发行版名称及版本号:
- 与您的问题相关的日志信息:
==== ==== 提供基本信息便于分析问题并得到快速回复 ====
- iRedMail 版本:iRedMail-0.8.1
- 使用的 Linux/BSD 发行版名称及版本号:Ubunt 12.04
- 与您的问题相关的日志信息:test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-sync 出错
====

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "zh_CN:zh",
    LC_ALL = (unset),
    LC_TIME = "zh_CN",
    LC_MONETARY = "zh_CN",
    LC_ADDRESS = "zh_CN",
    LC_TELEPHONE = "zh_CN",
    LC_NAME = "zh_CN",
    LC_MEASUREMENT = "zh_CN",
    LC_IDENTIFICATION = "zh_CN",
    LC_NUMERIC = "zh_CN",
    LC_PAPER = "zh_CN",
    LANG = "zh_CN.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").