Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] empty from field

2007-08-08 by Matt Kettler

oecher_news@... wrote:
> Hi all,
> 
> i want to configure an acl for mails with an empty from header.
> As suggested in a previous thread(starting with Message #3664) i tried the regex /^$/ and configured the following acl
> 
> acl greylist from /^$/ delay 6m autowhite 5d
> 
> In maillog i see, that the messages still hit the default acl at the end of the config file.
> Is there an error in my acl line?
> Example maillog entry:
> addr xxx[xxx.xxx.xxx.xxx] from <> to <postmaster@...> delayed for 00:06:00 (ACL 157)
> 157 is the linenumber of the default acl in the cofig.
> 
> The intention is to deactivate the autowhitelist feature for those mails. An acl line with autowhite 0 leeds to a syntax error.
> Do you have other suggestions for handling spam with empty from header?
> 
> My milter-greylist Version is 3.0
> 
> Thank you
> 

In my experience, despite claims to the contrary by Emmanuel, the From field
that gets passed to the ACLs contains the brackets. If my experience is true,
then /^$/ will never match anything.

Try /^<>$/ or /<>/ instead.

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.