smtp relay #28

Supports: focal

Description

Installs an SMTP server and configures it to allow SMTP relaying for specific user, hosts, or networks.



Configuration

allowed_relay_networks
(string) List of allowed networks to relay without authenticating.
connection_limit
(int) Maximum number of simultaneous SMTP connections allowed.
100
domain
(string) Primary domain for hostname generation, it will be $application-$unit.$domain. Default is '' to use the system FQDN.
enable_rate_limits
(boolean) Enable various rate limiting features. smtpd_client_auth_rate_limit 8 smtpd_client_connection_rate_limit 8 smtpd_client_new_tls_session_rate_limit 8
enable_reject_unknown_recipient_domain
(boolean) Reject mail for when recipient's domain cannot be resolved. http://www.postfix.org/postconf.5.html#reject_unknown_recipient_domain
enable_smtp_auth
(boolean) Enable SMTP authentication.
True
header_checks
(string) Perform various header checks and action on. See: http://www.postfix.org/header_checks.5.html
log_retention
(int) Number of days of mail logs to retain during rotation.
120
message_size_limit
(int) Maximum size of messages allowed (default 60MBytes).
61440000
nagios_context
(string) Used by the nrpe subordinate charms. A string that will be prepended to instance name to set the host name in nagios. So for instance the hostname would be something like: juju-myservice-0 If you're running multiple environments with the same services in them this allows you to differentiate between them.
juju
nagios_servicegroups
(string) A comma-separated list of nagios servicegroups. If left empty, the nagios_context will be used as the servicegroup
relay_access_sources
(string) Restrict access based on CIDR source per: http://www.postfix.org/cidr_table.5.html
relay_host
(string) SMTP relay host (or smart host) to forward mail to.
restrict_recipients
(string) Access map for restrictions by recipient address or domain (default '' to allow all).
restrict_sender_access
(string) Restrict relay only from senders from specified domains, addresses, or hosts (default '' is to allow all).
restrict_senders
(string) Access map for restrictions by sender address or domain (default '' to allow all).
sender_login_maps
(string) Restrict sender addresses to authenticated users defined by this map (use 'MANUAL' to indicate it is managed outside of juju configs).
smtp_auth_users
(string) List of user and crypt password hashes (use mkpasswd to generate). e.g. myuser1:$1$bPb0IPiM$kmrSMZkZvICKKHXu66daQ. myuser2:$6$3rGBbaMbEiGhnGKz$KLGFv8kDTjqa3xeUgA6A1Rie1zGSf3sLT85vF1s59Yj//F36qLB/J8rUfIIndaDtkxeb5iR3gs1uBn9fNyJDD1
tls_policy_maps
(string) Free-form TLS policy map per: http://www.postfix.org/postconf.5.html#smtp_tls_policy_maps