Yahoo Groups archive

Milter-greylist

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

Thread

Grey list when empty Message-ID + dacl question

Grey list when empty Message-ID + dacl question

2016-02-24 by Mauricio Teixeira

Hey guys,

Does anyone know how how to grey list a sender when the Message-ID header is empty, or not even present at all?

(Note: I'm using milter-greylist with Postfix)

I have tried various combinations, but none of those conditions ever match:

dacl greylist header /^Message-ID:!(.*)/ msg "empty message id"
dacl greylist header /^Message-ID:$/ msg "empty message id"
dacl greylist header /!(Message-ID)/ msg "missing message id"

Also, just as a test, I searched for a random string in the headers, "greylist" action doesn't do anything at all (just let the message pass), and "blacklist" drops the message on the server side, but returns a "message queued" to the client.

Any thoughts?

Thank you.

--
Mauricio Teixeira
Sao Paulo/SP/BR
http://mteixeira.wordpress.com
mauricio.teixeira{at}gmail.com
(irc: netmask on freenode)

Re: [milter-greylist] Grey list when empty Message-ID + dacl question

2016-02-24 by manu@...

Mauricio Teixeira mauricio.teixeira@... [milter-greylist]
<milter-greylist@yahoogroups.com> wrote:

> Does anyone know how how to grey list a sender when the Message-ID header
> is empty, or not even present at all?

You want to do something on no match:
dacl whitelist header /^Message-ID:/
dacl greylist default msg "empty message id"

I guess you could do a more complex scenario using variables:
dacl continue header /^Message-ID:/ set $has_msgid="yes"
dacl greylist $has_msgid "yes" msg "empty message id"

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

Re: [milter-greylist] Grey list when empty Message-ID + dacl question

2016-02-26 by Mauricio Teixeira

You want to do something on no match:
dacl whitelist header /^Message-ID:/
dacl greylist default msg "empty message id"


This almost worked:

milter-greylist: Mail from=<me@...>, rcpt=(nil), addr=testserver[10.10.10.101] is matched by entry dacl 137 greylist [msg "empty message id"] [maxpeek -1] default

However the message is not being grey listed, and still being delivered.

I guess you could do a more complex scenario using variables:
dacl continue header /^Message-ID:/ set $has_msgid="yes"
dacl greylist $has_msgid "yes" msg "empty message id"


This does not match if the header is not present. Only if the header is present but empty. Even so, the message never gets grey listed either.

Any other thoughts?

--
Mauricio Teixeira
Sao Paulo/SP/BR
http://mteixeira.wordpress.com
mauricio.teixeira{at}gmail.com
(irc: netmask on freenode)

Re: [milter-greylist] Grey list when empty Message-ID + dacl question

2016-02-27 by manu@...

Mauricio Teixeira mauricio.teixeira@... [milter-greylist]
<milter-greylist@yahoogroups.com> wrote:

> milter-greylist: Mail from=<me@...>, rcpt=(nil),
> addr=testserver[10.10.10.101] is matched by entry dacl 137 greylist [msg
> "empty message id"] [maxpeek -1] default
> 
> However the message is not being grey listed, and still being delivered.

Are there subsequent rules in the file? 

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

Re: [milter-greylist] Grey list when empty Message-ID + dacl question

2016-02-29 by Mauricio Teixeira

> milter-greylist: Mail from=<me@...>, rcpt=(nil),
> addr=testserver[10.10.10.101] is matched by entry dacl 137 greylist [msg
> "empty message id"] [maxpeek -1] default
>
> However the message is not being grey listed, and still being delivered.

Are there subsequent rules in the file?


There are no dacl rules after that. That's the only one we use. Everything else is racl.

--
Mauricio Teixeira
Sao Paulo/SP/BR
http://mteixeira.wordpress.com
mauricio.teixeira{at}gmail.com
(irc: netmask on freenode)

Re: [milter-greylist] Grey list when empty Message-ID + dacl question

2016-03-06 by manu@...

Mauricio Teixeira mauricio.teixeira@... [milter-greylist]
<milter-greylist@yahoogroups.com> wrote:

> There are no dacl rules after that. That's the only one we use. Everything
> else is racl.

And what was the match for racl? I do not recall how it is suppose to
behave if RCPT and DATA stage disagree. I assume DATA stage prevails,
but there may be bugs hiding here.

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

Re: [milter-greylist] Grey list when empty Message-ID + dacl question

2016-03-07 by Mauricio Teixeira

The dacl matched, but the message was not grey listed at all.
Show quoted textHide quoted text
On Sun, Mar 6, 2016 at 2:52 AM manu@... [milter-greylist] <milter-greylist@yahoogroups.com> wrote:

Mauricio Teixeira mauricio.teixeira@... [milter-greylist]
<milter-greylist@yahoogroups.com> wrote:

> There are no dacl rules after that. That's the only one we use. Everything
> else is racl.

And what was the match for racl? I do not recall how it is suppose to
behave if RCPT and DATA stage disagree. I assume DATA stage prevails,
but there may be bugs hiding here.



--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

--
Mauricio Teixeira
Sao Paulo/SP/BR
http://mteixeira.wordpress.com
mauricio.teixeira{at}gmail.com

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.