Yahoo Groups archive

Milter-greylist

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

Message

Sendmail, MIMEDefang,

2015-11-27 by Rudolph T. Maceyko

Hello,

I’ve been using milter-greylist for just over a week.  It’s part of my sendmail configuration alongside MIMEDefang and OpenDKIM.  This is on a CentOS 7 box using packages provided by CentOS:

sendmail-8.14.7-4.el7.x86_64
milter-greylist-4.5.12-2.el7.x86_64

Everything seems to be working well, apart from my attempts to make use of the X-Spam-Level header I set in my MIMEDefang filter.  My first attempt was just a dacl greylist header /…/ delay xxx autowhite xxx statement but it never altered the delay of matched messages.  The regex was matching though because when I put a log statement there I saw the log.  I also noticed that when I tried to log the matched substrings I got empty values instead.

My current attempt is below, this time trying to make use of a variable.  But messages come in, MIMEDefang sets the X-Spam-Level header, and the messages do not get the delay and autowhite settings from the match on line 301 (below) as I would expect.  They’re matching on line 306 (showing that my country lookup is working in these cases).

What am I doing wrong?

Once I get this figured out I’ll do further tuning.  In case you are curious, my MIMEDefang filter calls SpamAssassin to determine whether messages are spam and only rejects spam at a high confidence level.  Below that threshold I just want to tune my greylisting parameters for now, but the spam I’m fighting here does retry so I might have to do tuning elsewhere to get rid of it.  It’s bothering me that I can’t get the dacl greylist header /…/ action to do anything apart from logging.

Thanks,
-Rudy

sendmail.mc:
define(`confINPUT_MAIL_FILTERS', `mimedefang,milter-greylist,opendkim’)dnl

greylist.conf:
   293	racl continue set $is_spam="no"
   294	dacl greylist header /^X-Spam-Level:[ ]*(.*)$/ set $is_spam="yes"
   295	
   296	racl whitelist list "my network"
   297	racl whitelist list "broken mta"
   298	racl whitelist list "known good servers"
   299	racl blacklist list "blacklist users" flushaddr
   300	
   301	racl greylist $is_spam "yes" delay 30m autowhite 90m
   302	
   303	racl whitelist list "whitelist users"
   304	
   305	#racl continue not list "ok countries" log "%i geoip country = %C"
   306	racl greylist not list "ok countries" delay 15m autowhite 45m
   307	
   308	racl greylist default

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.