domain acls not working in 2.0b3?
2005-03-23 by kenedwardbrown
I recently rebuilt my mail server and upgraded my milter-greylist to
the 2.0b3 release. Yesterday I send myself an email from my work email
and noticed that it was greylisted even though my work domain has
always been whitelisted using a domain entry.
My greylist.conf contains the line (rewritten from the old format in
the 1.x release):
acl whitelist domain crww.com
I poked around this morning and here is what I am seeing.
A mail message arrives from otcfwm02.carlson.com which is passed into
acl_filter() where emailcmp("otcfwm02.carlson.com", "carlson.com")
returns no match.
I'm not sure whether the comparison should be from right to left so
that the mail host would match against the domain name or if the
machine name should be stripped from the host name before the
comparison so that the test would be emailcmp("carlson.com",
"carlson.com").
Switching the acl to:
acl whitelist domain /.*.crww.com/
and using a regular expression match works.
Has anyone else noticed a problem with whitelisting domain names?
Thanks,
Ken Brown