From: Wietse Venema (no email)
Date: Fri May 02 2008 - 07:10:27 EDT
MacShane, Tracy:
> However, if I try to query the access map using postmap -q, nothing is
> returned:
>
> [smtp3]# postmap -q "cpe-74-76-15-20.nycap.res.rr.com"
> hash:/etc/postfix/client_access
> [smtp3]#
>
> This is driving me nuts, and evidently didn't help when I was trying to
> troubleshoot the issue with the .gov.au hosts. Can anyone shed any light
> on why postmap -q isn't returning the expected values? The server is
> RHEL 4 ES, and it's the distribution's Postfix build. Running similar
> queries on PCRE and CIDR maps works as expected (ie. values like REJECT
> and OK are returned).
The behavior of PCRE/CIDR maps is documented in the access table.
The postmap -q command does not generate subnet or parent domain queries.
If I find the time I may add postmap options to simulate subnet/parent
domain queries; I recently added command-line options to simulate
header_checks (multi-line) and body_checks queries, but I can't
implement everything before people need it.
In the end, the substring query magic needs to be implemented as
reusable functions, so that it can be reused in postmap, instead
of being duplicated there.
Wietse
|
|
|