Configuring authentication for outbound e-mail

With our current mail server setup, we can retrieve e-mail remotely and we can send mail from the local box, but we cannot send mail from remote systems. In order to enable this functionality, we need to configure Postfix to require auth for sending outbound mail from remote users. Typically, this requires setting up a SASL server of some variety like Cyrus saslauthd. In our case, we're going to use Dovecot's built in SASL server.

How to do it…

  1. Configure Dovecot to expose its SASL interface to Postfix by editing /etc/dovecot/conf.d/10-master.conf:
    service auth {
    …
      unix_listener /var/spool/postfix/private/auth {
        group = postfix
        mode = 0660
        user = postfix
      }
    …
    }
  2. Configure Postfix to authenticate via SASL ...

Get Linux Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.