# Functions
No description provided by the author
New creates and starts a new [MailFilter] with a socket listening on network and address.
No description provided by the author
WithDecisionAt sets the decision point for the [MailFilter].
WithErrorHandling sets the error handling for the [MailFilter].
WithoutBody configures the [MailFilter] to not request and collect the mail body.
# Constants
No description provided by the author
AcceptWhenError accepts the transaction despite the error (it gets logged).
The DecisionAtConnect constant makes the mail filter call the decision function after the connect event.
The DecisionAtData constant makes the mail filter call the decision function after the DATA event (all RCPT TO were sent).
The DecisionAtEndOfHeaders constant makes the mail filter call the decision function after the EOH event (all headers were sent).
The DecisionAtEndOfMessage constant makes the mail filter call the decision function at the end of the SMTP transaction.
The DecisionAtHelo constant makes the mail filter call the decision function after the HELO/EHLO event.
The DecisionAtMailFrom constant makes the mail filter call the decision function after the MAIL FROM event.
No description provided by the author
Error just throws the error.
No description provided by the author
RejectWhenError rejects the transaction (and logs the error).
No description provided by the author
TempFailWhenError temporarily rejects the transaction (and logs the error).
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
DecisionAt defines when the filter decision is made.
DecisionModificationFunc is the callback function that you need to implement to create a mail filter.
No description provided by the author
No description provided by the author