[milters] Archive

Lists Index Date Thread Search

Article: 1271
From: Jon Freeland
Date: 2006-11-18 10:24:09 -0500
Subject: Re: milter-abook tags all messages as [UNKNOWN]

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

On Sat, 18 Nov 2006, Anthony Howe wrote:
> Jon Freeland wrote:
>> I'm trying to figure out if I can't read or if I'm retarded or if there is just
>> a simple explanation for all of my problems with milter-abook.
>> The way I read the tag line for it is any messages coming in from people I have
>> never sent email to _should_ get tagged as [UNKNOWN]. However, if I send an
>> email to joe@bob.com, then that address should get added to the cache, and if
>> joe@bob.com sends me any emails, they should pass through with no tagging.
>> My mail server and the server running the filter are on two separate machines.
> Your inbound and outbound mail servers must both share the same cache.
> Currently the only way to do this is have the milter run on one machine
> and have the second machine use an internet socket to consult the milter
> on the first machine. If you have TWO separate instances of the milter,
> you have two separate caches; using NFS to share the caches is not
> advised due to file locking issues typical of NFS.

I apologize for not being more specific the first time. The inbound and 
outbound mail server are the same machine (let's say "host A"), the filter 
machine is separate ("host B") and the mail server communcates via an 
internet socket to the filter (inet:4321@hostb.mydomain.com). There is 
only one instance of the milter.

The mail server does have an ethernet alias interface configured which is 
the one that sendmail listens to for my personal email server (which is 
what I'm using to test with before turning this loose on our main server).

Here is how that looks:

hostB.mydomain.com: (milter host)

hostA.mydomain.com: (main host eth0)
myotherdomain.net: (alias host eth0:0 - sendmail listens 
only on this address and

In the access.db of hostB where the milter runs, I have entries like:
mydomain.com		RELAY
myotherdomain.net	RELAY

Sending mail via pine running on hostA.mydomain.com (which has 
myotherdomain.net as the outgoing mail server), this is what I get in the 
logs (names changed to protect the guilty):

Nov 16 17:48:14 hostA sendmail[24557]: kAGMmDhS024557:
from=<myself@myotherdomain.net>, size=304, class=0, nrcpts=1,
msgid=<Pine.LNX.4.64.0611161748060.24552@hostA.mydomain.com>, proto=ESMTP,
daemon=MTA, relay=myotherdomain.net []
Nov 16 17:48:15 hostA sendmail[24559]: kAGMmDhS024557: to=<someone@ggmail.com>,
ctladdr=<myself@myotherdomain.net> (500/500), delay=00:00:01, xdelay=00:00:01,
mailer=esmtp, pri=120304, relay=ggmail-smtp-in.l.ggoogle.com. [666.249.83.27], dsn=2.0.0,
stat=Sent (OK 1163717295 h35si4255633wxd)
Nov 16 17:48:40 hostA sendmail[24570]: kAGMmdON024570: from=<someone@ggmail.com>,
size=1981, class=0, nrcpts=1,
msgid=<337d6c430611161448o27de89fdndf7c20b1bfbf12f0@mail.ggmail.com>, proto=ESMTP,
daemon=MTA, relay=ug-out-1314.ggoogle.com [666.249.92.170]
Nov 16 17:48:40 hostA sendmail[24570]: kAGMmdON024570: Milter change: header Subject: from
Re: test to [UNKNOWN] Re: test
Nov 16 17:48:40 hostA sendmail[24572]: kAGMmdON024570:
to=<myself@myotherdomain.net>, delay=00:00:00, xdelay=00:00:00, mailer=local,
pri=32208, dsn=2.0.0, stat=Sent

The entry is in the cache:
someone@ggmail.com      455ceaae 455dd211 2 2

This is in the logs on the cache server:
Nov 16 17:48:14 hostB milter-abook[17932]: 00002 NOQUEUE: host myotherdomain.net
[] OK
Nov 16 17:48:14 hostB milter-abook[17932]: 00002 kAGMmDhS024557: sender
<myself@myotherdomain.net> OK
Nov 16 17:48:14 hostB milter-abook[17932]: 00002 kAGMmDhS024557: sender
<myself@myotherdomain.net> white listed, skipping
Nov 16 17:48:39 hostB milter-abook[17932]: 00003 kAGMmdON024570: sender
<someone@ggmail.com> cached, OK
Nov 16 17:48:40 hostB milter-abook[17932]: 00003 kAGMmdON024570: recipient
<myself@myotherdomain.net> OK

I tried again this morning with the loglevel as 14 in sendmail and got 
this (all other things being equal except the msgid and times):

Nov 18 10:14:12 hostA sendmail[19710]: kAIFE81g019710: milter=milter-abook, action=header,
Nov 18 10:14:12 hostA last message repeated 10 times

Then it laughs at me and tags the subject as [UNKNOWN] again...



Lists Index Date Thread Search