Forums: users (Thread #10329)

Mew+bsfilterで複数POPから受信するには? (2006-02-28 14:19 by Anonymous #20249)

Mew+bsfilterでスパム対策を始めようと思っておりますが,複数のPOPサーバーから受信する方法が良く分かっておりません.
.mew.elやbsfilterの起動オプションはどのようになるのでしょうか?

Reply to #20249×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: Mew+bsfilterで複数POPから受信するには? (2006-03-01 17:15 by Anonymous #20293)

重要なことを言い忘れておりましたが,
Mew単独では複数POPからきちんと受信できておりますが,bsfilterをpop-proxyで使うと1つのPOPサーバーのみ受信可能という状態です.

--pop-proxy-set

で3つ設定してみたのですが,最初の1つだけOKであとはNGでした...
Reply to #20249

Reply to #20293×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: Mew+bsfilterで複数POPから受信するには? (2006-03-01 18:18 by a39 #20297)

質問する際は,どのように設定したらうまくいかなかったのかを提示しませんか.
bsfilter の help message にあるように,複数の set はコンマで区切って指定できていますけれど.

ex.

$ bsfilter --pop --insert-flag --insert-probability --pop-proxy-set mx.example.com:110:127.0.0.1:10001,mx.example.org:110:127.0.0.1:10002,mx.example.net:110:127.0.0.1:10003,mx.example.jp:110:127.0.0.1:10004 &

などとして起動すれば,それぞれ 127.0.0.1 (localhost) の各ポート経由でそれぞれのPOPサーバに接続できますよ.

proxy-interface を明示的に指定しているのは,bsfilter が動作しているホストからの中継しか許可しないようにしているだけです.これを省略すると,全てのインタフェースにbindしますから,適切にパケットフィルタを設定しないと他人に踏み台にされたりする可能性があります.;-)
Reply to #20249

Reply to #20297×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: Mew+bsfilterで複数POPから受信するには? (2006-03-02 10:50 by Anonymous #20329)

質問したものですが,無精をして設定内容の記述を省略してしまいました。
おっしゃるとおり,内容が分からなければご指導いただける訳ありませんよね。
私の設定を見直してみましたが,ご提示くださったものとほぼ同じ(proxy-portを10110,20110,30110にしている以外は全て同じ)でした。

% ps ax | less

して動いているか確認しましたら何故か動いていませんでした。
テストのときは動いていたのですが...

最終的に確認しましたら,今回の原因は.mew.elの

pop-proxy-server
pop-proxy-port

の整合性がなかったためと判明いたしました。
お騒がせいたしました。
冷静になり,再確認することの重要性を改めて認識いたしました。

ありがとうございました。
Reply to #20297

Reply to #20329×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: Mew+bsfilterで複数POPから受信するには? (2006-03-02 11:10 by a39 #20331)

複数の POP サーバを指定するような場合は,mew-config-alist を定義して,case を切り替えるような設定をしていると思います.

pop-proxy-server
pop-proxy-port

ではなく,pop-server, pop-port ではないでしょうか.

pop-proxy が走らせているホストが localhost であれば

pop-server は定義しない(default は nil)か,localhost と指定します.
pop-port は指定した port を記述するだけですね.

ちょっとした typo 等が原因の可能性もあります.
実ユーザ名や,実サーバ名まで公開する必要はありませんが,例示用適宜別名に置き換えて,問題ない範囲で設定を公開してしまった方が近道でしょう.

こうした case study が,他の人にも役立つ筈です.:-)

Reply to #20329

Reply to #20331×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: Mew+bsfilterで複数POPから受信するには? (2006-03-02 12:44 by Anonymous #20334)

pop-proxy-server/portはbsfilterを指定してpop-server/portはプロバイダのサーバを指定するのが
お勧めの使い方です。
bsfilterを通してincしたり通さずにincしたり
混在して使うときに違いがわかります。
あとパスワードを聞かれるときにはpop-serverを表示するので
pop-serverをlocalhostにしているとちょっと困るはず。
Reply to #20331

Reply to #20334×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: Mew+bsfilterで複数POPから受信するには? (2006-03-02 13:08 by a39 #20335)

info に載っていない事項なので,見落としていました.

mew-config.el で mew-pop-proxy-{server,port} が定義されていますね.
case にも対応していて,そちらが pop-proxy-{server,port} のようですね.

mew-pop.el を見る限りでは,proxy の方が優先されるようです.

ということで,設定方法については,(None) さんの設定の方が better なようですね.

小生は,mode line の case で見分けていたりします.
複数のホストを道具に使うことがあるので,primary の環境以外では,case によって,POP の場合でも spool に残したり残さなかったりという使い方をしています.
server が判るより case が判った方が嬉しかったりするという,特殊な事例なのかもしれません.


Reply to #20334

Reply to #20335×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login