package smtpsrv | |
import ( | |
"context" | |
"crypto/tls" | |
"log/slog" | |
"github.com/target/goalert/alert" | |
) | |
// Config is used to configure the SMTP server. | |
type Config struct { | |
Domain string | |
AllowedDomains []string | |
TLSConfig *tls.Config | |
MaxRecipients int | |
BackgroundContext func() context.Context | |
Logger *slog.Logger | |
AuthorizeFunc func(ctx context.Context, id string) (context.Context, error) | |
CreateAlertFunc func(ctx context.Context, a *alert.Alert) error | |
} | |