Previous Topic: Wgnmilter.conf ParametersNext Topic: Set Up SecureMail Integration


Turn On Sendmail and Postfix Integration

Important! You must enable CA DataMinder email server agents in order to start email processing. By default, the agents are disabled when first deployed.

The Milter MTA agent uses a single configuration parameter in wgnmilter.conf to turn on email integration with Sendmail or Postfix. After editing wgnmilter.conf, you must update the Milter MTA agent with the new configuration.

To turn on email integration
  1. Edit wgnmilter.conf.

    This configuration file is in the installation folder for the Milter MTA agent.

  2. Change the enable-integration line to:
    enable-integration=1
    
  3. Run one of the following commands:
    RunWgnMilter -u
    RunWgnMilter --updateconfig
    
  4. Start the Milter MTA agent.
    1. Find the wgnmilter script installed with the Milter MTA agent in the /init.d folder.
    2. Run the wgnmilter script, specifying 'start'.

      For example, on Red Hat machines the start command takes this format:

      /etc/init.d/wgnmilter start
      

    Email processing is enabled.

    Note: You can optionally configure Sendmail (or Postfix) to only send emails when the Milter MTA agent is running.

To turn off email integration
  1. Edit wgnmilter.conf.
  2. Change the enable-integration parameter to:
    enable-integration=0 
    
  3. Run one of the following commands:
    RunWgnMilter -u
    RunWgnMilter --updateconfig
    

    Email processing is disabled. The Milter MTA agent allows all emails to transit through Sendmila or Postfix without intervention.

  4. (Optional) Stop the Milter MTA agent. If you stop the Milter MTA agent completely, the agent stops processing emails.
    1. Find the wgnmilter script (see above).
    2. Run the wgnmilter script, specifying 'stop'.

      For example, on Red Hat machines the stop command takes this format:

      /etc/init.d/wgnmilter stop 
      

To configure Sendmail to only send emails when the Milter MTA agent is running

  1. Open the Sendmail configuration file sendmail.mc.

    Find this file in the Sendmail configuration directory. This directory is normally /etc/mail.

  2. Add one of the following options to the line that specifies the socket connection.
    F=R

    Specifies that Sendmail rejects emails arriving from an Exchange or Domino server.

    F=T

    Specifies that Sendmail temporarily fails emails arriving from an Exchange or Domino server.

    Position the F option inbetween the S and T options. For example:

    INPUT_MAIL_FILTER(`WgnMilter', `S=inet:9999@ux-mailsvr-w2k3.unipraxis.com,
    F=R, T=S:4m;R:10m;E:10m')dnl