[milters] Archive

Lists Index Date Thread Search

Article: 1635
From: Kevin Kretz
Date: 2007-08-13 11:57:46 -0400
Subject: milter-cli rules not working?

Removal...........: milters-request@milter.info?subject=remove
More information..: http://www.milter.info/#Support
--------------------------------------------------------

Hi,

I'm running milter-cli/0.15.40 on Linux (SE10) with sendmail 8.14.0.  
I've had it compiled and running (with no rules) for a couple of weeks.

Now I'm trying to implement some test rules to confirm its behavior and 
it's not doing what I'd expect it to.

My cf file is /etc/mail/cli-access.db.  I'm sure that milter-cli is 
looking at the right file, because when I rename it, it complains:

       Aug 13 11:48:54 intmail-fw milter-cli[11429]: open error hash 
"/etc/mail/cli-access.db": No such file or directory


I'm connecting from a machine at IP (changed) 1.2.3.4 and am sending a 
test message from kevin@mywork.com (changed) to kevin@kretz.net.  I've 
tried the following cli-access tables:

milter-cli-Connect:1.2.3.4 REJECT
milter-cli-To:kretz.net              REJECT

milter-cli-Connect:1.2.3.4 REJECT
milter-cli-To:kevin@kretz.net             REJECT

milter-cli-Connect:1.2.3.4 REJECT
milter-cli-To:!*kevin@kretz.net*!               REJECT


and none of those seem to reject a mail from client 1.2.3.4 to address 
kevin@kretz.net, though it does seem to recognize the 1.2.3.4 rule:

(10.10.10.10 is an outbound relay)



Aug 13 11:58:37 intmail-fw milter-cli[11590]: milter-cli/0.15.40 
Copyright 2005, 2007 by Anthony Howe. All rights reserved.
Aug 13 11:58:37 intmail-fw milter-cli[11590]: LibSnert/1.64.904 
Copyright 1996, 2007 by Anthony Howe. All rights reserved.
Aug 13 11:58:37 intmail-fw milter-cli[11590]: libmilter version 1.0.0
Aug 13 11:58:37 intmail-fw milter-cli[11590]: Sleepycat Software: 
Berkeley DB 4.3.29: (June 16, 2006)
Aug 13 11:58:41 intmail-fw milter-cli[11590]: 00001 NOQUEUE: enter 
smfAccessClient(80c3b50, milter-cli-connect:, greatdane.mywork.com, 
1.2.3.4, 0, 0)
Aug 13 11:58:41 intmail-fw milter-cli[11590]: 00001 NOQUEUE: enter 
smfAccessPattern(80c3b50, "1.2.3.4", "REJECT...", 0)
Aug 13 11:58:41 intmail-fw milter-cli[11590]: 00001 NOQUEUE: pin="REJECT..."
Aug 13 11:58:41 intmail-fw milter-cli[11590]: 00001 NOQUEUE: exit  
smfAccessPattern(80c3b50, "1.2.3.4", "REJECT...", 0) rc=J action=''
Aug 13 11:58:41 intmail-fw milter-cli[11590]: 00001 NOQUEUE: exit  
smfAccessClient(80c3b50, milter-cli-connect:, greatdane.mywork.com, 
1.2.3.4, 0, 0) access=74
Aug 13 11:58:41 intmail-fw milter-cli[11590]: j7DFwf115908bcf mail=<> ok
Aug 13 11:58:48 intmail-fw milter-cli[11590]: 00001 l7DFwfiL011597: 
enter smfAccessPattern(80c3b50, "kevin@mywork.com", "(NULL)...", 0)
Aug 13 11:58:48 intmail-fw milter-cli[11590]: 00001 l7DFwfiL011597: 
exit  smfAccessPattern(80c3b50, "kevin@mywork.com", "(NULL)...", 0)
rc=_ 
action=''
Aug 13 11:58:48 intmail-fw milter-cli[11590]: 00001 l7DFwfiL011597: 
enter smfAccessPattern(80c3b50, "kevin@kretz.net", "(NULL)...", 0)
Aug 13 11:58:48 intmail-fw milter-cli[11590]: 00001 l7DFwfiL011597: 
exit  smfAccessPattern(80c3b50, "kevin@kretz.net", "(NULL)...", 0)
rc=_ 
action=''
Aug 13 11:58:48 intmail-fw sendmail[11597]: l7DFwfiL011597: from="Kevin 
Kretz"<kevin@mywork.com>, size=32, class=0, nrcpts=1, 
msgid=<200708131558.l7DFwfiL011597@intmail-fw.mywork.com>, proto=ESMTP, 
daemon=MTA, relay=greatdane.mywork.com [1.2.3.4]
Aug 13 11:58:48 intmail-fw sendmail[11601]: STARTTLS=client, 
relay=[10.10.10.10], version=TLSv1/SSLv3, verify=FAIL, 
cipher=DHE-RSA-AES256-SHA, bits=256/256
Aug 13 11:58:49 intmail-fw sendmail[11601]: l7DFwfiL011597: 
to="Kevin"<kevin@kretz.net>, delay=00:00:01, xdelay=00:00:01, 
mailer=esmtp, pri=120032, relay=[10.10.10.10] [10.10.10.10], dsn=2.0.0, 
stat=Sent (l7DFwALf021585 Message accepted for delivery)




I must be missing something very basic.  Can someone point me in the 
right direction?




Lists Index Date Thread Search