On Tue, 23 Aug 2011 12:41:12 +0100 De Ranter, Nico wrote:
> Hi,
>
>
>
> I'm receiving a large number of spam messages from addresses of the form
> name@ip-address. I'm already blocking addresses of the form
> @[ip-address] using 'allow_domain_literals=false' but this doesn't seem
> to stop @ip-address.
>
>
>
> Any ideas how I can do this?
>From the documentation "11.7 Expansion conditions":
| isip {<string>}, isip4 {<string>}, isip6 {<string>}
|
| The substring is first expanded, and then tested to see if it has the form
| of an IP address. Both IPv4 and IPv6 addresses are valid for isip, whereas
| isip4 and isip6 test specifically for IPv4 or IPv6 addresses.
|
| For an IPv4 address, the test is for four dot-separated components, each of
| which consists of from one to three digits. For an IPv6 address, up to
| eight colon-separated components are permitted, each containing from one to
| four hexadecimal digits. There may be fewer than eight components if an
| empty component (adjacent colons) is present. Only one empty component is
| permitted.
In your case <string> will be $sender_address_domain.
--Frank Elsner