On 9/21/2011 5:09 PM, mouss wrote:
Le 20/09/2011 15:16, Stan Hoeppner a écrit :
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.

just nitpicking: replace "bash" with "sh". I know linux people swear by
"bash". but you should favour portable shell. when you can't, then it's
time for perl and python.

Or "shell script". Apologies for the less than precise shell description. The script itself has always used "#! /bin/sh".

I don't swear by bash, and I am a Linux guy. From what I've read there's little bash does that the sh interpreter cannot. This script doesn't make use of anything bash specific. Although, as Viktor and I discovered at that time, the switches for sed, and maybe sort and uniq, differ between *nix like platforms, IIRC specifically between BSD/OSX and GNU. I just added such caveat text to the copy on my web server.

--
Stan

Reply via email to