On 9/21/2011 1:48 PM, Steve Jenkins wrote:
AWESOME little script. Nice, Stan!
One minor detail stops me from using it, however. I have an old domain
hosted on my server that no longer gets any legit mail, but that
serves as a great honeypot. So I direct any emails sent to that domain
via Postfix to a file, and then I point my spam filtering software at
it nightly to learn from it. However, those addresses all show up in
the maillog as "SENT" - which adds them to the raw file in your
script. I'm not a scripter, so any ideas on how to work around that,
either via Postfix or via the script?
I'm not sure how this could be an issue. The only addresses added to
this whitelist are smtp recipient addresses successfully delivered to
via the smtp(8) service. Rerouting your trap mail to a local file is
going to occur via local(8), pipe(8), or another mechanism, depending on
how exactly you're doing it, but not via smtp(8). Thus you should be
able to use the script as is without issue, unless you're running
something other than GNU/Linux, in which case you may be having
sed/sort/uniq switch issues I discussed earlier.
If you are truly having undesirable addresses added to the whitelist
file, maybe you could share some log snippets and sections of the file
/tmp/wrkng-whtlst.tmp showing the address(es) in question, obfuscated of
course, or send me the real data off list.
--
Stan