Outdated Version

You are viewing an older version of this section. View current production version.

Configure the SMTP Server min read


Info

You may skip this step if you already have an SMTP server. You must ensure that your SMTP server is configured to send outbound messages to your desired recipients.

We use the SMTP server Postfix for the purpose of this guide, but you can configure this with any SMTP server.

Red Hat Distribution

  1. Install Postfix.

    sudo yum install postfix
    
  2. Start Postfix.

    systemctl start postfix
    
  3. Enable the Postfix service to ensure that it will restart when the host is rebooted.

    systemctl enable postfix
    
  4. After installation, run the postconf command to see the Postfix configuration. Confirm that the record 127.0.0.1 example.com entry exists in/has been added to the /etc/hosts file.

Debian Distribution

  1. Install Postfix.

    sudo apt-get install postfix
    
  2. During installation, you’ll be prompted to select an SMTP server type. Choose the “Internet Site” option.

  3. For testing purposes and/or a local-only configuration, use the suggested name (example.com) when prompted for a fully qualified domain name (FQDN) and click Ok.

  4. After installation, run the postconf command to see the Postfix configuration. Confirm that the domain you specified in Step 3 above (e.g., record 127.0.0.1 example.com) exists in/has been added to the /etc/hosts file.