There are several SASL mechanism properties worth evaluating to improve the security of your deployment. The smtpd_sasl_path config parameter is a path relative to the Postfix queue directory. Permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination' Sudo postconf -e 'smtpd_recipient_restrictions = \ Sudo postconf -e 'smtpd_sasl_auth_enable = yes' Sudo postconf -e 'broken_sasl_auth_clients = yes' Sudo postconf -e 'smtpd_sasl_tls_security_options = noanonymous' Sudo postconf -e 'smtpd_sasl_security_options = noanonymous,noplaintext' Sudo postconf -e 'smtpd_sasl_local_domain =' Sudo postconf -e 'smtpd_sasl_path = private/auth' To configure Postfix for SMTP-AUTH using SASL (Dovecot SASL), run these commands at a terminal prompt: sudo postconf -e 'smtpd_sasl_type = dovecot' Once authenticated the SMTP server will allow the client to relay mail. SMTP-AUTH allows a client to identify itself through the SASL authentication mechanism, using Transport Layer Security (TLS) to encrypt the authentication process. This will place new mail in /home/ username/Maildir so you will need to configure your Mail Delivery Agent (MDA) to use the same path. To configure the mailbox format for Maildir: sudo postconf -e 'home_mailbox = Maildir/' Later if you wish to re-configure a particular parameter, you can either run the command or change it manually in the file. In either case, the configuration parameters will be stored in /etc/postfix/main.cf file. To set the mailbox format, you can either edit the configuration file directly, or use the postconf command. On each screen, select the following values: To configure postfix, run the following command: sudo dpkg-reconfigure postfix Type of mailbox format ( mbox is default, we’ll use the alternative, Maildir).The network and class range of your mail server (we’ll use 192.168.0.0/24).The for which you’ll accept email (we’ll use in our example).There are four things you should decide before starting configuration: The package still exists for compatibility reasons, but won’t setup a working email system. Some of the configuration options will be investigated in greater detail in the next stage.ĭeprecation warning: please note that the mail-stack-delivery metapackage has been deprecated in Focal.
To install Postfix run the following command: sudo apt install postfixįor now, it is ok to simply accept defaults by pressing return for each question. This guide does not cover setting up Postfix Virtual Domains, for information on Virtual Domains and other advanced configurations see References.
This section will explain installation, including how to configure SMTP for secure communications. It attempts to be fast and secure, with flexibility in administration. Postfix is the default Mail Transfer Agent (MTA) in Ubuntu. Multi-node Configuration with Docker-Compose.