The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mail::Decency::Policy::DNSBL

DESCRIPTION

Implementation of a DNS-based Blackhole List using Net::DNSBL::Client.

CONFIG

    ---
    
    disable: 0
    
    harsh: 0
    
    blacklist:
        
        -
            host: ix.dnsbl.manitu.net
            weight: -100
        -
            host: psbl.surriel.com
            weight: -80
        -
            host: dnsbl.sorbs.net
            weight: -70
    

DESCRIPTION

Check external DNS blacklists (DNSBL). Allows weighting per blacklis or harsh policies (first hit serves).

CLASS ATTRIBUTES

blacklist

ArrayRef of blacklists

weight

HashRef of ( domain => weight ) for each blacklist

dnsbl

Instance of Net::DNSBL::Client

harsh

Bool value determining wheter first blacklist hit rejects mail

METHODS

init

handle

Checks wheter incoming mail is whilist for final recipient

AUTHOR

Ulrich Kautz <uk@fortrabbit.de>

COPYRIGHT

Copyright (c) 2010 the "AUTHOR" as listed above

LICENCSE

This library is free software and may be distributed under the same terms as perl itself.