当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

How to create filter based upon ip address in header

  • 4 件の返信
  • 1 人がこの問題に困っています
  • 1 回表示
  • 最後の返信者: rp108

more options

Hi,

I am receiving spam/spoofing attempts from a foreign ip.

Unfortunately, the email has been spoofed to show that the email comes TO MY ADDRESS, and FROM MY ADDRESS.

The header has the ip address of the sender.

Is there a way to create a filter that examines the Header and if the ip or part-of the ip is there to filter the email?

Thankyou ! rp

Hi, I am receiving spam/spoofing attempts from a foreign ip. Unfortunately, the email has been spoofed to show that the email comes TO MY ADDRESS, and FROM MY ADDRESS. The header has the ip address of the sender. Is there a way to create a filter that examines the Header and if the ip or part-of the ip is there to filter the email? Thankyou ! rp

選ばれた解決策

The header usually contains multiple Received headers. So it will only check the first encountered, as I said earlier. The result is the filter will be hit and miss, and most probably more miss than hit.

Is there any other commonality you could select like part of the Message-ID:

この回答をすべて読む 👍 2

すべての返信 (4)

more options

in Filters the list of things to match includes a customize entry. you can add any header field you like. But where the field occurs more than once the one closes to the top only will be read. (I think a bug, but it is how it works)

When adding a header field use the name exactly as it appears before the : once you have the header field you can then use contains to test for the IP address.

more options

Hi Matt,

Tnx so much for replying.

The exact Header text from one of these emails is; Received: from [184.154.177.50]

SO the field "name" is "Received" yes?

I just tried it. "Received" is now a choice !!!

So then I will use "contains" in the next Dialog Text Box and put in .... say at least the first few parts of the IP address, 184.154

So do you think that will work?

The reason that I am uncertain, is that I constructed a filter on just some of the plain text in the email and the Thunderbird filter seemed to ignore it.

Almost like there was some encoding going on that Thunderbird was happily decoding for me, but if that is so, I don't know how to see the "raw" text.

Hope this is not too much.

You are brilliant.

Many thanks, rp

more options

選ばれた解決策

The header usually contains multiple Received headers. So it will only check the first encountered, as I said earlier. The result is the filter will be hit and miss, and most probably more miss than hit.

Is there any other commonality you could select like part of the Message-ID:

more options

Tnx again Matt,

I will keep working with it, but now I understand how this works.

Tnx for sticking with me on this.

All the Best to you, rp