Christian Herndler wrote:
Hi all,
Using the dnsbl plugin I'm looking for a possibility to whitelist a
given EMail-Adress to avoid that a message from that sender is denied
when the sender uses a smtp-host which is listed in a blocklist
(unfortunately the smtp hosts for orange.fr are tagged as spam sending
hosts, that makes it nearly impossible to get mails from France as
Orange is one of the biggest ISPs there).
I've added the address in question to whitelistsenders for the
whitelist_soft plugin , that works fine on hook connect, but the mails
are still denied in hook rcpt by the dnsbl plugin.
As far as I understand the code the dnsbl plugin takes care of hosts
whitelisted by the whitelist_soft plugin, but not the sender.
Would it work if I add the following:
my $whitelist = $connection->notes('whitelisthost');
+ my $whitelist_sender = $transaction->notes('whitelistsender');
>
Having not really programming skills I would like to know if at least
that would do what I want or if there is perhaps another way to do it ?
Unfortunately, this will not work, because the dnsbl plugin will deny
the connection before whitelistsender can be set: dnsbl hooks connect(),
while sender whitelisting only can be done when the sender is known -
and that's afer connect.
What you could do is get a list of all of orange's outgoing mail
servers. Unfortunately, they don't use SPF either, so it's not very
easy. You might want to consider using a less radical DNS blacklist.
In my experience, the blacklists often operate from the US and therefore
their ham-to-spam ratio for european hosts are different from what I get.
Some european DNS blacklist: ix.dnsbl.manitu.net
spamsources.fabel.dk
dnsbl-1.uceprotect.net
-Johan
--
Johan Almqvist
Irisveien 28
0870 Oslo
Norway
Mobile: +47 40 04 68 21
E-mail: [EMAIL PROTECTED]