SMTPD(8postfix)
๐ SMTPD โ the Postfix SMTP server, bestie edition
okay so this is smtpd(8postfix), aka the Postfix SMTP server. it's the part of Postfix that actually talks to other mail servers and goes "hi yes hello, what can i get you ๐ซถ". buckle up, she's a long one.
โจ NAME โจ
smtpd โ Postfix SMTP server ๐
โจ SYNOPSIS โจ
smtpd [generic Postfix daemon options]
sendmail -bs
โจ DESCRIPTION โจ
so basically? the SMTP server takes network connection requests and then does zero or more SMTP transactions on each connection (yes, zero โ she can just vibe and leave, that's valid). every message she receives gets piped through the cleanup(8) daemon and dropped into the incoming queue as one single queue file. for this mode of operation, the program expects to be run from the master(8) process manager, no cap.
alternatively, the SMTP server can run in stand-alone mode โ that's traditionally what you get with "sendmail -bs". and here's the tea ๐ต: when the SMTP server runs stand-alone with non $mail_owner privileges, it receives mail even while the mail system is not running, deposits messages directly into the maildrop queue, and disables the SMTP server's access policies. but โ as of Postfix version 2.3, the SMTP server refuses to receive mail from the network when it runs with non $mail_owner privileges. periodt.
the SMTP server implements a whole variety of policies for connection requests, and for the parameters given to HELO, ETRN, MAIL FROM, VRFY and RCPT TO commands. they're all detailed below and in the main.cf configuration file. so many policies. so much main character energy ๐
๐ SECURITY ๐
the SMTP server is moderately security-sensitive โ not the drama queen of the daemons, but she's out here. she talks to SMTP clients and to DNS servers on the network. the SMTP server can be run chrooted at fixed low privilege, which is a nice lil safety blanket ๐ง
๐ STANDARDS ๐
she's certified, she's read the whole syllabus, she cites her sources:
- RFC 821 (SMTP protocol)
- RFC 1123 (Host requirements)
- RFC 1652 (8bit-MIME transport)
- RFC 1869 (SMTP service extensions)
- RFC 1870 (Message size declaration)
- RFC 1985 (ETRN command)
- RFC 2034 (SMTP enhanced status codes)
- RFC 2554 (AUTH command)
- RFC 2821 (SMTP protocol)
- RFC 2920 (SMTP pipelining)
- RFC 3030 (CHUNKING without BINARYMIME)
- RFC 3207 (STARTTLS command)
- RFC 3461 (SMTP DSN extension)
- RFC 3463 (Enhanced status codes)
- RFC 3848 (ESMTP transmission types)
- RFC 4409 (Message submission)
- RFC 4954 (AUTH command)
- RFC 5321 (SMTP protocol)
- RFC 6531 (Internationalized SMTP)
- RFC 6533 (Internationalized Delivery Status Notifications)
- RFC 7505 ("Null MX" No Service Resource Record)
๐ฉบ DIAGNOSTICS ๐ฉบ
problems and transactions get logged to syslogd(8) or postlogd(8). depending on the setting of the notify_classes parameter, the postmaster gets notified of bounces, protocol problems, policy violations, and of other trouble. like, she will tell on you, but affectionately ๐
โ๏ธ CONFIGURATION PARAMETERS โ๏ธ
changes to main.cf are picked up automatically, because smtpd(8) processes only run for a limited amount of time โ she's not clingy, she moves on. if you want the change to happen faster, run "postfix reload". slay.
the text below provides only a parameter summary. see postconf(5) for more details including examples (aka the director's commentary).
๐ ๏ธ COMPATIBILITY CONTROLS ๐ ๏ธ
these parameters work around implementation errors in other software, and/or let you override standards in order to prevent undesirable use. translation: sometimes other people's code is doing the most, and these are the workarounds ๐
broken_sasl_auth_clients(default:no) โ enable interoperability with remote SMTP clients that implement an obsolete version of theAUTHcommand (RFC 4954).disable_vrfy_command(default:no) โ disable the SMTPVRFYcommand.smtpd_noop_commands(default:empty) โ list of commands that the Postfix SMTP server replies to with"250 Ok", without doing any syntax checks and without changing state.strict_rfc821_envelopes(default:no) โ require that addresses received in SMTPMAIL FROMandRCPT TOcommands are enclosed with<>, and that those addresses do not contain RFC 822 style comments or phrases.
Available in Postfix version 2.1 and later:
smtpd_reject_unlisted_sender(default:no) โ request that the Postfix SMTP server rejects mail from unknown sender addresses, even when no explicitreject_unlisted_senderaccess restriction is specified.smtpd_sasl_exceptions_networks(default:empty) โ what remote SMTP clients the Postfix SMTP server will not offerAUTHsupport to.
Available in Postfix version 2.2 and later:
smtpd_discard_ehlo_keyword_address_maps(default:empty) โ lookup tables, indexed by the remote SMTP client address, with case insensitive lists ofEHLOkeywords (pipelining,starttls,auth, etc.) that the Postfix SMTP server will not send in theEHLOresponse to a remote SMTP client.smtpd_discard_ehlo_keywords(default:empty) โ a case insensitive list ofEHLOkeywords (pipelining,starttls,auth, etc.) that the Postfix SMTP server will not send in theEHLOresponse to a remote SMTP client.smtpd_delay_open_until_valid_rcpt(default:yes) โ postpone the start of an SMTP mail transaction until a validRCPT TOcommand is received.
Available in Postfix version 2.3 and later:
smtpd_tls_always_issue_session_ids(default:yes) โ force the Postfix SMTP server to issue a TLS session id, even when TLS session caching is turned off (smtpd_tls_session_cache_databaseis empty).
Available in Postfix version 2.6 and later:
tcp_windowsize(default:0) โ an optional workaround for routers that break TCP window scaling.
Available in Postfix version 2.7 and later:
smtpd_command_filter(default:empty) โ a mechanism to transform commands from remote SMTP clients.
Available in Postfix version 2.9 - 3.6:
smtpd_per_record_deadline(default:normal: no, overload: yes) โ change the behavior of thesmtpd_timeoutandsmtpd_starttls_timeouttime limits, from a time limit per read or write system call, to a time limit to send or receive a complete record (an SMTP command line, SMTP response line, SMTP message content line, or TLS protocol message).
Available in Postfix version 3.0 and later:
smtpd_dns_reply_filter(default:empty) โ optional filter for Postfix SMTP server DNS lookup results.
Available in Postfix 3.5 and later:
info_log_address_format(default:external) โ the email address form that will be used in non-debug logging (info, warning, etc.).
Available in Postfix version 3.6 and later:
smtpd_relay_before_recipient_restrictions(default: see'postconf -d'output) โ evaluatesmtpd_relay_restrictionsbeforesmtpd_recipient_restrictions.known_tcp_ports(default:lmtp=24, smtp=25, smtps=submissions=465, submission=587) โ optional setting that avoids lookups in theservices(5)database.
Available in Postfix version 3.7 and later:
smtpd_per_request_deadline(default:normal: no, overload: yes) โ change the behavior of thesmtpd_timeoutandsmtpd_starttls_timeouttime limits, from a time limit per plaintext or TLS read or write call, to a combined time limit for receiving a complete SMTP request and for sending a complete SMTP response.smtpd_min_data_rate(default:500) โ the minimum plaintext data transfer rate in bytes/second forDATAandBDATrequests, when deadlines are enabled withsmtpd_per_request_deadline.
๐ท๏ธ ADDRESS REWRITING CONTROLS ๐ท๏ธ
see the ADDRESS_REWRITING_README document for a detailed discussion of Postfix address rewriting. it's giving โจloreโจ.
receive_override_options(default:empty) โ enable or disable recipient validation, built-in content filtering, or address mapping.
Available in Postfix version 2.2 and later:
local_header_rewrite_clients(default:permit_inet_interfaces) โ rewrite or add message headers in mail from these clients, updating incomplete addresses with the domain name in$myoriginor$mydomain, and adding missing headers.
๐ช BEFORE-SMTPD PROXY AGENT ๐ช
Available in Postfix version 2.10 and later:
smtpd_upstream_proxy_protocol(default:empty) โ the name of the proxy protocol used by an optional before-smtpd proxy agent.smtpd_upstream_proxy_timeout(default:5s) โ the time limit for the proxy protocol specified with thesmtpd_upstream_proxy_protocolparameter.
๐ฌ AFTER QUEUE EXTERNAL CONTENT INSPECTION CONTROLS ๐ฌ
as of version 1.0, Postfix can be configured to send new mail to an external content filter AFTER the mail is queued. this content filter is expected to inject mail back into a (Postfix or other) MTA for further delivery. see the FILTER_README document for details.
content_filter(default:empty) โ after the message is queued, send the entire message to the specifiedtransport:destination.
๐ญ BEFORE QUEUE EXTERNAL CONTENT INSPECTION CONTROLS ๐ญ
as of version 2.1, the Postfix SMTP server can be configured to send incoming mail to a real-time SMTP-based content filter BEFORE mail is queued. this content filter is expected to inject mail back into Postfix. see the SMTPD_PROXY_README document for details on how to configure and operate this feature.
smtpd_proxy_filter(default:empty) โ the hostname and TCP port of the mail filtering proxy server.smtpd_proxy_ehlo(default:$myhostname) โ how the Postfix SMTP server announces itself to the proxy filter.smtpd_proxy_options(default:empty) โ list of options that control how the Postfix SMTP server communicates with a before-queue content filter.smtpd_proxy_timeout(default:100s) โ the time limit for connecting to a proxy filter and for sending or receiving information.
okay bestie there's SO much more where that came from, stay tuned ๐
๐ BEFORE QUEUE MILTER CONTROLS ๐
okay so as of version 2.3, Postfix is out here supporting the Sendmail version 8 Milter (mail filter) protocol, and honestly? iconic. These content filters live outside Postfix (they're the cool kids in their own house ๐
). They can peek at the SMTP command stream and the message content, and they can ask for modifications before mail gets queued. For the whole lore, go read the MILTER_README document. ๐ฆ
smtpd_milters(empty) โ the list of Milter (mail filter) applications that get to handle new mail arriving through the Postfixsmtpd(8)server.milter_protocol(6) โ the mail filter protocol version, plus any optional protocol extensions, used for talking to a Milter application. Heads up bestie: before Postfix 2.6 the default protocol is 2. ๐milter_default_action(tempfail) โ the default action to take when a Milter (mail filter) response just... isn't available (like, bad Postfix config or the Milter flat-out failed, rip).milter_macro_daemon_name($myhostname) โ the{daemon_name}macro value for Milter (mail filter) applications.milter_macro_v($mail_name $mail_version) โ the{v}macro value for Milter (mail filter) applications.milter_connect_timeout(30s) โ the time limit for connecting to a Milter (mail filter) application, and for negotiating protocol options.milter_command_timeout(30s) โ the time limit for sending an SMTP command to a Milter (mail filter) application, and for receiving the response.milter_content_timeout(300s) โ the time limit for sending message content to a Milter (mail filter) application, and for receiving the response.milter_connect_macros(seepostconf -doutput) โ the macros that get sent to Milter (mail filter) applications after an SMTP connection is completed.milter_helo_macros(seepostconf -doutput) โ the macros that get sent to Milter (mail filter) applications after the SMTPHELOorEHLOcommand.milter_mail_macros(seepostconf -doutput) โ the macros that get sent to Milter (mail filter) applications after the SMTPMAIL FROMcommand.milter_rcpt_macros(seepostconf -doutput) โ the macros that get sent to Milter (mail filter) applications after the SMTPRCPT TOcommand.milter_data_macros(seepostconf -doutput) โ the macros that get sent to version 4 or higher Milter (mail filter) applications after the SMTPDATAcommand.milter_unknown_command_macros(seepostconf -doutput) โ the macros that get sent to version 3 or higher Milter (mail filter) applications after an unknown SMTP command.milter_end_of_header_macros(seepostconf -doutput) โ the macros that get sent to Milter (mail filter) applications after the end of the message header.milter_end_of_data_macros(seepostconf -doutput) โ the macros that get sent to Milter (mail filter) applications after the message end-of-data.
โจ Available in Postfix version 3.1 and later โจ
milter_macro_defaults(empty) โ an optional list ofname=valuepairs that specify default values for arbitrary macros that Postfix may send to Milter applications. cute little safety net fr fr ๐
โจ Available in Postfix version 3.2 and later โจ
smtpd_milter_maps(empty) โ lookup tables with Milter settings per remote SMTP client IP address. slay, per-client vibes ๐
๐ GENERAL CONTENT INSPECTION CONTROLS ๐
The following parameters are applicable for both built-in and external content filters. equal opportunity inspecting, we love to see it.
โจ Available in Postfix version 2.1 and later โจ
receive_override_options(empty) โ enable or disable recipient validation, built-in content filtering, or address mapping. the lil on/off switch for the whole vibe check ๐ฅ
๐ฆ EXTERNAL CONTENT INSPECTION CONTROLS ๐ฆ
The following parameters are applicable for both before-queue and after-queue content filtering. both timelines, same rules.
โจ Available in Postfix version 2.1 and later โจ
smtpd_authorized_xforward_hosts(empty) โ which remote SMTP clients are allowed to use theXFORWARDfeature. gatekeeping, but make it deliberate โจ
๐ SASL AUTHENTICATION CONTROLS ๐
Postfix SASL support (RFC 4954) can be used to authenticate remote SMTP clients to the Postfix SMTP server, and to authenticate the Postfix SMTP client to a remote SMTP server. Two-way authentication?? we love a mutual moment ๐ซถ. See the SASL_README document for the details.
broken_sasl_auth_clients(no) โ enable interoperability with remote SMTP clients that implement an obsolete version of theAUTHcommand (RFC 4954). yes we're being nice to the old ones ๐smtpd_sasl_auth_enable(no) โ enable SASL authentication in the Postfix SMTP server.smtpd_sasl_local_domain(empty) โ the name of the Postfix SMTP server's local SASL authentication realm.smtpd_sasl_security_options(noanonymous) โ Postfix SMTP server SASL security options. and bestie, as of Postfix 2.3 the list of available features depends on the SASL server implementation that's selected withsmtpd_sasl_type. so like, pick your fighter first ๐smtpd_sender_login_maps(empty) โ optional lookup table with the SASL login names that own the sender (MAIL FROM) addresses. mapping who's allowed to send as who, no cap.
โจ Available in Postfix version 2.1 and later โจ
smtpd_sasl_exceptions_networks(empty) โ which remote SMTP clients the Postfix SMTP server will not offerAUTHsupport to. the "you don't get the invite" list ๐
โจ Available in Postfix version 2.1 and 2.2 โจ
smtpd_sasl_application_name(smtpd) โ the application name that the Postfix SMTP server uses for SASL server initialization.
โจ Available in Postfix version 2.3 and later โจ
smtpd_sasl_authenticated_header(no) โ report the SASL authenticated user name in thesmtpd(8)Receivedmessage header.smtpd_sasl_path(smtpd) โ implementation-specific information that the Postfix SMTP server passes through to the SASL plug-in implementation that's selected withsmtpd_sasl_type.smtpd_sasl_type(cyrus) โ the SASL plug-in type that the Postfix SMTP server should use for authentication.
โจ Available in Postfix version 2.5 and later โจ
cyrus_sasl_config_path(empty) โ search path for Cyrus SASL application configuration files, currently used only to locate the$smtpd_sasl_path.conffile. just the one job but she does it ๐
โจ Available in Postfix version 2.11 and later โจ
smtpd_sasl_service(smtp) โ the service name that gets passed to the SASL plug-in selected withsmtpd_sasl_typeandsmtpd_sasl_path.
โจ Available in Postfix version 3.4 and later โจ
smtpd_sasl_response_limit(12288) โ the maximum length of a SASL client's response to a server challenge. know your limits bestie ๐ธ
โจ Available in Postfix 3.6 and later โจ
smtpd_sasl_mechanism_filter(!external, static:rest) โ if non-empty, a filter for the SASL mechanism names that the Postfix SMTP server will announce in theEHLOresponse. curating the lineup, periodt ๐
โจ STARTTLS SUPPORT CONTROLS โจ
okay bestie, if you want the full deep-dive on how to set up STARTTLS, the TLS_README document has all the tea โ๐.
smtpd_tls_security_level(empty) โ The SMTP TLS security level for the Postfix SMTP server; when you set a non-empty value, it overrides the obsoletesmtpd_use_tlsandsmtpd_enforce_tlsparameters. no cap.smtpd_sasl_tls_security_options($smtpd_sasl_security_options) โ The SASL authentication security options that the Postfix SMTP server uses for TLS encrypted SMTP sessions. ๐smtpd_starttls_timeout(see 'postconf -d' output) โ The time limit for Postfix SMTP server write and read operations during TLS startup and shutdown handshake procedures. โณsmtpd_tls_CAfile(empty) โ A file containing (PEM format) CA certificates of root CAs trusted to sign either remote SMTP client certificates or intermediate CA certificates.smtpd_tls_CApath(empty) โ A directory containing (PEM format) CA certificates of root CAs trusted to sign either remote SMTP client certificates or intermediate CA certificates.smtpd_tls_always_issue_session_ids(yes) โ Force the Postfix SMTP server to issue a TLS session id, even when TLS session caching is turned off (smtpd_tls_session_cache_databaseis empty). ๐smtpd_tls_ask_ccert(no) โ Ask a remote SMTP client for a client certificate.smtpd_tls_auth_only(no) โ When TLS encryption is optional in the Postfix SMTP server, do not announce or accept SASL authentication over unencrypted connections. periodt. ๐ซsmtpd_tls_ccert_verifydepth(9) โ The verification depth for remote SMTP client certificates.smtpd_tls_cert_file(empty) โ File with the Postfix SMTP server RSA certificate in PEM format. ๐smtpd_tls_exclude_ciphers(empty) โ List of ciphers or cipher types to exclude from the SMTP server cipher list at all TLS security levels.smtpd_tls_dcert_file(empty) โ File with the Postfix SMTP server DSA certificate in PEM format.smtpd_tls_dh1024_param_file(empty) โ File with DH parameters that the Postfix SMTP server should use with non-export EDH ciphers.smtpd_tls_dh512_param_file(empty) โ File with DH parameters that the Postfix SMTP server should use with export-grade EDH ciphers.smtpd_tls_dkey_file($smtpd_tls_dcert_file) โ File with the Postfix SMTP server DSA private key in PEM format. ๐smtpd_tls_key_file($smtpd_tls_cert_file) โ File with the Postfix SMTP server RSA private key in PEM format. ๐smtpd_tls_loglevel(0) โ Enable additional Postfix SMTP server logging of TLS activity.smtpd_tls_mandatory_ciphers(medium) โ The minimum TLS cipher grade that the Postfix SMTP server will use with mandatory TLS encryption.smtpd_tls_mandatory_exclude_ciphers(empty) โ Additional list of ciphers or cipher types to exclude from the Postfix SMTP server cipher list at mandatory TLS security levels.smtpd_tls_mandatory_protocols(see 'postconf -d' output) โ TLS protocols accepted by the Postfix SMTP server with mandatory TLS encryption.smtpd_tls_received_header(no) โ Request that the Postfix SMTP server producesReceived:message headers that include information about the protocol and cipher used, as well as the remote SMTP client CommonName and client certificate issuer CommonName. ๐จsmtpd_tls_req_ccert(no) โ With mandatory TLS encryption, require a trusted remote SMTP client certificate in order to allow TLS connections to proceed.smtpd_tls_wrappermode(no) โ Run the Postfix SMTP server in TLS "wrapper" mode, instead of using theSTARTTLScommand.tls_daemon_random_bytes(32) โ The number of pseudo-random bytes that ansmtp(8)orsmtpd(8)process requests from thetlsmgr(8)server in order to seed its internal pseudo random number generator (PRNG). ๐ฒtls_high_cipherlist(see 'postconf -d' output) โ The OpenSSL cipherlist for "high" grade ciphers.tls_medium_cipherlist(see 'postconf -d' output) โ The OpenSSL cipherlist for "medium" or higher grade ciphers.tls_null_cipherlist(eNULL:!aNULL) โ The OpenSSL cipherlist for "NULL" grade ciphers that provide authentication without encryption.
Available in Postfix version 2.3..3.7:
tls_low_cipherlist(see 'postconf -d' output) โ The OpenSSL cipherlist for "low" or higher grade ciphers.tls_export_cipherlist(see 'postconf -d' output) โ The OpenSSL cipherlist for "export" or higher grade ciphers.
Available in Postfix version 2.5 and later:
smtpd_tls_fingerprint_digest(see 'postconf -d' output) โ The message digest algorithm to construct remote SMTP client-certificate fingerprints or public key fingerprints (Postfix 2.9 and later) forcheck_ccert_accessandpermit_tls_clientcerts. ๐
Available in Postfix version 2.6 and later:
smtpd_tls_protocols(see postconf -d output) โ TLS protocols accepted by the Postfix SMTP server with opportunistic TLS encryption.smtpd_tls_ciphers(medium) โ The minimum TLS cipher grade that the Postfix SMTP server will use with opportunistic TLS encryption.smtpd_tls_eccert_file(empty) โ File with the Postfix SMTP server ECDSA certificate in PEM format.smtpd_tls_eckey_file($smtpd_tls_eccert_file) โ File with the Postfix SMTP server ECDSA private key in PEM format.smtpd_tls_eecdh_grade(see 'postconf -d' output) โ The Postfix SMTP server security grade for ephemeral elliptic-curve Diffie-Hellman (EECDH) key exchange.tls_eecdh_strong_curve(prime256v1) โ The elliptic curve used by the Postfix SMTP server for sensibly strong ephemeral ECDH key exchange.tls_eecdh_ultra_curve(secp384r1) โ The elliptic curve used by the Postfix SMTP server for maximally strong ephemeral ECDH key exchange. ๐
Available in Postfix version 2.8 and later:
tls_preempt_cipherlist(no) โ With SSLv3 and later, use the Postfix SMTP server's cipher preference order instead of the remote client's cipher preference order.tls_disable_workarounds(see 'postconf -d' output) โ List or bit-mask of OpenSSL bug work-arounds to disable.
Available in Postfix version 2.11 and later:
tlsmgr_service_name(tlsmgr) โ The name of thetlsmgr(8)service entry inmaster.cf.
Available in Postfix version 3.0 and later:
tls_session_ticket_cipher(Postfix >= 3.0: aes-256-cbc, Postfix < 3.0: aes-128-cbc) โ Algorithm used to encrypt RFC5077 TLS session tickets. ๐๏ธ
Available in Postfix version 3.2 and later:
tls_eecdh_auto_curves(see 'postconf -d' output) โ The prioritized list of elliptic curves supported by the Postfix SMTP client and server.
Available in Postfix version 3.4 and later:
smtpd_tls_chain_files(empty) โ List of one or more PEM files, each holding one or more private keys directly followed by a corresponding certificate chain. ๐tls_server_sni_maps(empty) โ Optional lookup tables that map names received from remote SMTP clients via the TLS Server Name Indication (SNI) extension to the appropriate keys and certificate chains.
Available in Postfix 3.5, 3.4.6, 3.3.5, 3.2.10, 3.1.13 and later:
tls_fast_shutdown_enable(yes) โ A workaround for implementations that hang Postfix while shutting down a TLS session, until Postfix times out.
Available in Postfix version 3.8 and later:
tls_ffdhe_auto_groups(see 'postconf -d' output) โ The prioritized list of finite-field Diffie-Hellman ephemeral (FFDHE) key exchange groups supported by the Postfix SMTP client and server.
Available in Postfix 3.9, 3.8.1, 3.7.6, 3.6.10, 3.5.20 and later:
tls_config_file(default) โ Optional configuration file with baseline OpenSSL settings.tls_config_name(empty) โ The application name passed by Postfix to OpenSSL library initialization functions.
๐ OBSOLETE STARTTLS CONTROLS ๐
โ ๏ธ these parameters are only here for compatibility with Postfix versions before 2.3. Support for these will be removed in a future release. so like, don't build new stuff on them, bestie ๐
smtpd_use_tls(no) โ Opportunistic TLS: announce STARTTLS support to remote SMTP clients, but do not require that clients use TLS encryption.smtpd_enforce_tls(no) โ Mandatory TLS: announce STARTTLS support to remote SMTP clients, and require that clients use TLS encryption.smtpd_tls_cipherlist(empty) โ Obsolete Postfix < 2.3 control for the Postfix SMTP server TLS cipher list.
๐ SMTPUTF8 CONTROLS ๐
Preliminary SMTPUTF8 support is introduced with Postfix 3.0. (yes, preliminary, it's giving early access โจ)
smtputf8_enable(yes) โ Enable preliminary SMTPUTF8 support for the protocols described in RFC 6531, RFC 6532, and RFC 6533.strict_smtputf8(no) โ Enable stricter enforcement of the SMTPUTF8 protocol.smtputf8_autodetect_classes(sendmail, verify) โ Detect that a message requires SMTPUTF8 support for the specified mail origin classes.
Available in Postfix version 3.2 and later:
enable_idna2003_compatibility(no) โ Enable 'transitional' compatibility between IDNA2003 and IDNA2008, when converting UTF-8 domain names to/from the ASCII form that is used for DNS lookups. ๐
๐ฆ VERP SUPPORT CONTROLS ๐ฆ
okay so with VERP style delivery, each recipient of a message receives a customized copy of the message with his/her own recipient address encoded in the envelope sender address. The VERP_README file describes configuration and operation details of Postfix support for variable envelope return path addresses. VERP style delivery is requested with the SMTP XVERP command or with the "sendmail -V" command-line option and is available in Postfix version 1.1 and later. ๐ฏ
default_verp_delimiters(+=) โ The two default VERP delimiter characters.verp_delimiter_filter(-=+) โ The characters Postfix accepts as VERP delimiter characters on the Postfixsendmail(1)command line and in SMTP commands.
Available in Postfix version 1.1 and 2.0:
authorized_verp_clients($mynetworks) โ What remote SMTP clients are allowed to specify theXVERPcommand.
Available in Postfix version 2.1 and later:
smtpd_authorized_verp_clients($authorized_verp_clients) โ What remote SMTP clients are allowed to specify theXVERPcommand.
๐ TROUBLE SHOOTING CONTROLS
okay bestie, when stuff goes sideways and you're like "why is my mail doing THAT ๐ญ", this is the section. The DEBUG_README document spills all the tea on how to debug parts of the Postfix mail system. The methods range from just making the software log a LOT of detail, all the way to running some daemon processes under the control of a call tracer or a debugger. pick your fighter โจ
debug_peer_level(default:2) โ how much the verbose logging level gets bumped up when a nexthop destination, remote client or server name, or network address matches a pattern you gave in thedebug_peer_listparameter.debug_peer_list(default: empty) โ optional list of nexthop destination, remote client or server name, or network address patterns that, if matched, make the verbose logging level go up by however much$debug_peer_levelsays. it's giving "watch this one specifically" energy ๐error_notice_recipient(default:postmaster) โ who receives postmaster notifications about mail delivery problems caused by policy, resource, software or protocol errors.internal_mail_filter_classes(default: empty) โ which categories of Postfix-generated mail get subjected to before-queue content inspection bynon_smtpd_milters,header_checksandbody_checks.notify_classes(default:resource, software) โ the list of error classes that get reported to the postmaster.smtpd_reject_footer(default: empty) โ optional info that gets appended after each Postfix SMTP server 4XX or 5XX response.soft_bounce(default:no) โ a safety net that keeps mail queued that would otherwise be returned to the sender.
Available in Postfix version 2.1 and later:
smtpd_authorized_xclient_hosts(default: empty) โ which remote SMTP clients are allowed to use the XCLIENT feature. ๐๏ธ
Available in Postfix version 2.10 and later:
smtpd_log_access_permit_actions(default: empty) โ turns on logging of the named "permit" actions in SMTP server access lists. and yeah, by default the SMTP server logs "reject" actions but not "permit" actions, so if you're wondering why your permits are silent, that's why bestie ๐
๐ป KNOWN VERSUS UNKNOWN RECIPIENT CONTROLS
so as of Postfix version 2.0, the SMTP server rejects mail for unknown recipients. why? because it stops the mail queue from clogging up with undeliverable MAILER-DAEMON messages. it's self care fr fr ๐ง If you want the whole deep dive, LOCAL_RECIPIENT_README and ADDRESS_CLASS_README are right there waiting for you.
show_user_unknown_table_name(default:yes) โ display the name of the recipient table in the "User unknown" responses. ๐canonical_maps(default: empty) โ optional address mapping lookup tables for message headers and envelopes.recipient_canonical_maps(default: empty) โ optional address mapping lookup tables for envelope and header recipient addresses.sender_canonical_maps(default: empty) โ optional address mapping lookup tables for envelope and header sender addresses.
๐ Parameters concerning known/unknown local recipients
mydestination(default:$myhostname, localhost.$mydomain, localhost) โ the list of domains that get delivered via the$local_transportmail delivery transport.inet_interfaces(default:all) โ the local network interface addresses that this mail system receives mail on.proxy_interfaces(default: empty) โ the remote network interface addresses that this mail system receives mail on by way of a proxy or network address translation unit. sneaky but valid ๐inet_protocols(default: seepostconf -doutput) โ the Internet protocols Postfix will attempt to use when making or accepting connections.local_recipient_maps(default:proxy:unix:passwd.byname $alias_maps) โ lookup tables with all names or addresses of local recipients. a recipient address counts as local when its domain matches$mydestination,$inet_interfacesor$proxy_interfaces.unknown_local_recipient_reject_code(default:550) โ the numerical Postfix SMTP server response code when a recipient address is local, and$local_recipient_mapsspecifies a list of lookup tables that does not match the recipient. rude, but the code says so ๐ค
๐ฐ๏ธ Parameters concerning known/unknown recipients of relay destinations
relay_domains(default: Postfix >= 3.0: empty, Postfix < 3.0:$mydestination) โ what destination domains (and subdomains thereof) this system will relay mail to.relay_recipient_maps(default: empty) โ optional lookup tables with all valid addresses in the domains that match$relay_domains.unknown_relay_recipient_reject_code(default:550) โ the numerical Postfix SMTP server reply code when a recipient address matches$relay_domains, andrelay_recipient_mapsspecifies a list of lookup tables that does not match the recipient address.
๐ธ Parameters concerning known/unknown recipients in virtual alias domains
virtual_alias_domains(default:$virtual_alias_maps) โ Postfix is the final destination for the specified list of virtual alias domains. meaning: domains for which all addresses are aliased to addresses in other local or remote domains.virtual_alias_maps(default:$virtual_maps) โ optional lookup tables that alias specific mail addresses or domains to other local or remote addresses.unknown_virtual_alias_reject_code(default:550) โ the Postfix SMTP server reply code when a recipient address matches$virtual_alias_domains, and$virtual_alias_mapsspecifies a list of lookup tables that does not match the recipient address.
๐ฌ Parameters concerning known/unknown recipients in virtual mailbox domains
virtual_mailbox_domains(default:$virtual_mailbox_maps) โ Postfix is the final destination for the specified list of domains; mail gets delivered via the$virtual_transportmail delivery transport.virtual_mailbox_maps(default: empty) โ optional lookup tables with all valid addresses in the domains that match$virtual_mailbox_domains.unknown_virtual_mailbox_reject_code(default:550) โ the Postfix SMTP server reply code when a recipient address matches$virtual_mailbox_domains, and$virtual_mailbox_mapsspecifies a list of lookup tables that does not match the recipient address.
bestie reminder: those three reject codes all defaulting to 550 is not a coincidence, it's the "no thanks, unknown recipient" flex ๐
๐ RESOURCE AND RATE CONTROLS ๐
Okay bestie, these parameters are the bouncers of the SMTP server โ they cap how much resource it'll burn and how fast any one client gets to go. Rate limiting era, fr fr. ๐
line_length_limit(default2048) โ when stuff comes in, long lines get chopped into lil pieces of at most this length; when it goes back out for delivery, the long lines get stitched back together. Chop chop, sew sew. ๐งตqueue_minfree(default0) โ the minimum amount of free space, in bytes, that the queue file system needs to have before it'll even accept mail. No room, no mail.message_size_limit(default10240000) โ the biggest a message can be, in bytes, envelope info included. Absolute unit ceiling.smtpd_recipient_limit(default1000) โ the most recipients the Postfix SMTP server will take per message delivery request.smtpd_timeout(default: normal300s, overload10s) โ two vibes in one: when the server wants to send an SMTP response, this is how long it waits for the underlying network write to finish; and when the server wants to receive an SMTP client request, this is how long it waits for the underlying network read to finish. โณsmtpd_history_flush_threshold(default100) โ the max number of lines in the SMTP server command history before it gets flushed on receipt ofEHLO,RSET, or end ofDATA. Memory hygiene, we love to see it.
โจ Available in Postfix version 2.3 and later โจ
smtpd_peername_lookup(defaultyes) โ try to look up the remote SMTP client hostname, and verify the name actually matches the client IP address. Spoiler: names lie sometimes.
The per-SMTP-client-connection count and request rate limits are implemented in co-operation with the anvil(8) service, and they're available in Postfix version 2.2 and later. ๐ ๏ธ
smtpd_client_connection_count_limit(default50) โ how many simultaneous connections any one client is allowed to make to this service. Sharing is caring, bestie.smtpd_client_connection_rate_limit(default0) โ the max number of connection attempts any client can make to this service per time unit.smtpd_client_message_rate_limit(default0) โ the max number of message delivery requests any client can make to this service per time unit, regardless of whether Postfix actually accepts those messages. Doesn't matter if it gets rejected, it still counts.smtpd_client_recipient_rate_limit(default0) โ the max number of recipient addresses any client can send to this service per time unit, regardless of whether Postfix actually accepts those recipients.smtpd_client_event_limit_exceptions(default$mynetworks) โ the clients that are exempt from thesmtpd_client_*_count/rate_limitrestrictions. VIP list. ๐
โจ Available in Postfix version 2.3 and later โจ
smtpd_client_new_tls_session_rate_limit(default0) โ the max number of brand-new (i.e., uncached) TLS sessions a remote SMTP client can negotiate with this service per time unit. Fresh TLS only, no reusing, okay? ๐
โจ Available in Postfix version 2.9 - 3.6 โจ
smtpd_per_record_deadline(default: normalno, overloadyes) โ switches up how thesmtpd_timeoutandsmtpd_starttls_timeouttime limits behave: instead of a time limit per read or write system call, it becomes a time limit to send or receive a complete record โ that's an SMTP command line, an SMTP response line, an SMTP message content line, or a TLS protocol message. Whole record or nothing.
โจ Available in Postfix version 3.1 and later โจ
smtpd_client_auth_rate_limit(default0) โ the max number ofAUTHcommands any client can send to this service per time unit, regardless of whether Postfix actually accepts those commands. Stop brute-forcing, it's not cute. ๐
โจ Available in Postfix version 3.7 and later โจ
smtpd_per_request_deadline(default: normalno, overloadyes) โ changes howsmtpd_timeoutandsmtpd_starttls_timeoutwork: instead of a time limit per plaintext or TLS read/write call, it's a combined time limit for receiving a whole SMTP request AND sending a whole SMTP response. Two-for-one deadline.smtpd_min_data_rate(default500) โ the minimum plaintext data transfer rate in bytes/second forDATAandBDATrequests, when deadlines are enabled viasmtpd_per_request_deadline. Speed check: pass or perish.header_from_format(defaultstandard) โ the format of the Postfix-generatedFrom:header. โ๏ธ
โจ Available in Postfix version 3.8 and later โจ
smtpd_client_ipv4_prefix_length(default32) โ aggregatessmtpd_client_*_countandsmtpd_client_*_ratestatistics by IPv4 network blocks with the specified network prefix.smtpd_client_ipv6_prefix_length(default84) โ aggregatessmtpd_client_*_countandsmtpd_client_*_ratestatistics by IPv6 network blocks with the specified network prefix. IPv6 girlies, this one's for you. ๐ฆ
โจ Available in Postfix 3.9, 3.8.1, 3.7.6, 3.6.10, 3.5.20 and later โจ
smtpd_forbid_unauth_pipelining(default:yeson Postfix >= 3.9) โ disconnects remote SMTP clients that violateRFC 2920(or5321) command pipelining constraints. Rule broken, connection broken. Periodt. ๐ซ
โจ Available in Postfix 3.9, 3.8.4, 3.7.9, 3.6.13, 3.5.23 and later โจ
smtpd_forbid_bare_newline(default:noon Postfix < 3.9) โ reject or restrict input lines from an SMTP client that end in<LF>instead of the standard<CR><LF>. Read the spec, bestie.smtpd_forbid_bare_newline_exclusions(default$mynetworks) โ clients to exclude fromsmtpd_forbid_bare_newlineenforcement. Special lil exemption pass. ๐
โจ Available in Postfix 3.9, 3.8.5, 3.7.10, 3.6.14, 3.5.24 and later โจ
smtpd_forbid_bare_newline_reject_code(default550) โ the numerical Postfix SMTP server response code used when rejecting a request withsmtpd_forbid_bare_newline = reject. ๐
๐ TARPIT CONTROLS ๐
So here's the tea: when a remote SMTP client keeps making errors, the Postfix SMTP server can slide in lil delays before responding. It's not petty, it's strategy โ it helps slow down runaway software. The whole thing is governed by an error counter that tallies how many errors a client racks up within an SMTP session without delivering mail. You're on thin ice, and the ice is melting on purpose. ๐ง
smtpd_error_sleep_time(default1s) โ with Postfix version 2.1 and later: the SMTP server response delay after a client has made more than$smtpd_soft_error_limiterrors, and fewer than$smtpd_hard_error_limiterrors, without delivering mail.smtpd_soft_error_limit(default10) โ the number of errors a remote SMTP client can make without delivering mail before the Postfix SMTP server starts slowing down all its responses. Warning shot, bestie.smtpd_hard_error_limit(default: normal20, overload1) โ the absolute max number of errors a remote SMTP client can make without delivering mail.smtpd_junk_command_limit(default: normal100, overload1) โ the number of junk commands (NOOP,VRFY,ETRNorRSET) a remote SMTP client can send before the Postfix SMTP server starts bumping the error counter with each junk command. Filler commands are NOT it.
โจ Available in Postfix version 2.1 and later โจ
smtpd_recipient_overshoot_limit(default1000) โ the number of recipients a remote SMTP client can send in excess of the limit set with$smtpd_recipient_limit, before the Postfix SMTP server increments the per-session error count for each extra recipient. Over the limit? That's a point against you, every single time.
๐ซถ ACCESS POLICY DELEGATION CONTROLS ๐ซถ
As of version 2.1, Postfix can be configured to delegate access policy decisions to an external server running outside of Postfix. Outsourcing the judgment calls, iconic. Peep the file SMTPD_POLICY_README for the whole story. ๐
smtpd_policy_service_max_idle(default300s) โ how long until an idle SMTPD policy service connection gets closed. Ghost them after 5 minutes.smtpd_policy_service_max_ttl(default1000s) โ how long until an active SMTPD policy service connection gets closed.smtpd_policy_service_timeout(default100s) โ the time limit for connecting to, writing to, or receiving from a delegated SMTPD policy server. โฑ๏ธ
โจ Available in Postfix version 3.0 and later โจ
smtpd_policy_service_default_action(default451 4.3.5 Server configuration problem) โ the default action taken when an SMTPD policy service request fails. No answer? You get a 451, sorry bestie.smtpd_policy_service_request_limit(default0) โ the max number of requests per SMTPD policy service connection, or zero for no limit.smtpd_policy_service_try_limit(default2) โ the max number of attempts to send an SMTPD policy service request before giving up. Two strikes, then we move on.smtpd_policy_service_retry_delay(default1s) โ the delay between attempts to resend a failed SMTPD policy service request.
โจ Available in Postfix version 3.1 and later โจ
smtpd_policy_service_policy_context(defaultempty) โ optional info that the Postfix SMTP server puts in the"policy_context"attribute of a policy service request (originally, this was so multiplecheck_policy_serviceclients could share the same service endpoint). Sharing is caring, again. ๐ซถ
๐ ACCESS CONTROLS ๐
okay so bestie, the SMTPD_ACCESS_README document gives an introduction to all the SMTP server access control features. that's the whole vibe. go read it. ๐
smtpd_delay_reject(default:yes) โ wait until theRCPT TOcommand before evaluating$smtpd_client_restrictions,$smtpd_helo_restrictionsand$smtpd_sender_restrictions, or wait until theETRNcommand before evaluating$smtpd_client_restrictionsand$smtpd_helo_restrictions. no cap. โจparent_domain_matches_subdomains(default:see 'postconf -d' output) โ a list of Postfix features where the pattern"example.com"also matches subdomains ofexample.com, instead of requiring an explicit".example.com"pattern. iconic behavior. ๐ฆsmtpd_client_restrictions(default:empty) โ optional restrictions that the Postfix SMTP server applies in the context of a client connection request. ๐ธsmtpd_helo_required(default:no) โ require that a remote SMTP client introduces itself with theHELOorEHLOcommand before sending theMAILcommand or other commands that requireEHLOnegotiation. ๐smtpd_helo_restrictions(default:empty) โ optional restrictions that the Postfix SMTP server applies in the context of a clientHELOcommand. โจsmtpd_sender_restrictions(default:empty) โ optional restrictions that the Postfix SMTP server applies in the context of a clientMAIL FROMcommand. ๐smtpd_recipient_restrictions(default:see 'postconf -d' output) โ optional restrictions that the Postfix SMTP server applies in the context of a clientRCPT TOcommand, aftersmtpd_relay_restrictions. ๐smtpd_etrn_restrictions(default:empty) โ optional restrictions that the Postfix SMTP server applies in the context of a clientETRNcommand. ๐allow_untrusted_routing(default:no) โ forward mail with sender-specified routing (user[@%!]remote[@%!]site) from untrusted clients to destinations matching$relay_domains. lowkey spicy. ๐ฅsmtpd_restriction_classes(default:empty) โ user-defined aliases for groups of access restrictions. ๐smtpd_null_access_lookup_key(default:<>) โ the lookup key to be used in SMTPaccess(5)tables instead of the null sender address. ๐ซถpermit_mx_backup_networks(default:empty) โ restrict the use of thepermit_mx_backupSMTP access feature to only domains whose primary MX hosts match the listed networks. ๐
โจ Available in Postfix version 2.0 and later: โจ
smtpd_data_restrictions(default:empty) โ optional access restrictions that the Postfix SMTP server applies in the context of the SMTPDATAcommand. ๐smtpd_expansion_filter(default:see 'postconf -d' output) โ what characters are allowed in$nameexpansions of RBL reply templates. ๐ง
๐ธ Available in Postfix version 2.1 and later: ๐ธ
smtpd_reject_unlisted_sender(default:no) โ request that the Postfix SMTP server rejects mail from unknown sender addresses, even when no explicitreject_unlisted_senderaccess restriction is specified. ๐ญsmtpd_reject_unlisted_recipient(default:yes) โ request that the Postfix SMTP server rejects mail for unknown recipient addresses, even when no explicitreject_unlisted_recipientaccess restriction is specified. ๐
๐ฆ Available in Postfix version 2.2 and later: ๐ฆ
smtpd_end_of_data_restrictions(default:empty) โ optional access restrictions that the Postfix SMTP server applies in the context of the SMTPEND-OF-DATAcommand. โญ
๐ Available in Postfix version 2.10 and later: ๐
smtpd_relay_restrictions(default:permit_mynetworks,permit_sasl_authenticated,defer_unauth_destination) โ access restrictions for mail relay control that the Postfix SMTP server applies in the context of theRCPT TOcommand, beforesmtpd_recipient_restrictions. main character energy fr fr. ๐
๐ฆ SENDER AND RECIPIENT ADDRESS VERIFICATION CONTROLS ๐ฆ
Postfix version 2.1 introduces sender and recipient address verification. this feature is implemented by sending probe email messages that are not actually delivered. it is requested via the reject_unverified_sender and reject_unverified_recipient access restrictions. the status of verification probes is maintained by the verify(8) server. see the file ADDRESS_VERIFICATION_README for information about how to configure and operate the Postfix sender/recipient address verification service. bestie, this is the detective arc. ๐๐
address_verify_poll_count(default:normal: 3, overload: 1) โ how many times to query theverify(8)service for the completion of an address verification request in progress. โจaddress_verify_poll_delay(default:3s) โ the delay between queries for the completion of an address verification request in progress. ๐address_verify_sender(default:$double_bounce_sender) โ the sender address to use in address verification probes; prior to Postfix 2.5 the default was"postmaster". ๐unverified_sender_reject_code(default:450) โ the numerical Postfix SMTP server response code when a recipient address is rejected by thereject_unverified_senderrestriction. yes, it says recipient address, keep it moving. ๐ญunverified_recipient_reject_code(default:450) โ the numerical Postfix SMTP server response when a recipient address is rejected by thereject_unverified_recipientrestriction. ๐
๐ Available in Postfix version 2.6 and later: ๐
unverified_sender_defer_code(default:450) โ the numerical Postfix SMTP server response code when a sender address probe fails due to a temporary error condition. ๐ฆunverified_recipient_defer_code(default:450) โ the numerical Postfix SMTP server response when a recipient address probe fails due to a temporary error condition. ๐ธunverified_sender_reject_reason(default:empty) โ the Postfix SMTP server's reply when rejecting mail withreject_unverified_sender. ๐unverified_recipient_reject_reason(default:empty) โ the Postfix SMTP server's reply when rejecting mail withreject_unverified_recipient. โจunverified_sender_tempfail_action(default:$reject_tempfail_action) โ the Postfix SMTP server's action whenreject_unverified_senderfails due to a temporary error condition. ๐ซถunverified_recipient_tempfail_action(default:$reject_tempfail_action) โ the Postfix SMTP server's action whenreject_unverified_recipientfails due to a temporary error condition. ๐
๐ Available with Postfix 2.9 and later: ๐
address_verify_sender_ttl(default:0s) โ the time between changes in the time-dependent portion of address verification probe sender addresses. โญ
๐ ACCESS CONTROL RESPONSES ๐
the following parameters control numerical SMTP reply codes and/or text responses. so like, the actual clapback energy. ๐
access_map_reject_code(default:554) โ the numerical Postfix SMTP server response code for anaccess(5)map"reject"action. ๐ฅdefer_code(default:450) โ the numerical Postfix SMTP server response code when a remote SMTP client request is rejected by the"defer"restriction. ๐คinvalid_hostname_reject_code(default:501) โ the numerical Postfix SMTP server response code when the clientHELOorEHLOcommand parameter is rejected by thereject_invalid_helo_hostnamerestriction. ๐maps_rbl_reject_code(default:554) โ the numerical Postfix SMTP server response code when a remote SMTP client request is blocked by thereject_rbl_client,reject_rhsbl_client,reject_rhsbl_reverse_client,reject_rhsbl_senderorreject_rhsbl_recipientrestriction. ๐non_fqdn_reject_code(default:504) โ the numerical Postfix SMTP server reply code when a client request is rejected by thereject_non_fqdn_helo_hostname,reject_non_fqdn_senderorreject_non_fqdn_recipientrestriction. ๐ฆplaintext_reject_code(default:450) โ the numerical Postfix SMTP server response code when a request is rejected by thereject_plaintext_sessionrestriction. ๐reject_code(default:554) โ the numerical Postfix SMTP server response code when a remote SMTP client request is rejected by the"reject"restriction. ๐ซrelay_domains_reject_code(default:554) โ the numerical Postfix SMTP server response code when a client request is rejected by thereject_unauth_destinationrecipient restriction. ๐ฎunknown_address_reject_code(default:450) โ the numerical response code when the Postfix SMTP server rejects a sender or recipient address because its domain is unknown. โunknown_client_reject_code(default:450) โ the numerical Postfix SMTP server response code when a client without validaddress <=> namemapping is rejected by thereject_unknown_client_hostnamerestriction. ๐unknown_hostname_reject_code(default:450) โ the numerical Postfix SMTP server response code when the hostname specified with theHELOorEHLOcommand is rejected by thereject_unknown_helo_hostnamerestriction. ๐ธ
โจ Available in Postfix version 2.0 and later: โจ
default_rbl_reply(default:see 'postconf -d' output) โ the default Postfix SMTP server response template for a request that is rejected by an RBL-based restriction. ๐multi_recipient_bounce_reject_code(default:550) โ the numerical Postfix SMTP server response code when a remote SMTP client request is blocked by thereject_multi_recipient_bouncerestriction. ๐ญrbl_reply_maps(default:empty) โ optional lookup tables with RBL response templates. ๐๏ธ
๐ Available in Postfix version 2.6 and later: ๐
access_map_defer_code(default:450) โ the numerical Postfix SMTP server response code for anaccess(5)map"defer"action, including"defer_if_permit"or"defer_if_reject". ๐คreject_tempfail_action(default:defer_if_permit) โ the Postfix SMTP server's action when a reject-type restriction fails due to a temporary error condition. ๐ซถunknown_helo_hostname_tempfail_action(default:$reject_tempfail_action) โ the Postfix SMTP server's action whenreject_unknown_helo_hostnamefails due to a temporary error condition. ๐ฆunknown_address_tempfail_action(default:$reject_tempfail_action) โ the Postfix SMTP server's action whenreject_unknown_sender_domainorreject_unknown_recipient_domainfail due to a temporary error condition. ๐
๐ฆ MISCELLANEOUS CONTROLS ๐ฆ
Okay bestie this is the grab-bag section, the junk drawer but make it cute โ every random knob that didn't fit anywhere else. ๐
config_directory(seepostconf -doutput) โ where the Postfixmain.cfandmaster.cfconfig files live by default. Your home base, fr.daemon_timeout(18000s) โ how long a Postfix daemon process can sit there handling one request before a built-in watchdog timer just... ends it. 18000 seconds of patience, then it's over ๐command_directory(seepostconf -doutput) โ where all the postfix admin commands hang out.double_bounce_sender(double-bounce) โ the sender address on postmaster notifications that the mail system itself generates.ipc_timeout(3600s) โ the time limit for sending or receiving info over an internal communication channel.mail_name(Postfix) โ the mail system name that shows up inReceived:headers, in the SMTP greeting banner, and in bounced mail. It's giving branding. ๐mail_owner(postfix) โ the UNIX system account that owns the Postfix queue and most Postfix daemon processes.max_idle(100s) โ the max time an idle Postfix daemon process waits for an incoming connection before it dips voluntarily. โ๏ธmax_use(100) โ the max number of incoming connections a Postfix daemon process will serve before dipping voluntarily. (Yes, "maximal", we love a dramatic word.)myhostname(seepostconf -doutput) โ the internet hostname of this mail system.mynetworks(seepostconf -doutput) โ the list of "trusted" remote SMTP clients that get more privileges than the "strangers". VIP list only, no cap. ๐myorigin($myhostname) โ the domain name that locally-posted mail appears to come from, and that locally posted mail gets delivered to.process_id(read-only) โ the process ID of a Postfix command or daemon process. Look but don't touch, bestie.process_name(read-only) โ the process name of a Postfix command or daemon process.queue_directory(seepostconf -doutput) โ where the Postfix top-level queue directory lives.recipient_delimiter(empty) โ the set of characters that can separate an email address localpart, user name, or a.forwardfile name from its extension.smtpd_banner($myhostname ESMTP $mail_name) โ the text that follows the220status code in the SMTP greeting banner. First impression energy, literally.syslog_facility(mail) โ the syslog facility for Postfix logging.syslog_name(seepostconf -doutput) โ a prefix prepended to the process name in syslog records, so that, for example,"smtpd"becomes"prefix/smtpd". Cute little name tag. ๐ท๏ธ
โจ Available in Postfix version 2.2 and later: โจ
smtpd_forbidden_commands(CONNECT GET POST regexp:{{/^[^A-Z]/ Bogus}}) โ list of commands that make the Postfix SMTP server immediately terminate the session with a221code. Say the wrong thing and you're out the door, periodt. ๐ช
โจ Available in Postfix version 2.5 and later: โจ
smtpd_client_port_logging(no) โ turn on logging of the remote SMTP client port, on top of the hostname and IP address.
โจ Available in Postfix 3.3 and later: โจ
service_name(read-only) โ themaster.cfservice name of a Postfix daemon process.
โจ Available in Postfix 3.4 and later: โจ
smtpd_reject_footer_maps(empty) โ lookup tables, indexed by the complete Postfix SMTP server4xxor5xxresponse, with reject footer templates. Custom rejection drip, iykyk. ๐
๐ SEE ALSO ๐
The friends-of-the-page list, aka the lore you should go read next:
anvil(8), connection/rate limitingcleanup(8), message canonicalizationtlsmgr(8), TLS session and PRNG managementtrivial-rewrite(8), address resolververify(8), address verification servicepostconf(5), configuration parametersmaster(5), generic daemon optionsmaster(8), process managerpostlogd(8), Postfix loggingsyslogd(8), system logging
๐ README FILES ๐
Wanna find these? Use "postconf readme_directory" or "postconf html_directory" to locate this information. Slay, go get your reading list. ๐ซถ
ADDRESS_CLASS_README, blocking unknown hosted or relay recipientsADDRESS_REWRITING_README, Postfix address manipulationBDAT_README, Postfix CHUNKING supportFILTER_README, external after-queue content filterLOCAL_RECIPIENT_README, blocking unknown local recipientsMILTER_README, before-queue mail filter applicationsSMTPD_ACCESS_README, built-in access policiesSMTPD_POLICY_README, external policy serverSMTPD_PROXY_README, external before-queue content filterSASL_README, Postfix SASL howtoTLS_README, Postfix STARTTLS howtoVERP_README, Postfix XVERP extensionXCLIENT_README, Postfix XCLIENT extensionXFORWARD_README, Postfix XFORWARD extension
โญ LICENSE โญ
The Secure Mailer license must be distributed with this software. Not optional, bestie โ it ships with it or it doesn't ship. ๐
๐ AUTHOR(S) ๐
The literal icons who built this:
Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA
Wietse Venema Google, Inc. 111 8th Avenue New York, NY 10011, USA
SASL support originally by:
Till Franke SuSE Rhein/Main AG 65760 Eschborn, Germany
TLS support originally by:
Lutz Jaenicke BTU Cottbus Allgemeine Elektrotechnik Universitaetsplatz 3-4 D-03044 Cottbus, Germany
Revised TLS support by:
Victor Duchovni Morgan Stanley
And that's a wrap on SMTPD(8postfix), bestie โ the source is the Postfix SMTPD manpage, and its footer date/version stamp is baked right in down at the bottom. Go forth and slay your mail server config, ily ๐โจ๐๐ฆ๐ธ๐
๐ซถ
๐ฆ where this page comes from
- ubuntu noble: postfix 3.8.6-1build2
- ubuntu noble: postfix 3.8.6-1ubuntu0.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms