Mail::SpamAssassin::Util::RegistrarBoundaries(3pm)

Mail::SpamAssassin::Util::RegistrarBoundaries3pm

Domain delegation rules

Methods

($hostname, $domain) = split_domain ($fqdn)

Cut a fully-qualified hostname into the hostname part and the domain part, splitting at the DNS registry boundary.

Examples:

    "www.foo.com" => ( "www", "foo.com" )
    "www.foo.co.uk" => ( "www", "foo.co.uk" )
$domain = trim_domain($fqdn)

Cut a fully-qualified hostname into the hostname part and the domain part, returning just the domain.

Examples:

    "www.foo.com" => "foo.com"
    "www.foo.co.uk" => "foo.co.uk"
$ok = is_domain_valid($dom)

Return 1 if the domain is valid, "undef" otherwise. A valid domain (a) does not contain whitespace, (b) contains at least one dot, and (c) uses a valid TLD or ccTLD.

Releases

4 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8

From spamassassin 3.4.0-6 in Debian 8 (Jessie). Parsed by carta from the page's man source.