NAME

Mail::Decency::Core::Meta::Excludes

DESCRIPTION

Excludes module handling per recipient/sender domain/address.

Those exlusions can be either defined in the configuration and/or a plain text file and/or the a database.

CONFIG

---

exclusions:
    
    modules:
        
        DNSBL:
            sender_domain:
                - sender.tld
                - somedomain.tld
            recipient_domain:
                - recipient.tld
                - anotherdomain.tld
            sender_address:
                - some@sender.tld
            recipient_address:
                - bla@recipient.tld
    
    file: /etc/decency/exclusions.txt
    
    database: 1

EXCLUSION PLAIN TEXT FILE

like this:

sender_domain:DNSBL:sender.tld
sender_domain:DNSBL:somedomain.tld
recipient_domain:GeoWeight:recipient.tld
recipient_domain:GeoWeight:anotherdomain.tld
sender_address:SPF:some@sender.tld
recipient_address:SPF:bla@recipient.tld

DATABASE

CLASS ATTRIBUTES

exclude_sender_domain : HashRef[Bool]

enable_file : Str

enable_database : Bool

exclusion_methods : ArrayRef[Str]

METHODS

after init

do_exclude

Returns bool wheter the current mail (session) shall overstep the current module

_get_exclude_from_config

_get_exclude_from_file

_get_exclude_from_database

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.