Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Blacklisting syntax

2006-08-08 by Emmanuel Dreyfus

On Tue, Aug 08, 2006 at 08:35:35AM -0500, Jack L. Stone wrote:
> The man page sez this:
> The domain, from, and rcpt clauses may be  used  with  regular  expres-
>        sions.  The  regular  expressions  must  be enclosed by slashes (/). No
>        escaping is available to provide a slash inside a  regular  expression,
>        so  just do not use it. Regular expressions follow the format described
>        in re_format(7).  Here is an example:
> 
>          acl greylist rcpt /.*@.../

The man page contains the missing \ but does not displau it :-(

Here is a patch that fix it at mine. hat about you?
Index: greylist.conf.5
===================================================================
RCS file: /cvsroot/milter-greylist/greylist.conf.5,v
retrieving revision 1.39
diff -U1 -r1.39 greylist.conf.5
--- greylist.conf.5     8 Aug 2006 12:43:17 -0000       1.39
+++ greylist.conf.5     8 Aug 2006 13:53:03 -0000
@@ -130,3 +130,3 @@
 .PP
-  acl greylist rcpt /.*@example\.net/
+  acl greylist rcpt /.*@example\\.net/
 .PP
@@ -219,7 +219,7 @@
 
-acl whitelist rcpt /.*@.*otherdomain\.org/
+acl whitelist rcpt /.*@.*otherdomain\\.org/
 acl whitelist addr 192.168.42.0/24 rcpt user1@...
-acl whitelist from friend@... rcpt /.*@.*mydomain\.org/
+acl whitelist from friend@... rcpt /.*@.*mydomain\\.org/
 acl whitelist rcpt user2@...
-acl greylist rcpt /.*@.*mydomain\.org/
+acl greylist rcpt /.*@.*mydomain\\.org/
 acl whitelist default


-- 
Emmanuel Dreyfus
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.