Hi
I plan to add a tuple override feature: it will be possible to set the
tuple that will be greylisted and autowhitelisted from an ACL, overriding
milter-greylist usual behavior.
The specified tuple will get expaded using milter-greylist format strings,
enabling custom matching for the IP and e-mail addresses.
Here is an idea:
acl greylist addr 192.0.2.0/24 tuple "%I{/24},%f,%r"
NB: %I{/24} is substituted by the sender IP address masked by /24.
192.0.2.45 becomes 192.0.2.0. This has been added in CVS two days ago.
Another example:
acl greylist from /\.example\.com/ tuple "%i,%mf@...,%r"
And John.Doe@... will get greylisted as John.Doe@...
I need your feedback on the syntax. Which one would you prefer?
acl greylist tuple "addr,from,rcpt"
acl greylist tuple "addr","from","rcpt"
acl greylist tuple "addr" "from" "rcpt"
acl greylist addr_tuple "addr" from_tuple "from" rcpt_tuple "rcpt"
--
Emmanuel Dreyfus
manu@...Message
RFC: tuple override
2007-02-06 by Emmanuel Dreyfus
Attachments
- No local attachments were found for this message.