[Postfixbuch-users] IP-Bereich ausschliessen

tp22a at softhome.net tp22a at softhome.net
So Feb 20 22:32:36 CET 2005


Okay... Ich nehme den Teil zurück mit dem "riskieren":

Gemäss: http://www.postfix.org/access.5.html
EXAMPLE
       The following example uses an indexed file,  so  that  the
       order  of  table entries does not matter. The example per-
       mits access by the client at address 1.2.3.4  but  rejects
       all  other  clients  in 1.2.3.0/24. Instead of hash lookup
       tables, some systems use dbm.  Use the  command  "postconf
       -m"  to  find  out  what lookup tables Postfix supports on
       your system.

       /etc/postfix/main.cf:
           smtpd_client_restrictions =
               check_client_access hash:/etc/postfix/access

       /etc/postfix/access:
           1.2.3   REJECT
           1.2.3.4 OK

       Execute the command "postmap /etc/postfix/access" after
       editing the file.


Dennoch bleibe ich aber dabei, dass die CIDR Notation einfacher ist.

Gruss

Steve

On Sun, 20 Feb 2005 22:25:14 +0100
tp22a at softhome.net wrote:

> On Sun, 20 Feb 2005 22:00:34 +0100
> Jim Knuth <jk at jkart.de> wrote:
> 
> > Hallo und guten Abend Jan,
> > 
> > danke für die Email vom 20.02.2005 um 21:31
> > Jan Theofel schrieb - wrote:
> > 
> > 
> > > Dazu habe ich in /etc/postfix/access folgende Zeile eingetragen:
> > > 61.78.37.               REJECT
> > 
> > 
> > 
> > das ist IMHO ein Punkt zuviel.
> > Besser (richtig) 61.78.37
> > 
> 
> Ich bin mir da nicht so sicher. Ich glaube wenn Du nur 61.78.37 nimmst, dann riskierst Du, dass xxx.61.78.37 auch einen REJECT bekommt.
> 
> Meiner Meinung nach wäre es am Besten das Ganze in der CIDR Notation einzugeben (Bitte zuerst mit "postconf -m" überprüfen, ob cidr bei Dir möglich ist):
> 
>     /etc/postfix/main.cf:
>        check_client_access cidr:/etc/postfix/client_checks.cidr,
>        check_sender_access cidr:/etc/postfix/sender_checks.cidr,
> 
>     /etc/postfix/client_checks.cidr:
>        61.78.37.0/24    REJECT
> 
>     /etc/postfix/sender_checks.cidr:
>        61.78.37.0/24    REJECT
> 
> Gruss
> 
> Steve
> 
> > -- 
> > Viele Grüße, Kind regards,
> >  Jim Knuth
> >  jk at jkart.de
> >  ICQ #277289867
> >  Skype: callto://jimknuth
> > ----------
> > Zufalls-Zitat
> > ----------
> > Alles, was die Menschen in Bewegung setzt, muß durch ihren Kopf
> > hindurch, aber welche Gestalt es in diesem Kopf annimmt, hängt von den
> > Umständen ab. [Friedrich Engels]
> > ----------
> > Dieser Text hat nichts mit dem Empfänger der Mail zu tun
> > ----------
> >     
> > virengeprüft mit NOD32 Version 1.1003 Update 19.02.2005
> > 
> > -- 
> > _______________________________________________
> > Postfixbuch-users mailingliste
> > Heinlein Professional Linux Support GmbH
> > 
> > Postfixbuch-users at listi.jpberlin.de
> > http://listi.jpberlin.de/mailman/listinfo/postfixbuch-users
> -- 
> _______________________________________________
> Postfixbuch-users mailingliste
> Heinlein Professional Linux Support GmbH
> 
> Postfixbuch-users at listi.jpberlin.de
> http://listi.jpberlin.de/mailman/listinfo/postfixbuch-users



Mehr Informationen über die Mailingliste Postfixbuch-users