Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] How to use sendmail db files?

2006-10-18 by Jeff A. Earickson

On Tue, 17 Oct 2006, manu@... wrote:

> Date: Tue, 17 Oct 2006 21:50:50 +0200
> From: manu@...
> Reply-To: milter-greylist@yahoogroups.com
> To: Milter Greylist list <milter-greylist@yahoogroups.com>
> Subject: Re: [milter-greylist] How to use sendmail db files?
> 
> Jeff A. Earickson <jaearick@...> wrote:
>
>> Do I need to modify my sendmail.cf too, to add some kind of
>> "O Milter.macros" line?
>
> As explained in greylist.conf(5), your sendmail.cf must contain a
> Milter.macros.envrcpt which includes {popauth}. e.g.:
> O Milter.macros.envrcpt={rcpt_mailer},{rcpt_host},
>        {rcpt_addr},{popauth}
>
> Also, your macro definition needs to include the curly braces:
> sm_macro "POP relay" "{popauth}" "OK"

I am still scratching my head over this issue, and I am wondering
how to test my setup, without having access to a remote host account
(offsite).  Is there any way to test milter-greylist (or any other
milter) via sendmail itself?  I was experimenting with the following
on my mail server:

% /usr/lib/sendmail -Am -bs -d64.5
milter_set_option(LogLevel = 12)
milter_set_option(macros.connect = j, {if_addr})
milter_set_option(macros.helo = {verify}, {cert_subject})
milter_set_option(macros.envfrom = i, {auth_authen})
milter_set_option(macros.envrcpt = {rcpt_mailer},{rcpt_host},{rcpt_addr},{popauth})
milter_set_option(macros.eom = {msg_id})
milter_negotiate(greylist): version 2, fflags 0x1, pflags 0x372
srvrsmtp.c:855: SM_ASSERT(q != NULL) failed
Abort
(hmmm, wonder what this is about???)

% /usr/lib/sendmail -bt -d64.5
milter_set_option(LogLevel = 12)
milter_set_option(macros.connect = j, {if_addr})
milter_set_option(macros.helo = {verify}, {cert_subject})
milter_set_option(macros.envfrom = i, {auth_authen})
milter_set_option(macros.envrcpt = {rcpt_mailer},{rcpt_host},{rcpt_addr},{popauth})
milter_set_option(macros.eom = {msg_id})
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> .D{client_addr}69.165.110.82
> /map popauth 69.165.110.82
map_lookup: popauth (69.165.110.82) returns OK<OK> (0)
>

What next to trigger/test a milter via sendmail?

Jeff Earickson
Colby College

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.