On Wed, Sep 21, 2011 at 7:35 AM, Stan Hoeppner <s...@hardwarefreak.com> wrote:
> On 9/20/2011 6:54 PM, Peter Blair wrote:
>>
>> On Tue, Sep 20, 2011 at 9:16 AM, Stan Hoeppner<s...@hardwarefreak.com>
>>  wrote:
>>>
>>> On 9/19/2011 5:38 PM, john wrote:
>>>>
>>>> I think this is off topic.
>>>>
>>>> I am running Ubuntu 11.04 as a SOHO server with
>>>> postfix/dovecot/Amavis-new/Spamassassin/Clamav setup as my email
>>>> service.
>>>>
>>>> Does anybody know of a program... that can white list inbound email
>>>> based upon the addresses of emails that have been sent?
>>>
>>> This simple 7 line bash script does the trick superbly on Debian.  Thus
>>> it
>>> should work fine on Ubuntu as well.
>>>
>>> http://www.hardwarefreak.com/whtlst_gen.sh.txt
>>>
>>> Drop it in an executable search path, then do a chmod +x and follow the
>>> instructions in the file.
>>
>> Nice. But if you're running a multi-tennant system, you'll need a way
>> to map sender/recipient pairs to the inbound.  We do that with a
>> postfix policy server that hooks into the END-OF-MESSAGE stage, which
>> will provide the SASL authenticated user, and the smtp-envelope
>> recipient (there are problems with multi-recipients that you have to
>> work out).  Feed this into something like
>> http://wiki.apache.org/spamassassin/ManualWhitelist and you're good to
>> go.
>
> As the comments state:
> # Postfix quick/dirty auto whitelisting script
> :)

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?

Thanks,

SteveJ

Reply via email to