Loads and validates environment-based configuration for an inbound SMTP gateway including TLS, auth limits, and message constraints.
// Source: https://github.com/inboundemail/inbound | License: MIT | Copyright 2024-present Inbound Email
// Provided via justclaw.it.com; keep this notice with the code.
export interface GatewayConfig {
apiBaseUrl: string;
gatewayAuthSecret: string | null;
sendPath: string;
rawSendPath: string;
hostname: string;
starttlsPort: number;
implicitTlsPort: number;
maxMessageBytes: number;
maxRecipients: number;
tlsKeyPath: string | null;
tlsCertPath: string | null;
tlsHandshakeTimeoutMs: number;
allowInsecureAuth: boolean;
authFailureWindowMs: number;
authFailureLimit: number;
authFailureIpLimit: number;
maxAuthFailureRecords: number;
authRequestTimeoutMs: number;
sendRequestTimeoutMs: number;
socketTimeoutMs: number;
maxConnections: number;
maxConnectionsPerIp: number;
ma
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key