HELP ON ACCESS FOR SENDMAIL

Micheal Patterson micheal at cancercare.net
Thu Jun 5 21:05:06 PDT 2003



----- Original Message ----- 
From: "Dr. Tim" <timothy at xrx-inc.com>
To: <timothy at xrx-inc.com>; <wblock at wonkity.com>
Cc: <freebsd-questions at freebsd.org>
Sent: Thursday, June 05, 2003 10:38 PM
Subject: Re: HELP ON ACCESS FOR SENDMAIL


> if you do a make in the etc/mail dir it uses the
> Makefile so yea it is equivalent to
> makemap access < access
> and yes the access.db file gets update
> and NO it still does not work!
> the file is so simple I can't believe it is not working.
> actually the equivalent command in the Makefile is
> makemap hash access < access for making the access.db file
> I have even remove the access db file and watch the new file
> get creeated.
>
> I can edit the sendmail.cf file and affect sendmails performance
> (after starting and stopping sendmail) but no effect with the
> access ability.
>
> the access file is LITERALLY
> testuser at knitu.com 550 goway
> 12.223.81 RELAY
> and it completely
> accepts the knitu stuff (opps typo the testuser@) is not in the access
> and it refuses to relay the 12.223.81
> oops other typo it is 199.223.81
> and they all resolve! also
> tim


Specifically, look for your .mc file and see if this entry is in there:

FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')

If you're using the stock sendmail, if I remember correctly, access_db isn't
included by default. You can rebuild your sendmail.cf by adjusting the mc
file. A good one (in my opinion) is the generic-bsd4.4.mc.

By default, it has:

divert(0)dnl
VERSIONID(`$Id: generic-bsd4.4.mc,v 8.10 1999/02/07 07:26:02 gshapiro Exp
$')
OSTYPE(bsd4.4)dnl
DOMAIN(generic)dnl
MAILER(local)dnl
MAILER(smtp)dnl

and doesn't include the access_db feature set.  Without this feature, the
access.db is ignored.

So, add:

FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')

to it between the DOMAIN and MAILER entries and run make in that directory
and it will create a generic-bsd4.4.cf file. Just copy that to your
/etc/mail as sendmail.cf (backup your original first just in case) and it
should do what you're needing.

If you're using the stock sendmail in FreeBSD, the .mc's should be located
in /usr/src/contrib/sendmail/cf/cf/

Hope it helps.

--

Micheal Patterson
Network Administration
Cancer Care Network
405-733-2230



More information about the freebsd-questions mailing list