[Mailman-Users] extracting banned/rejected/discarded email addresses for exim blacklist

Barry Finkel b19141 at britaine.ctd.anl.gov
Wed Sep 20 18:18:21 CEST 2006


Bretton Vine <bretton at hivemind.net> wrote:

>What I'm trying to do is extract all those problem addresses, add to a file
>and do a `sort | uniq` on it and add it to exim's blacklist (which is
>another exercise in frustration due to format being $domain $sender and not
>$sender@$domain)

Use this awk script:

    awk '{print $2 "@" $1}'

to convert $domain $sender  ==>  $sender@$domain

or to do the reverse:

     awk '{print $2 " " $1}' FS=@

to convert $sender@$domain  ==>  $domain $sender
----------------------------------------------------------------------
Barry S. Finkel
Computing and Information Systems Division
Argonne National Laboratory          Phone:    +1 (630) 252-7277
9700 South Cass Avenue               Facsimile:+1 (630) 252-4601
Building 222, Room D209              Internet: BSFinkel at anl.gov
Argonne, IL   60439-4828             IBMMAIL:  I1004994




More information about the Mailman-Users mailing list