Re: [Exim] igonoring faulty address in the lists file

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Ken Bailey
Dátum:  
Címzett: Marc-Oliver Kalis
CC: exim-users
Tárgy: Re: [Exim] igonoring faulty address in the lists file
Marc-Oliver Kalis wrote:

> I don't really think I have enough time to get all these faulty addresses
> out!
> Does anybody know a way of makeing Exim ignor these?


Iterate through the list using exim -bt $address to test the validity
of the address before sending:

# %<-----------------------------------
#!/bin/sh
for i in `cat /path/to/list_of_email_addresses`
do
    exim -bt $i > /dev/null
    if [ $? = 0 ] ; then
    echo $i
    else
    echo "# bad address ignored: $i"
    fi
done
# %<-----------------------------------


HTH

Ken
--
# Ken Bailey, Computer Section,   #    Email: K.Bailey@??? #
# The Royal Botanic Gardens, Kew, #      Tel: +44 (0)20 8332 5729    #
# Richmond, Surrey, TW9 3AE, UK   #      Fax: +44 (0)20 8332 5736    #