Daniel L. Miller put forth on 1/11/2010 5:03 PM:
> Does anyone have an auto-whitelisting policy daemon?  I want to have a
> test early in sender checks that would bypass most of my other spam
> prevention if a sender is in the whitelist - and have that whitelist
> automatically updated by internal users sending to those remote senders.

sed -n -e '/postfix\/smtp\[.*status=sent/s/^.*to=<\([^>]*\).*$/\1/p'
/var/log/mail.log | sort -u

Thank Victor.  He answered this in 2004.  It was the 2nd hit in google.  Now all
you have to do is take the output of this, say daily, and do a compare/append to
the whitelist file you're maintaining.

--
Stan

Reply via email to