Re: filtering question
Michael Bierman wrote:
> Since these are "disposable" addresses, I want to send any mail that
> has them in any header at all to /dev/null. Initially my web hosting
> company suggested that I could use the "$return_path" but I tired it
That's wrong, $return_path contains the sender address, not the recipient.
You could try $local_part (contains the recipient without domain), but
that may be rewritten when forwarded to your user1 (depends on their setup).
The problem with Envelope-To is, that it's added by the transport, but
the filter has to run before that.
Another way could be to filter on the content of the Received header.
Exim puts all recipients there.
Anyway, it would be much better if the ISP had some ACL to allow users
to block these things without fiddling in a filter. I don't know cPanel,
but in a good, extensible setup this is not a big deal.
> and couldn't get that to work. At that point they said, "you are
> trying to set filter for non existing e-mail accounts which is a very
> un-common approach and not very well documented. It also is not
Sounds like blabla. What is a "e-mail account"? From the outside, the
addresses are reachable, so the accounts exists. Anyway, this has
nothing to do with your problem.
|