[milters] Archive

Lists Index Date Thread Search

Article: 482
From: Jeff Groves
Date: 2005-04-07 15:14:46 -0400
Subject: Re: How to I enable access.db?

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

You should only have one FEATURE(`access_db...) entry in your file, and 
it needs to be below the "VERSIONID" entry.  Where you have it now it's 
in the comment section and will never be read by the M4 compiler.
I suggest that you move the FEATURE(`access_db',`hash -T<TMPF> -o 
/etc/mail/access.db')dnl  entry to the point in the file immediately 
after DOMAIN(generic)dnl.

Good luck,


Jeff G.


Ismael Perin wrote:

>Removal...........: milters-request@milter.info?subject=remove
>More information..: http://www.milter.info/#Support
>--------------------------------------------------------
>
>The errors continue to happen.
>Sendmail work to deny using access.db
>
>Ex:
>"1.2.3.4 REJECT" is ok
>But,
>"From:a@a.com OK" not work...
>
>What I do?
>
>
>This is my /etc/mail directory:
>---------------------------------------
>[root@pinky mail]# ls -la
>total 344
>drwxr-xr-x    4 root     smmsp        4096 Abr  7 11:40 .
>drwxr-xr-x   59 root     root         8192 Abr  7 14:10 ..
>-rw-r--r--    1 root     smmsp       19566 Abr  6 14:18 access
>-rw-r--r--    1 root     smmsp       45056 Abr  6 14:18 access.db
>-rw-r--r--    1 root     smmsp        7306 Abr  7 09:03 milter-sender.cf
>-r--r--r--    1 root     smmsp       59034 Abr  6 17:25 sendmail.cf
>---------------------------------------
>
>This is my log
>---------------------------------------
>Apr  7 14:25:53 pinky milter-sender[6360]: access database support disabled
>Apr  7 14:25:53 pinky milter-sender[6360]: milter-sender/0.62.837 Copyright 
>2002, 2004 by Anthony Howe. All rights reserved.
>Apr  7 14:25:53 pinky milter-sender[6360]: LibSnert/1.40.622 Copyright 1996, 
>2004 by Anthony Howe. All rights reserved.
>Apr  7 14:25:53 pinky milter-sender[6360]: Sendmail libmilter Protocol 
>version 2
>Apr  7 14:25:53 pinky milter-sender[6360]: Sleepycat Software: Berkeley DB 
>4.1.25: (December 19, 2002)
>---------------------------------------
>
>And this is my file sendmail.mc
>---------------------------------------
>
>divert(-1)
>#
># Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
>#       All rights reserved.
># Copyright (c) 1983 Eric P. Allman.  All rights reserved.
># Copyright (c) 1988, 1993
>#       The Regents of the University of California.  All rights reserved.
>#
># By using this file, you agree to the terms and conditions set
># forth in the LICENSE file which can be found at the top level of
># the sendmail distribution.
>#
>#
>
>FEATURE(`access_db')
>FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
>
>
>#
>#  This is a generic configuration file for Linux.
>#  It has support for local and SMTP mail only.  If you want to
>#  customize it, copy it to a name appropriate for your environment
>#  and do the modifications there.
>#
>
>divert(0)dnl
>VERSIONID(`$Id: generic-linux.mc,v 8.1 1999/09/24 22:48:05 gshapiro Exp $')
>OSTYPE(linux)dnl
>DOMAIN(generic)dnl
>MAILER(local)dnl
>MAILER(smtp)dnl
>
>dnl -------------------------------------------------------------------
>dnl milter-sender.mc
>dnl -------------------------------------------------------------------
>dnl Example configuration to be added to sendmail.mc.
>dnl
>
>define(`_FFR_MILTER', `1')dnl
>
>dnl -------------------------------------------------------------------
>dnl Enable this for debug output from Sendmail.
>
>dnl define(`confLOG_LEVEL', `14')dnl
>
>dnl -------------------------------------------------------------------
>dnl Enable this to see even more debug output.
>dnl Defaults to confLOG_LEVEL.
>dnl
>dnl If Milter.LogLevel is greater-than:
>dnl
>dnl     0       Communication errors
>dnl     8       Header & RCPT modification messages
>dnl     9       Connect to info
>dnl     10      Milter error return codes, abort messages
>dnl     12      More return code info, connection/open errors
>dnl     14      grey & rcpts info
>dnl     17      Show headers & body sent to a milter.
>dnl     18      Quit
>dnl     21      Time a milter
>
>dnl define(`confMILTER_LOG_LEVEL', 14)dnl
>
>dnl -------------------------------------------------------------------
>dnl Note that the F= says what to do with the message if the milter
>dnl is not running.
>dnl
>dnl     F=T     Temporary fail connection if filter unavailable
>dnl     F=R     Reject connection if filter unavailable
>dnl
>dnl If no F= specified and there is a problem with the milter, then
>dnl the default is to continue normal handling, skipping the milter.
>dnl
>dnl Note that the T= specifies timeouts for communication. The
>dnl following fields are defined:
>dnl
>dnl     C       Timeout for connecting to a filter. If set to zero (0),
>dnl             the system's connect() timeout will be used. Default: 5m
>dnl     S       Timeout for sending information from the MTA to a
>dnl             filter. Default: 10s
>dnl     R       Timeout for reading reply from the filter. Default: 10s
>dnl     E       Overall timeout between sending end-of-message to filter
>dnl             and waiting for the final acknowledgment. Default: 5m
>dnl
>dnl So the default values are equivalent to:
>dnl
>dnl     T=C:5m;S=10s;R=10s;E:5m
>dnl
>
>INPUT_MAIL_FILTER(
>        `milter-sender',
>        `S=unix:/var/lib/milter-sender/socket, T=C:1m;S:30s;R:6m;E:1m'
>)dnl
>
>dnl define(
>dnl     `confMILTER_MACROS_CONNECT', `j, _, {daemon_name}, {if_name}, 
>{if_addr}, '
>dnl     `{client_addr}, {client_name}, {client_port}, {client_resolve}'
>dnl )dnl
>
>define(
>        `confMILTER_MACROS_CONNECT', confMILTER_MACROS_CONNECT`,
>        {client_addr}, {client_name}, {client_port}, {client_resolve}'
>)dnl
>define(
>        `confMILTER_MACROS_HELO', confMILTER_MACROS_HELO`,
>        {verify}'
>)dnl
>
>dnl
>dnl Disables VRFY, EXPN, requires HELO, no return receipts,
>dnl bounce messages without message body. The important one
>dnl required by milter-sender is `goaway'. The others are
>dnl recommended.
>dnl
>define(`confPRIVACY_FLAGS',`goaway,noreceipts,nobodyreturn')
>
>dnl -------------------------------------------------------------------
>dnl End milter-sender.mc
>dnl -------------------------------------------------------------------
>
>
>
>
>---------------------------------------
>
>----- Original Message ----- 
>From: "Anthony Howe" <achowe@snert.com>
>To: <milters@milter.info>
>Sent: Thursday, April 07, 2005 9:51 AM
>Subject: [milters] Re: How to I enable access.db?
>
>
>Removal...........: milters-request@milter.info?subject=remove
>More information..: http://www.milter.info/#Support
>--------------------------------------------------------
>
>Ismael Perin wrote:
>  
>
>>The permissions is OK. But, the message continues appearing "access 
>>database
>>support disabled"...
>>    
>>
>
>And the sendmail.cf file permissions? Can milter-sender read it in order
>to find the access file path?
>
>Is FEATURE(`access_db', ... ) enabled in your sendmail.mc file; was
>sendmail.cf rebuilt and sendmail restarted?
>
>  
>

-- 
Jeff Groves
email: jgroves@krenim.org             Web Site: http://www.krenim.org/
blog: http://blogs.krenim.org/Jeff




Lists Index Date Thread Search