HELP ON ACCESS FOR SENDMAIL

2003-06-06 Thread Dr. Tim
I have freebsd 4.4 sendmail 8.12.6

when I modify access in etc/mail
to two simple lines

spammer.com 550 goaway
12.13.14RELAY

do a make
(*even tried init 6ing)

sendmail happily accepts mail from [EMAIL PROTECTED]
and refused to relay from 12.13.14.*

it is like it won't 'take' the new access.

WHAT is going on?  any ideas

Please email me back at 
[EMAIL PROTECTED]
thanks in advance
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HELP ON ACCESS FOR SENDMAIL

2003-06-06 Thread Warren Block
On Thu, 5 Jun 2003, Dr. Tim wrote:

 I have freebsd 4.4 sendmail 8.12.6

 when I modify access in etc/mail
 to two simple lines

 spammer.com   550 goaway
 12.13.14  RELAY

 do a make
 (*even tried init 6ing)

 sendmail happily accepts mail from [EMAIL PROTECTED]
 and refused to relay from 12.13.14.*

 it is like it won't 'take' the new access.

It's 'make maps'.  See /etc/mail/Makefile.

-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HELP ON ACCESS FOR SENDMAIL

2003-06-06 Thread Warren Block
On Thu, 5 Jun 2003, Micheal Patterson wrote:

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

 FEATURE(access_db, `hash -o -TTMPF /etc/mail/access')

 If you're using the stock sendmail, if I remember correctly, access_db isn't
 included by default.

It is in the freebsd.mc file, at least in the last few releases of
FreeBSD.

-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HELP ON ACCESS FOR SENDMAIL

2003-06-06 Thread Micheal Patterson
My mistake. I was looking in /usr/src/contrib/sendmail, not in
/usr/src/etc/sendmail/. I never knew there was a freebsd.mc in that dir. I
learn something new every day.

--

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


- Original Message - 
From: Warren Block [EMAIL PROTECTED]
To: Micheal Patterson [EMAIL PROTECTED]
Cc: Dr. Tim [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, June 06, 2003 7:25 AM
Subject: Re: HELP ON ACCESS FOR SENDMAIL


 On Thu, 5 Jun 2003, Micheal Patterson wrote:

  Specifically, look for your .mc file and see if this entry is in there:
 
  FEATURE(access_db, `hash -o -TTMPF /etc/mail/access')
 
  If you're using the stock sendmail, if I remember correctly, access_db
isn't
  included by default.

 It is in the freebsd.mc file, at least in the last few releases of
 FreeBSD.

 -Warren Block * Rapid City, South Dakota USA
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HELP ON ACCESS FOR SENDMAIL

2003-06-05 Thread Dr. Tim
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
[EMAIL PROTECTED]   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
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HELP ON ACCESS FOR SENDMAIL

2003-06-05 Thread Micheal Patterson

- Original Message - 
From: Dr. Tim [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 5:00 PM
Subject: HELP ON ACCESS FOR SENDMAIL


 I have freebsd 4.4 sendmail 8.12.6

 when I modify access in etc/mail
 to two simple lines

 spammer.com 550 goaway
 12.13.14 RELAY

 do a make
 (*even tried init 6ing)

 sendmail happily accepts mail from [EMAIL PROTECTED]
 and refused to relay from 12.13.14.*

 it is like it won't 'take' the new access.

 WHAT is going on?  any ideas

 Please email me back at
 [EMAIL PROTECTED]
 thanks in advance

Just out of curiosity, is your sendmail compiled with the access option?
Does your sendmail.cf have any of the following lines (or similar):

#  $Id: access_db.m4,v 8.15 1999/07/22 17:55:34 gshapiro Exp $  #
...

# access_db acceptance class
C{Accept}OK RELAY
...

# Access list database (for spam stomping)
Kaccess hash -o /etc/mail/access

If not, then you're probably not compiled to use the access.db file.

--

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



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HELP ON ACCESS FOR SENDMAIL

2003-06-05 Thread Micheal Patterson


- Original Message - 
From: Dr. Tim [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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
 [EMAIL PROTECTED] 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 -TTMPF /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 -TTMPF /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

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HELP ON ACCESS FOR SENDMAIL

2003-06-05 Thread Dr. Tim
nope it does not, it seems that I now have to learn the m4 compiler
which I have never done before, I have tweaked by sendmail.cf
substantially to get queues, timeouts lots of stuff working well
and just like this I now have to do something like
m4 m4.cf.stuff usethis.mc  newsendmail.cf | diff presentsendmail.cf
and find out what I have to add to my mc file so that in the future
I can just run the m4 compiler to my mc file and twic
tweak the mc file when I need to change stuff but to be able to find ALL
the associated m4
c 
sorry mc commands that will result in the sendmail.cf file I have now
is going to be a pain.  I just wiSH!  I could have the lines in the
cf file I need to add to get this access.db working and hashed without
this m4 compiler  it seems to be just a big overhead for those few
people who have to tweak rulesets but...that's life.

You wouldn;t happen to know if there are a just a few lines I can add
to my sendmail.cf file that will enable access.db?

Thanks
tim
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HELP ON ACCESS FOR SENDMAIL

2003-06-05 Thread Dr. Tim
I have found the stock mc file and generic bsd and have run m4 a couple
of times to see the difference,  since it IS substantial IGNORE MY LAST RAMBLING!

I will also have to investigate using spews, rbl etc...
thanks so very much for you info.  I just wonder WHY!  at sendmail.org 
they have all this good stuff and sections dedicated souly to access.db
and it is about 10 sections earlier they mention using the feature access.db
in the mc file but they also say one DOESNT hv
have to use them4 compiler but in this case it looks like a MUST.

Tim
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HELP ON ACCESS FOR SENDMAIL

2003-06-05 Thread Kirk Strauser
At 2003-06-06T04:06:54Z, Dr. Tim [EMAIL PROTECTED] writes:

 You wouldn;t happen to know if there are a just a few lines I can add to
 my sendmail.cf file that will enable access.db?

Not off the top of my head, but you could compile the freebsd.mc file,
remove the access.db lines, re-compile it, and compare the versions.  The
diff should be the lines you need.
-- 
Kirk Strauser


pgp0.pgp
Description: PGP signature