[milters] Archive

Lists Index Date Thread Search

Article: 157
From: Randy Jones
Date: 2009-11-09 17:09:01 -0500
Subject: getting milter-bcc to function woes

After many hours of frustration I have finally compiled libsnert and
milter-bcc on Solaris 10. Apparently the configure script for libsnert
has "lots of opportunities for improvement".

My next problem deals with getting milter-bcc to read /etc/mail/access.db
or is it /etc/mail/access??? I really don't know what the tag/value pairs
should be put in. My sendmail.cf file has been setup for years to read
from /etc/mail/access{.dir}{.pag} from these entries in the sendmail.mc file:

define(`DATABASE_MAP_TYPE', `dbm')
FEATURE(access_db)

According to what I can glean from the milter-bcc html page is that it
is expecting to read from /etc/mail/access.db file. I am assuming that
this is a file created somehow by berkely db because of the required
libdb-4.7.so library. However I can't seem to find any documentation
in the milter-bcc page telling one how to actually create this access.db file.

I have done the following in an attempt to add a bcc to all incoming and outgoing mail.
1. created text file /etc/mail/access.milter-bcc and put the following 2 lines of text:
milter-bcc-All:	my_address@mydomain.com
milter-bcc-Connect:	my_address@mydomain.com

2. created an /etc/mail/access.db file like this
/usr/local/BerkeleyDB.4.7/bin/db_load -T -t hash -f access.milter-bcc access.db

3. restarted milter-bcc with verbose=all

4. tail -f /var/log/syslog

5. send an email

6. I can see via step 4 that milter-bcc opens /etc/mail/access.db file
and is reading something:

Nov  9 16:06:01 spock milter-bcc[21230]: [ID 468235 mail.debug] 00005 NOQUEUE:
filterOpen(750e8, 'localhost', [127.0.0.1])
Nov  9 16:06:01 spock milter-bcc[21230]: [ID 281089 mail.debug] 00005 NOQUEUE: enter
smfAccessClient(7c430, milter-bcc-connect:, localhost, 127.0.0.1, 0, fecfbd54)
Nov  9 16:06:01 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=28:"milter-bcc-connect:127.0.0.1" value=""
Nov  9 16:06:01 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=26:"milter-bcc-connect:127.0.0" value=""
Nov  9 16:06:01 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=24:"milter-bcc-connect:127.0" value=""
Nov  9 16:06:01 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=22:"milter-bcc-connect:127" value=""
Nov  9 16:06:01 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=28:"milter-bcc-connect:localhost" value=""
Nov  9 16:06:01 spock milter-bcc[21230]: [ID 880826 mail.debug] map="access"
key=19:"milter-bcc-connect:" value="" rc=-2
Nov  9 16:06:01 spock milter-bcc[21230]: [ID 423273 mail.debug] 00005 NOQUEUE: enter
smfAccessPattern(7c430, "localhost", "(NULL)...", fecfbd54)
Nov  9 16:06:01 spock milter-bcc[21230]: [ID 871788 mail.debug] 00005 NOQUEUE: exit 
smfAccessPattern(7c430, "localhost", "(NULL)...", fecfbd54) rc=_
action=''
Nov  9 16:06:01 spock milter-bcc[21230]: [ID 423273 mail.debug] 00005 NOQUEUE: enter
smfAccessPattern(7c430, "127.0.0.1", "(NULL)...", fecfbd54)
Nov  9 16:06:01 spock milter-bcc[21230]: [ID 871788 mail.debug] 00005 NOQUEUE: exit 
smfAccessPattern(7c430, "127.0.0.1", "(NULL)...", fecfbd54) rc=_
action=''
Nov  9 16:06:01 spock milter-bcc[21230]: [ID 713698 mail.debug] 00005 NOQUEUE: exit 
smfAccessClient(7c430, milter-bcc-connect:, localhost, 127.0.0.1, 0, fecfbd54) access=95
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 308144 mail.debug] 00005 nA9M61ix022668:
filterMail(750e8, 46cd0) MAIL='<randy@greatplainsmfg.com>'
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=40:"milter-bcc-from:randy@greatplainsmfg.com" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=34:"milter-bcc-from:greatplainsmfg.com" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=19:"milter-bcc-from:com" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=22:"milter-bcc-from:randy@" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 880826 mail.debug] map="access"
key=16:"milter-bcc-from:" value="" rc=-2
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 423273 mail.debug] 00005 nA9M61ix022668:
enter smfAccessPattern(7c430, "randy@greatplainsmfg.com", "(NULL)...",
fecfbdc8)
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 871788 mail.debug] 00005 nA9M61ix022668: exit
 smfAccessPattern(7c430, "randy@greatplainsmfg.com", "(NULL)...",
fecfbdc8) rc=_ action=''
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=39:"milter-bcc-all:randy@greatplainsmfg.com" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=33:"milter-bcc-all:greatplainsmfg.com" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=18:"milter-bcc-all:com" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=21:"milter-bcc-all:randy@" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 880826 mail.debug] map="access"
key=15:"milter-bcc-all:" value="" rc=-2
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 423273 mail.debug] 00005 nA9M61ix022668:
enter smfAccessPattern(7c430, "randy@greatplainsmfg.com", "(NULL)...",
fecfbdc8)
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 871788 mail.debug] 00005 nA9M61ix022668: exit
 smfAccessPattern(7c430, "randy@greatplainsmfg.com", "(NULL)...",
fecfbdc8) rc=_ action=''
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 577274 mail.debug] 00005 nA9M61ix022668:
filterRcpt(750e8, 45fa8) RCPT='<randy@jones.tri.net>'
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=33:"milter-bcc-to:randy@jones.tri.net" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=27:"milter-bcc-to:jones.tri.net" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=21:"milter-bcc-to:tri.net" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=17:"milter-bcc-to:net" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=20:"milter-bcc-to:randy@" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 880826 mail.debug] map="access"
key=14:"milter-bcc-to:" value="" rc=-2
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 423273 mail.debug] 00005 nA9M61ix022668:
enter smfAccessPattern(7c430, "randy@jones.tri.net", "(NULL)...",
fecfbdc8)
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 871788 mail.debug] 00005 nA9M61ix022668: exit
 smfAccessPattern(7c430, "randy@jones.tri.net", "(NULL)...", fecfbdc8)
rc=_ action=''
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=34:"milter-bcc-all:randy@jones.tri.net" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=28:"milter-bcc-all:jones.tri.net" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=22:"milter-bcc-all:tri.net" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=18:"milter-bcc-all:net" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 736597 mail.debug] map="access"
key=21:"milter-bcc-all:randy@" value=""
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 880826 mail.debug] map="access"
key=15:"milter-bcc-all:" value="" rc=-2
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 423273 mail.debug] 00005 nA9M61ix022668:
enter smfAccessPattern(7c430, "randy@jones.tri.net", "(NULL)...",
fecfbdc8)
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 871788 mail.debug] 00005 nA9M61ix022668: exit
 smfAccessPattern(7c430, "randy@jones.tri.net", "(NULL)...", fecfbdc8)
rc=_ action=''
Nov  9 16:06:02 spock sendmail[22668]: [ID 801593 mail.info] nA9M61ix022668:
from=<randy@greatplainsmfg.com>, size=745, class=0, nrcpts=1,
msgid=<4AF89249.9020502@greatplainsmfg.com>, proto=ESMTP, 
daemon=MTA-v4, relay=localhost [127.0.0.1]
Nov  9 16:06:02 spock milter-bcc[21230]: [ID 999770 mail.debug] 00005 nA9M61ix022668:
filterEndMessage(750e8)
Nov  9 16:06:02 spock sendmail[22670]: [ID 801593 mail.info] nA9M61ix022668:
to=<randy@jones.tri.net>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=120745,
relay=mail.greatplainsmfg.com. 
[192.168.55.32], dsn=2.0.0, stat=Sent (nA9M62VF024680 Message accepted for delivery)
Nov  9 16:06:03 spock milter-bcc[21230]: [ID 877869 mail.debug] 00005 NOQUEUE:
filterClose(750e8)


However the my_address@mydomain.com is not bcc to the email.

So what am I missing on what should be a trivial task?????

-- 
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: randy@greatplainsmfg.com
Phone: 785-823-3276
   Fax: 785-667-2695
------------------------------------------------------------------------

Lists Index Date Thread Search