LMTP uses real_remote_ip for checking the trust. This means:
* LMTP proxy checks MTA's IP address
* LMTP backend checks LMTP proxy's IP address
* If haproxy is used in front of this LMTP server, the haproxy's IP address is
checked. This may not be what is always wanted, but in LMTP backend it
wouldn't be correct to check the original client IP (= MTA IP) either.
break;
}
- if (net_is_in_network(&client->remote_ip, &net_ip, bits))
+ if (net_is_in_network(&client->real_remote_ip, &net_ip, bits))
return TRUE;
}
return FALSE;