|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Jonathan Towne (jontow
hijacked.us)
Date: Mon Mar 05 2007 - 17:46:37 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Mar 06, 2007 at 12:41:43AM +0100, mouss scribbled:
# Jonathan Towne wrote:
# >Hello all,
# >
# >
# >I'm trying to setup a pgsql based map for mynetworks lookups
# >because I've got 60+ mailservers to deal with and separate
# >networks for each. They'll all be using one database server
# >for vmailbox lookups, and I'd prefer they do the same for the
# >mynetworks settings.
# >
# >My problem is: I've got it setup with what I think is a
# >reasonable configuration, but it looks like postfix is
# >passing the FQDN instead of the connecting IP to my query.
# >
# >
#
# whenc looking up clients, postfix will try the hostname beofre trying
# the IP. you may try adding an extra condition to the where statement to
# make sure the '%s' looks like an IP. an ugly hack though...
#
# if it's a check_client_access, you can guard against hostnames using a
# pcre map that returns a restriction class which in turn runs the sql
# query. again, not very convincing...
#
# maybe someone has a better suggestion.
The purpose is to restrict relay access in an IP-based manner; this
actually is happening upon connect, making it fail to supply the
SMTP banner and accept connections correctly, even.. I don't quite
know what to make of it.
'disable_dns_lookups=yes' didn't change the behavior any, either.
-- Jonathan Towne
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]