Mail

Mailmanのqrunner

/var/lib/mailman/bin/qrunnerの --runnerについて

-r runner[:slice:range]
--runner=runner[:slice:range]

Run the named qrunner, which must be one of the strings returned by the -l option. Optional slice:range if given, is used to assign multiple qrunner processes to a queue. range is the total number of qrunners for this queue while slice is the number of this qrunner from [0..range).

If using the slice:range form, you better make sure that each qrunner for the queue is given the same range value. If slice:runner is not given, then 1:1 is used.

Multiple -r options may be given, in which case each qrunner will run once in round-robin fashion. The special runner `All' is shorthand for a qrunner for each listed by the -l option.

/usr/bin/python /usr/lib/mailman/bin/mailmanctl -s -q start
 \_ /usr/bin/python /var/lib/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
 \_ /usr/bin/python /var/lib/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
 \_ /usr/bin/python /var/lib/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
 \_ /usr/bin/python /var/lib/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
 \_ /usr/bin/python /var/lib/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
 \_ /usr/bin/python /var/lib/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
 \_ /usr/bin/python /var/lib/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
 \_ /usr/bin/python /var/lib/mailman/bin/qrunner --runner=RetryRunner:0:1 -s

Mailmanのキューランナーによる処理の流れ

抜粋 -> 安田幸宏著 - Mailman 標準ハンドブック -

                                                   
利用者
 |
 | 投稿メール
 |
投稿用アドレス
 | 
inキュー
 |
IncomingRunner
 |
 | 配送のチェック ---> エラーの処理
 |
[問題なし]
 |
 |--newsキュー(ニュースとの相互配信設定あり) 
 |    | NewsRunner
 |   [ニュースサーバへ
 |
 |--archiveキュー(保存記録オプション設定あり)
 |    | ArchRunner
 |   [メールアーカイブモジュールへ]
 |
 |--outキュー
      | OutgoingRunner 
     [配送へ]
      | バウンス発生
     bounceキュー  
      | BounceRunner
      | バウンス処理
     retryキュー  
      | RetryRunner
     [再送信]
利用者
 |
 | コマンドメール
commandキュー
 | CommandRunner
[各処理へ]
Mailman
 |通知など
 |
virginキュー
 | VirginRunner
[各処理へ]

Last-modified: 2012-03-12 (月) 17:05:08 (166d)