[Postfixbuch-users] Bogus MX
    Uwe Driessen 
    driessen at fblan.de
                  
    Sa Sep  8 03:10:39 CEST 2007
    
    
Andreas Winkelmann schrieb: 
> #!/bin/bash
> 
> curl -s ftp://ftp.internic.net/domain/root.zone.gz | \
> gunzip -c | \
> awk ' / NS / {if (length($1) > 1) print "_."$1}' | \
> sort -u | \
> dig -f - +noall +answer | \
> awk ' $5 ~ /[0-9]+\.[0-9]+\./ {
>                 gsub("_.","",$1);
>                 print $5" REJECT IP address of MX host is a wild-card "$1
>         }' | \
> sort -g | \
> awk '   BEGIN{
>                 oline=""; }
>         {
>                 if (NR>1) {
>                         if( length(oline) > 0) {
>                                 split(oline,arr);
>                                 if ($1==arr[1]) {
>                                         oline=oline"&"$11;
>                                 }
>                                 else {
>                                         print oline;
>                                         oline=$0;
>                                 }
>                         }
>                         else {
>                                 oline=$0;
>                         }
>                 }
>                 else {
>                         oline=$0;
>                 }
>         }
>         END{
>                 print oline;
>         }'
> 
Jap das funzt super kommt fertige Datei raus nur noch ein postmap und ein postfix reload
dazu und fertig ist das automatische Update 
Vielen Dank
Mit freundlichen Grüßen
Drießen
-- 
Software & Computer
Uwe Drießen
Lembergstraße 33
67824 Feilbingert
Tel.: 06708 / 660045   Fax: 06708 / 661397
    
    
Mehr Informationen über die Mailingliste Postfixbuch-users