ケーススタディ: 自動ファイル送り返しサーバ
配送プロセス( libexec/distribute )を改造して
/etc/fml/help ファイルを送り返すことを考えます。
例えば help@fml.org MLを作り、このアドレスにメールを送ると
ヘルプファイルを送り返すというものです。
この場合の config.cf の例はこのようになります。
post_restrictions = permit_anyone
=cut の後に hook を書きます。
$distribute_run_start_hook = q{
$curproc->reply_message( {
type => "text/plain; charset=iso-2022-jp",
path => "/etc/fml/help",
filename => "help",
disposition => "help example",
});
$curproc->refuse_further_processing();
};