package
0.0.0-20240118125847-488c5b385eae
Repository: https://github.com/willscott/gosendmail.git
Documentation: pkg.go.dev
# Functions
DialFromList tries dialing in order a list of IPs as if they are email servers until exhausting possibilities.
FindServers resolves the IP addresses of a given destination `domain`.
GetConfig looks for a domain in the currently loaded configuration and attempts to parse it as into a Config struct.
InterpretLog matches the output of a `sendmail` command for a given ParsedMessage.
ParseDiskInput reads a filename, transforming the data with a configured 'ReadFromDisk' command if set.
ParseMessage parses a byte array representating an email message to learn the sender, and intended recipients.
ReadMessage scans a given io.Reader into a []byte.
RemoveHeader strips a single header from a byte array representing a full email message.
SanitizeMessage takes a byte buffer of an Email message, along with configuration for the sending domain, and uses these to transform the message into one that is more privacy preserving - in particular by quantizing identifying dates and message IDs.
SignMessage takes a message byte buffer, and adds a DKIM signature to it based on the configuration of the sending domain.
StartTLS attempts to upgrade an SMTP network connection with StartTLS.
WriteDiskOutput writes a bytestring to a desired file on disk, transforming the data through a configured `WriteToDisk` command if set.
# Structs
Config represents the structure of a single domain configuration in config.json.
ParsedMessage represents a semi-structred email message.