Re: Filtering on two headers / checking MX entries ?

Mark Horn <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
On 2006-12-27, Corey Halpin <[email protected]> wrote:
>   Is there any way to express this with TMDA's filter spec?

I don't think so.  

>   Or is the best way to do this by adding a single custom header with=20
> procmail, then looking for that in TMDA?

Considering what you're trying to do, I would say yes, that's the
best way to do it.

>   Also, does anybody know of a way to check if the origin of an email (as=
>=20
> determined by the earliest of the Received headers) is actually an MX?

You could write a custom script to determine this.  Call it myscript.
Then do something like:

	pipe-headers /path/to/myscript ok

What would happen is that if the script returned 0, then it would
be delivered based on the setting of DELIVERY.  Everything else
would go through whatever you had below this in your incoming filter.

For details on "pipe" and "pipe-headers", look here:

	http://wiki.tmda.net/FilterSources

Cheers,
- Mark
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.