[Gllug] Re-scanning old emails

Rich Walker rw at shadowrobot.com
Tue Aug 7 10:31:03 UTC 2007


Chris Bell <chrisbell at overview.demon.co.uk> writes:

> Hello,
>    I would like to re-scan a very large single file on a Debian mailserver
> running exim4 containing a dump of emails received addressed to unknown user
> names. There are relatively few "user names" scraped from news posts, and I
> have set them up as aliases to a junk user, but I would like to check for
> emails rejected because of mis-typing. I am not in any hurry, and am not
> bothered if it takes weeks, as long as it does not delay new mail. If needed
> I could even set up another box as a temporary "mail server" to do the
> processing. Possible solutions gratefully received.

exigrep might be of use here.

This is a script I use for something similar:

grep "Unrouteable address" /var/log/exim4/mainlog | cut -d'@' -f1 | cut -d' ' -f 5 | sort | uniq > /tmp/a
cp /etc/spambait.list /tmp/b
sort /tmp/a /tmp/b | uniq > /etc/spambait.list

cheers, Rich.

-- 
rich walker         |  Shadow Robot Company | rw at shadow.org.uk
technical director     251 Liverpool Road   |
need a Hand?           London  N1 1LX       | +UK 20 7700 2487
www.shadowrobot.com/hand/overview.shtml
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list