PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > /etc/mail/access IP entries
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

/etc/mail/access IP entries

Réponse
 
LinkBack Outils de la discussion
Vieux 28/09/2006, 21h35   #1
Alex Moen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut /etc/mail/access IP entries

Hi all,

Just curious if the /etc/mail/access db interpreter is CIDR aware. For
example, can I add an entry like this:

192.168.0.0/23 reject

and expect Sendmail to reject any and all mail from the source addresses of
192.168.0.0 - 192.168.1.255?

TIA,

Alex Moen
NDTC


  Réponse avec citation
Vieux 28/09/2006, 21h56   #2
Dale Dellutri
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: /etc/mail/access IP entries

On Thu, 28 Sep 2006 15:35:17 -0500, Alex Moen <alexm@ndtel.com> wrote:
> Hi all,


> Just curious if the /etc/mail/access db interpreter is CIDR aware. For
> example, can I add an entry like this:


> 192.168.0.0/23 reject


> and expect Sendmail to reject any and all mail from the source addresses of
> 192.168.0.0 - 192.168.1.255?


According to:

www.sendmail.org/tips/relaying.html

(scroll to the bottom), you can use subnetting like this:

192.168.0 REJECT
192.168.1 REJECT

which isn't quite what you asked, but gives the required result.


--
Dale Dellutri <ddelQQQlutr@panQQQix.com> (lose the Q's)
  Réponse avec citation
Vieux 28/09/2006, 22h28   #3
Alex Moen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: /etc/mail/access IP entries


"Dale Dellutri" <ddelQQQlutr@panQQQix.com> wrote in message
news:efhcur$mm0$1@reader1.panix.com...
> On Thu, 28 Sep 2006 15:35:17 -0500, Alex Moen <alexm@ndtel.com> wrote:
>> Hi all,

>
>> Just curious if the /etc/mail/access db interpreter is CIDR aware. For
>> example, can I add an entry like this:

>
>> 192.168.0.0/23 reject

>
>> and expect Sendmail to reject any and all mail from the source addresses
>> of
>> 192.168.0.0 - 192.168.1.255?

>
> According to:
>
> www.sendmail.org/tips/relaying.html
>
> (scroll to the bottom), you can use subnetting like this:
>
> 192.168.0 REJECT
> 192.168.1 REJECT
>
> which isn't quite what you asked, but gives the required result.
>
>
> --
> Dale Dellutri <ddelQQQlutr@panQQQix.com> (lose the Q's)


OK, that's what I thought... I saw the FAQ on CIDR, but I was hoping that
Sendmail had been updated to allow this... 1 or 2 /24's are no problem, but
when you want to block multiple /8's it does become quite daunting. Guess
I'll have to find a better way to do this than the built-in Sendmail stuff.

Thanks!

Alex


  Réponse avec citation
Vieux 29/09/2006, 00h39   #4
Lone Locust of the Apocalypse
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: /etc/mail/access IP entries

"Alex Moen" <alexm@ndtel.com> writes:
>OK, that's what I thought... I saw the FAQ on CIDR, but I was hoping that
>Sendmail had been updated to allow this... 1 or 2 /24's are no problem, but
>when you want to block multiple /8's it does become quite daunting. Guess
>I'll have to find a better way to do this than the built-in Sendmail stuff.


You should be able to do /8 by just specifying the first octet, or
/16 with x.y as the key. What you can't do is anything not on an
octet boundary.
  Réponse avec citation
Vieux 29/09/2006, 01h35   #5
ynotssor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: /etc/mail/access IP entries

"Lone Locust of the Apocalypse" <zorak@ninthbit.com> wrote in message
news:v2ZSg.5444$lq.1180@newsread1.mlpsca01.us.to.v erio.net

>> OK, that's what I thought... I saw the FAQ on CIDR, but I was hoping
>> that Sendmail had been updated to allow this... 1 or 2 /24's are no
>> problem, but when you want to block multiple /8's it does become
>> quite daunting. Guess I'll have to find a better way to do this
>> than the built-in Sendmail stuff.

>
> You should be able to do /8 by just specifying the first octet, or
> /16 with x.y as the key. What you can't do is anything not on an
> octet boundary.


One can certainly use the ${SOURCE}/contrib/cidrexpand Perl script to make
such an operation easier, e.g.:

echo "
Connect:205.199.0.0/21 REJECT
Connect:213.0.0.0/14 REJECT
" | ./cidrexpand # | makemap hash /etc/mail/access

  Réponse avec citation
Vieux 29/09/2006, 21h47   #6
Alex Moen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: /etc/mail/access IP entries


"ynotssor" <ynotssor@example.net> wrote in message
news:4o382eFck4kvU1@individual.net...
> "Lone Locust of the Apocalypse" <zorak@ninthbit.com> wrote in message
> news:v2ZSg.5444$lq.1180@newsread1.mlpsca01.us.to.v erio.net
>
>>> OK, that's what I thought... I saw the FAQ on CIDR, but I was hoping
>>> that Sendmail had been updated to allow this... 1 or 2 /24's are no
>>> problem, but when you want to block multiple /8's it does become
>>> quite daunting. Guess I'll have to find a better way to do this
>>> than the built-in Sendmail stuff.

>>
>> You should be able to do /8 by just specifying the first octet, or
>> /16 with x.y as the key. What you can't do is anything not on an
>> octet boundary.

>
> One can certainly use the ${SOURCE}/contrib/cidrexpand Perl script to make
> such an operation easier, e.g.:
>
> echo "
> Connect:205.199.0.0/21 REJECT
> Connect:213.0.0.0/14 REJECT
> " | ./cidrexpand # | makemap hash /etc/mail/access
>


OK, that's workable... Thanks for the !

Alex


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h47.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13000 seconds with 14 queries