[Pymilter] [PATCH] Accept DNS names in iniplist

Stuart D Gathman stuart at bmsi.com
Tue Mar 25 12:31:37 EDT 2014


On Mar 24, David Caldwell transmitted in part:

> The iniplist() function takes an ip address and reports whether it is in
> a list or not. This patch lets you use a DNS name in the list and
> resolves it when looking for the IP address.
>
> This lets settings like "trusted_relay" in the spf milter use a DNS name
> which is stable in the long term, where the IP address is not.

This is a good idea.  The patch does not handle cidr, however, and
I'm pretty sure from eyeballing it that it doesn't work for IP6 either.
I'll polish it up and add it, however.



More information about the Pymilter mailing list