Configuring Postfix

Once installed, you may need to edit to set appropriate values for myorigin, mydestination, and mynetworks. These settings are described in the file. When this is complete, make sure you are able to start Postfix by running postfix start and are able to send and receive mail through the system

The following figure (adapted from the Postfix documentation) shows the required setup for filtering email using PureMessage:

To create the pictured message flow:

  1. Set Content Filter Port. In postfix/etc/, set content_filter to the port PureMessage will be listening on. The default is:
  2. Set Interfaces to Non-Postfix Software. In postfix/etc/, add the following:
    pmx       unix  -       -       n       -       10      smtp
    localhost:10026 inet n  -       n       -       10      smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o myhostname=localhost
    -o smtpd_helo_restrictions=
    -o smtpd_client_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=

    The smtp line defines an interface to use to send messages that have not yet been filtered.

    The smtpd section defines the port on which to receive messages that have already been filtered.

  3. Restart Postfix. Run the postfix stop and postfix start commands or the postfix reload command to make the new settings take effect.