<< 夕陽 | top | デジカメ壊れた >>

postfix + Sendmail::Milter

Sendmail::Milterで遊ぼうととりあえずPODのサンプルを動かしてみます。

Sendmail::Milter::auto_setconn("myfilter");

はsendmail.cfから自動的に設定を引っ張ってくるので、postfixでは当然動きません。ので、

Sendmail::milter::setconn("local:/tmp/milter.sock");

と変更。これで動くはず…

Aug 23 12:14:14 beta postfix/smtpd[2918]: warning: milter unix:/tmp/milter.sock: can't read SMFIC_OPTNEG reply packet header: Unknown error: 0
Aug 23 12:14:14 beta postfix/smtpd[2918]: warning: milter unix:/tmp/milter.sock: read error in initial handshake

が、なんて言われて動きません。(これはpostfixのログ)

試行錯誤の結果、

- Sendmail::Milter::register("myfilter",\%my_milter_callbacks, SMFI_CURR_ACTS);
+ Sendmail::Milter::register("myfilter",\%my_milter_callbacks, SMFI_V2_ACTS);
したら動きました。
2007/08/23 20:10更新

この記事にコメントする:
:
:(spamよけのダミーです。入力しないでください)

この記事のトラックバックURL: http://www.sonorilo.net/tb/2339

タグ

www.flickr.com
This is a Flickr badge showing public items from suzukis tagged with japan. Make your own badge here.

最近の話題 RSS feed

最近のコメント

あわせて読みたい
人気ブログランキング - とある技術屋の戯れ言 この日記のはてなブックマーク数
メール("no-spam."を削除してください)