FrontPage

インストール

aptitude install exim4

exim4-daemon-heavyの方が何かと幸せになるよ!

設定

基本設定:exim4

特定のホストからの大量配信を受け付ける

smtp_load_reserve
※もし値以上に負荷がかかった場合、smtp_reserve_hostsで指定したホストからの接続のみ許可する

指定する値
$load_average: This variable contains the system load average,
multiplied by 1000 to that it is an integer. For example, if the load
average is 0.21, the value of the variable is 210. The value is
recomputed every time the variable is referenced.

smtp_reserve_hosts = 10.0.0.0/24
smtp_accept_reserve = 5(ディフォルト0)
※smtp_accept_reserveはsmtp_accept_maxは、情報交換はするが、影響を与える事はない
※smtp_accept_maxが0以上だったら、smtp_reserve_hostsで指定されたホストからの接続を保証する
※smtp_accept_maxの値に、smtp_accept_reserveは含まれる。
例:
smtp_accept_max = 50
smtp_accept_reserve = 5 
例えば45有効な接続になれば、新しい接続は、smtp_reserve_hostsからのホストのみ受け付ける。
smtp_accept_max_per_host = 5(ディフォルト0)
※どんなホスト(1IP)も一度にこの指定した値以上のSMTP接続(Exim4 deamon)は出来ない。
※これが設定されていたら、smtp_accept_maxを0以外にする必要がある。
smtp_accept_max = 50
※同時にincoming SMTPでExim4(daemon)が受けれる数。これは絶対で、これ以上は受け付けない
smtp_accept_max_per_hostもしくはsmtp_accept_queueが設定されていたら、0以外にする必要がある
inetdが扱うincoming SMTPを制御するコマンドはない。値がなしか0だった場合は、制限なしの状態。

メールのサイズを制限する

/etc/exim4/conf.d/main/02_exim4-config_options

message_size_limit = 1M

上記は1メールにつき1M(1024*1024)

message_size_limit_count_recipients = true

これをつけるとToに入っている人でmessage_size_limitを割って制限してくれる。TOに2人いたら、message_size_limit/2で1人0.5Mの制限になる。

A new SMTP connection is immediately rejected if the smtp_accept_max limit has been reached. If not, Exim first checks smtp_accept_max_per_host. If that limit has not been reached for the client host, smtp_accept_reserve and smtp_load_reserve are then checked before accepting the connection

deliver_queue_load_max = 100
smtp_accept_queue = 150

# smtp_accept_queue_per_connection = 1000

# queue_run_in_order = false
timeout_frozen_after = 5h
split_spool_directory = true
retry_interval_max = 12h

# queue_only = true
auto_thaw = 60s
queue_run_max = 500
remote_max_parallel = 10
system_filter=/etc/blank

送信速度を上げる

bulk mailとかを送る方法を調べてみた。打倒!qmail!!

queue_run_max

This controls the maximum number of queue runner processes that an Exim daemon can run simultaneously. This does not mean that it starts them all at once, but rather that if the maximum number are still running when the time comes to start another one, it refrains from starting another one. This can happen with very large queues and/or very sluggish deliveries. This option does not, however, interlock with other processes, so additional queue runners can be started by other means, or by killing and restarting the daemon.

Setting this option to zero does not suppress queue runs; rather, it disables the limit, allowing any number of simultaneous queue runner processes to be run. If you do not want queue runs to occur, omit the -qxx setting on the daemon’s command line.

その他設定

エラー対処法

参考URL

翻訳


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2012-03-12 (月) 16:54:31 (197d)