Documentation
¶
Overview ¶
Package courier implements various couriers for delivering messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Courier ¶
type Courier interface { // Deliver mail to a recipient. Return the error (if any), and whether it // is permanent (true) or transient (false). Deliver(from string, to string, data []byte) (error, bool) }
Courier delivers mail to a single recipient. It is implemented by different couriers, for both local and remote recipients.
type MDA ¶
type MDA struct { Binary string // Path to the binary. Args []string // Arguments to pass. Timeout time.Duration // Timeout for each invocation. }
MDA delivers local mail by executing a local binary, like procmail or maildrop. It works with any binary that:
- Receives the email to deliver via stdin.
- Exits with code EX_TEMPFAIL (75) for transient issues.
type SMTP ¶
type SMTP struct { HelloDomain string Dinfo *domaininfo.DB STSCache *sts.PolicyCache }
SMTP delivers remote mail via outgoing SMTP.
Click to show internal directories.
Click to hide internal directories.