maildomains

package
v0.7.12-dev.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package maildomains answers one question: is this mail domain one that no single organization owns? An organization is keyed on the domain of its creator's verified address, and a person at gmail.com must not be able to claim gmail.com for their organization — nor be told that "gmail.com is registered to Acme" — so an address at a shared domain records no domain at all.

The list is maintained by hand and is deliberately conservative: the large consumer providers, their regional and legacy names, and the names the IETF reserves for documentation and testing (RFC 2606, RFC 6761), which nobody can own. A domain that is not listed is treated as an organization's own, which is the safe direction: the worst a missing entry does is let one person claim a provider's domain for their organization, which DNS verification will never confirm and platform staff can undo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Of

func Of(email string) string

Of returns the domain of an email address, lower-cased, or "" when the address has none.

func Shared

func Shared(domain string) bool

Shared reports whether domain is one no single organization owns: a public mail provider, an IETF-reserved name, or a subdomain of either. The comparison ignores case, surrounding space and a trailing dot.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL