PureMessage for UNIX: switching from sendmail to Postfix

  • Article ID: 35791
  • Updated: 12 Mar 2014


Sophos recommends using the bundled version of Postfix with PureMessage. In older versions of PureMessage, sendmail was the default mail transfer agent (MTA).

What to do

  1. Remove sendmail
  2. Install and configure Postfix
  3. Manually configure Postfix and restart PureMessage

Remove sendmail

  1. Back up your sendmail directory:

    cp -rf /opt/pmx/sendmail /opt/pmx/sendmail.old

  2. As the root user, run pmx-setup:

    /opt/pmx/bin/pmx-setup

    The curses-based PureMessage installer menu is displayed.

  3. Use the arrow keys to highlight Uninstall PureMessage Components, and then press Enter.

    The uninstall PureMessage components sub-menu is displayed.

  4. Use the arrow keys to highlight PureMessage Sendmail, press the space bar to select it, press the Tab key to select Uninstall these components, and then press Enter.

  5. When prompted to stop PureMessage, use Tab to select Yes, and press Enter.

    PureMessage is stopped and you are prompted to confirm the uninstall of sendmail.

  6. Use Tab to select Yes, and press Enter.

    PureMessage sendmail is uninstalled and the main installer menu is displayed.

Install and configure Postfix

  1. On the PureMessage installer main menu, use the arrow keys to select Install Additional Components, and then press Enter.

    The install additional PureMessage components sub-menu is displayed.

  2. Use the arrow keys to select Mail Transfer Agent, press the space bar to select it, press Tab to select Install these roles, and then press Enter.

    A sub-menu is displayed from which you can select the MTA that you want to install.

  3. Use the arrow keys to select Postfix, press the space bar to select it, press Tab to select Next question, and then press Enter.

  4. You are prompted with a series of questions about Postfix. Enter the appropriate values.

    You are then presented with a summary of your selections. Press Tab to select Change these install options, and then press Enter to repeat this step.

  5. Once you have the configuration options set as you want them, press Tab, if necessary, to select Proceed with the installation, and then press Enter to finish installing Postfix.

Manually configure postfix and restart PureMessage

  1. Exit the installer and edit the file /opt/pmx/postfix/etc/transport.

    This table file is similar to the mailertable within sendmail. Add the domains for which you want Postfix to relay messages. For example:
    .mydomain smtp:192.168.10.10
    .mydomain2 smtp:192.168.10.10
  2. Save the transport file, and edit the file /opt/pmx/postfix/etc/main.cf by adding the following lines (if they are not already there):

    mydestination = $myhostname, localhost.$mydomain, localhost
    mydomain = <your domain>
    myhostname = <this servers fully qualified name and resolvable name>
    myorigin = $myhostname
    relay_domains = <domain1>,<domain2>,<domain3>

    The domains within the relay_domains section should be the domains listed within the transport table in Step 1. These domains are the domains for which you want Postfix to relay messages.

  3. Save the main.cf file, and run the make command within the /opt/pmx/postfix/etc/ directory.

  4. Restart PureMessage as the pmx user by entering the command pmx start.

  5. Re-configure MTA-level IP blocking for Postfix if you were using this recommended feature for sendmail.

 
If you need more information or guidance, then please contact technical support.

Rate this article

Very poor Excellent

Comments