Chris Dos wrote:
Noel Jones wrote:
It looks like I want to check for RCPT TO:<VERP_Address>
So I ran this check against the regexp table using postmap:
postmap -q "RCPT TO:<chris+no-one-home=chrisdos....@chrisdos.com>"
regexp:header_checks.regexp
and it came back with a result of DISCARD.
So I guess I don't understand how you said it will never match as
postmap said it does match.
I'm not trying to be difficult or anything, just trying to figure out
why this isn't working for me.
Don't use header_checks, use a check_recipient_access map.
It seems you trying to capture this on the sending system. You can't do
that, the sender isn't verp'ed when header_checks and smtpd_*_checks
sees the address.
-- Noel Jones
Well, I'm going to really want to forward a message that matches the regexp.
I'm just doing the discard right
now for testing. The header_checks allows me to do more than just accept or
reject.
Chris
I don't see a forward action in header_checks. Maybe you
intend to use REDIRECT? Postfix access tables allow more than
accept/reject, including REDIRECT.
http://www.postfix.org/access.5.html
But my point is that header_checks are the wrong tool for the
job. There is no guarantee that the envelope sender will be
listed in the headers you receive.
And it looks as if you're testing your header_checks on the
same machine that generates the VERP'ed mail. That won't work.
-- Noel Jones