use RBL only for IPv4 addrs.
This commit is contained in:
parent
7d3a3a5b91
commit
8bb1748b2e
5
gnu/dist/postfix/src/smtpd/smtpd_check.c
vendored
5
gnu/dist/postfix/src/smtpd/smtpd_check.c
vendored
@ -1488,10 +1488,15 @@ static int reject_maps_rbl(SMTPD_STATE *state)
|
||||
int dns_status = DNS_FAIL;
|
||||
int i;
|
||||
int result;
|
||||
struct in_addr a;
|
||||
|
||||
if (msg_verbose)
|
||||
msg_info("%s: %s", myname, state->addr);
|
||||
|
||||
/* IPv4 only for now */
|
||||
if (inet_pton(AF_INET, state->addr, &a) != 1)
|
||||
return SMTPD_CHECK_DUNNO;
|
||||
|
||||
/*
|
||||
* Build the constant part of the RBL query: the reverse client address.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user