Yahoo Groups archive

Milter-greylist

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

Message

sendmail.mc setup

2004-09-05 by antispamz

Hi,  New to the list.  

Not having used a milter before, I could only get it to work with 
sendmail.cf, except the greylist part got trashed any time I updated 
sendmail.mc

After hours of searching, maybe in all the wrong places, I found the 
elusive answer that seems to be assumed.  Could this be added to the 
manual to save other people the same frustration?

For those of you who build your .cf from a .mc file with m4, you must 
define:

define(`_FFR_MILTER', `1')dnl. 

Then the mail filter can be defined as: 

INPUT_MAIL_FILTER(`greylist',
`S=local:/var/milter-greylist/milter-greylist.sock')dnl
define(`confMILTER_MACROS_CONNECT', `j, {if_addr}')dnl
define(`confMILTER_MACROS_HELO', `{verify}, {cert_subject}')dnl
define(`confMILTER_MACROS_ENVFROM', `i, {auth_authen}')dnl

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.