Once installed, you may need to edit main.cf to set appropriate values
These settings are described in the main.cf 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:
Set Content Filter Port. In postfix/etc/main.cf, set
content_filterto the port PureMessage will be listening on. The default is:
Set Interfaces to Non-Postfix Software. In
postfix/etc/master.cf, 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=127.0.0.0/8
smtpline defines an interface to use to send messages that have not yet been filtered.
smtpdsection defines the port on which to receive messages that have already been filtered.
- Restart Postfix. Run the postfix stop and postfix start commands or the postfix reload command to make the new settings take effect.