Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-13 23:57 UTC

Message

exact match for rcpt/from/domain

2005-03-11 by manu@netbsd.org

Problem: rcpt/from/domain rules currently perform a substring match. For
instance if you write 
acl whitelist x@...

This will match xx@.... 

People proposed to change that to an exact match. I objected that this
would change the default behavior and break backward compatibility.
After thinking about it for a while, I came to the conclusion that the
current behavior is misleading and not correctly documented. It's just a
trap in which milter-greylist users regularly fall. I'm tempted to call
it a bug.

So I think about changing the default behavior to an exact match minus
brackets. We strip trailing and leading <> from strings, then we do a
case-insensitive exact match.

Here is a patch that does that:
http://ftp.espci.fr/shadow/manu/exactmatch.patch

If nobody object, I'll commit it and release 2.0beta3

While I'm here, I'd like to be sure I didn't forget any pending patch.
For now 2.0beta3 has the following changes: 
        Fix build problem with spf
        Fix bad DESTDIR specification for /etc/mail
        Change e-mail matching to exact match

If you submitted a patch and don't find it in the above list, please
complain.

-- 
Emmanuel Dreyfus
Le cahier de l'admin BSD 2eme ed. est dans toutes les bonnes librairies
http://www.eyrolles.com/Informatique/Livre/9782212114638/livre-bsd.php
manu@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.