25 Handling sendmail Clients

This chapter describes how to configure Oracle Communications Messaging Server to work with sendmail clients. If users (or system utilities, for example, cron) send messages through sendmail clients, you can configure Messaging Server to work with those clients over protocol. Users can continue to use the UNIX sendmail client.

To create compatibility between sendmail clients and Messaging Server, you can create and modify a sendmail configuration file.

Each time a new sendmail patch is applied to your system, you must modify the submit.cf file. See "To Create the sendmail Configuration File on Oracle Solaris 9 Platforms" for more information.

On Oracle Solaris 9 platforms, sendmail is no longer a setuid program. Instead, it is a setgid program.

To Create the sendmail Configuration File on Oracle Solaris 8 Platforms

  1. Find the file main-v7sun.mc file in directory /usr/lib/mail/cf and create a copy of this file.

    In the example in this section, a copy called sunone-msg.mc is created.

  2. In the sunone-msg.mc file, add the following lines before the MAILER macros:

    FEATURE(`nullclient', `smtp:rhino.west.example.com')dnl
    MASQUERADE_AS(`west.example.com')dnl
    define(`confDOMAIN_NAME', `west.example.com')dnl
    

    rhino.west.example.com is the localhost name and west.example.com is the default email domain as described in creating the initial Messaging Server runtime configuration in Messaging Server Installation and Configuration Guide. In an HA environment, use the logical host name. See Messaging Server Installation and Configuration Guide for information about logical hostnames for high availability.

  3. Compile the sunone-msg.mc file:

    /usr/ccs/bin/make sunone-msg.cf
    

    The sunone-msg.mc will output sunone-msg.cf.

  4. Make a backup copy of the existing sendmail.cf file located in the /etc/mail directory.

    1. Copy and rename /usr/lib/mail/cf/sunone-msg.cf to sendmail.cf file.

    2. Move the new sendmail.cf file to the /etc/mail directory.

To Create the sendmail Configuration File on Oracle Solaris 9 Platforms

  1. Find the file submit.mc file in directory /usr/lib/mail/cf and create a copy of this file.

    In the example in this section, a copy called sunone-submit.mc is created.

  2. Change the following line in the file sunone-submit.mc:

    FEATURE(`msp')dn
    

    to

    FEATURE(`msp', `rhino.west.example.com')dnl
    

    rhino.west.example.com is the localhost name and west.example.com is the default email domain as described in creating the initial Messaging Server runtime configuration in Messaging Server Installation and Configuration Guide. In an HA environment, use the logical host name. See Messaging Server Installation and Configuration Guide for information about logical hostnames for high availability.

  3. Compile the sunone-submit.mc file:

    /usr/ccs/bin/make sunone-submit.cf
    

    The sunone-submit.mc will output sunone-submit.cf.

  4. Make a backup copy of the existing submit.cf file in the /etc/mail directory.

    1. Copy and rename /usr/lib/mail/cf/sunone-submit.cf file to submit.cf file.

    2. Move the new submit.cf file to the /etc/mail directory.