Ulrich Kautz > Mail-Decency-0.1.6 > Mail::Decency::Policy::Basic

Download:
Mail-Decency-0.1.6.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Mail::Decency::Policy::Basic

CONFIG ^

    ---
    
    disable: 0
    
    weight_invalid_helo_hostname: -100
    
    weight_non_fqdn_helo_hostname: -100
    weight_non_fqdn_recipient: -100
    weight_non_fqdn_sender: -100
    
    weight_unknown_helo_hostname: -50
    weight_unknown_recipient_domain: -50
    weight_unknown_sender_domain: -50
    
    #weight_unknown_client_hostname: -50
    weight_unknown_reverse_client_hostname: -50

DESCRIPTION ^

Re-implementation of postfix's restriction directives but with scoring.

The following directives are re-implemented:

The order the tests will be performed is in as they are listed above.

CLASS ATTRIBUTES ^

weight_non_fqdn_sender : Int

Default: 0

weight_unknown_sender_domain : Int

Default: 0

weight_non_fqdn_recipient : Int

Default: 0

weight_unknown_recipient_domain : Int

Default: 0

weight_invalid_helo_hostname : Int

Default: 0

weight_non_fqdn_helo_hostname : Int

Default: 0

weight_unknown_helo_hostname : Int

Default: 0

weight_unknown_client_hostname : Int

Default: 0

weight_unknown_reverse_client_hostname : Int

Default: 0

resolver : Net::DNS::Resolver

Will be created automatically.

METHODS ^

init

handle

Either build stats per country or score with negative or positve weight per country or do both

_has_a_or_mx

Returns bool wheter given domain has A or MX record

_resolute_domain_to_ip

Resolutes either A or MX recrod to IP(s)

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.

syntax highlighting: