Hi,
I'm currently using the smtpfront-qmail rbl facility to block spam, which is working very well.
I've now received a letter from Versatel, asking me to white list them due to German law restricting them from fixing the problem.
I've now added a whitelist parameter to the database for smtpfront-qmail, and created a custom script as follows for runenv, using the tried and tested copy someone elses code approach

{
my @rbllist = split /:/, ${'smtpfront-qmail'}{RBLList} || '';
my @whitelist = split /:/, ${'smtpfront-qmail'}{WhiteList} || '';
if ((scalar @rbllist) || (scalar @whitelist))
{
$OUT = 'RBLSMTPD="/usr/local/bin/rblsmtpd ';
if (scalar @whitelist)
{
$OUT .= join " ", map { "-a $_" } @whitelist;
$OUT .= " ";
}
if (scalar @rbllist)
{
$OUT .= join " ", map { "-r $_" } @rbllist;
}
$OUT .= '"';
}
else
{
$OUT = "# No RBLs are defined";
}
}
Does this look right? Thanks go to Ray Mitchell for the original code.
Alex