はまった……。
サーバの設定で postconf -v | grep allow_mail_to_commands して forward が含まれていることを確認する。で、.forward ファイルにほげほげ書く。
ダメな .forward
|/usr/bin/procmail /home/sekido/.procmailrc && exit 0 || exit 67
「動くはずなのになー」と思っていろいろググっていたら、ダブルクォーテーションで囲まなければならないって。
動く .forward
"|/usr/bin/procmail /home/sekido/.procmailrc && exit 0 || exit 67"
「なんでだろー」と思って man aliases したらちゃんと書いてありました :-)
|command
Mail is piped into command. Commands that contain
special characters, such as whitespace, should be
enclosed between double quotes. See local(8) for
details of delivery to command.Postfix manual - aliases(5)
ちゃんと manpage に書いてあるとは思いませんでしたよ……。Related Entries
There is not related articles.
Trackbacks
Trackback URI: http://blog.c--v.net/trackback/2007/10/18/1
There is no trackback.
There is no comment.