Date: Fri, 12 Jun 2015 18:39:41 -0600 From: jd1008 <jd1008@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: Script question Message-ID: <557B7BCD.2050908@gmail.com> In-Reply-To: <BAY182-W89C2924F4BDF0D2BD3810DF4BB0@phx.gbl> References: <BAY182-W89C2924F4BDF0D2BD3810DF4BB0@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06/12/2015 05:53 PM, Lt. Commander wrote: > Am running fbsd-9.3 and sendmail-8.15 plus spamassassin. > > I would like to be able to scan the daily maillog with a script at midnight to extract a list by selecting spam recognized and contained using the constant "score=(greater than x) and from that a list of just the IPs which will be placed in a spam file as part of a spam system here. Am tired of some getting past spamass even though it exceeds a reasonable tag level. > > I do know how to extract just the IP from a line in the log, but not sure what the syntax should be to first ID the "score=<x" in a simple sh shell script. > > I hope this has been presented clear enough to gather some help on this task. > > Thanks, > Jason Copy and paste a sample email header in your reply to this list.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?557B7BCD.2050908>