I am busy configuring some new gateway servers, using exim 4.69, complete with spamassasin, ClamAV and greylisting. The essential issue is that the ACL for the greylister refers to a file, which should list all the whitelisted mail servers. Each entry is either a single host or a subnet definition, like this:
10.160.0.0: \ 188.8.131.52/24: \
According to the exim4 manual, this should work. However, when the list is used, Exim throws error messages like this:
8878 host in ": +relay_from_hosts : /etc/greylistd/whitelist-hosts"? no (malformed IPv4 address or address mask)
As soon as I remove the "/24" from the above line, it all works like a charm. If I escape the "/24" with a backslash, the error doesn't show up, but the addresses are not matched correctly. either. If I need to use the form without the network masks for everything, I would have to write endless lists of IP addresses.
I have tried to google this, but no luck at all (only somebody who was using a dodgy text editor). Maybe it's worth mentioning that this runs on a DELL R310, under Debian. In order to get the OS installed and running, we had to use a special backport which identifies itself as "2.6.32-trunk-686", as the normal lenny kernel doesn't have the drivers for the mobo hardware. But I cannot see how this would impact on parsing of text files? Has anybody seen this before? Or am I just not seeing the wood for the trees here?