Solaris: To set up solaris mail relay sendmail

Set up solaris mail relay: sendmail 8.12.10+

    1. # cd /usr/lib/mail/cf
    2. # cp subsidiary.mc myhost.mc
    3. # vi myhost.mc
      1. change DOMAIN(`solaris-generic’)dnl à
        DOMAIN(`solaris-antispam’)dnl
      2. remove any reference to DAEMON_OPTIONS
      3. add FEATURE(`access_db’)dnl before the MAILER lines.
    4. # /usr/ccs/bin/make myhost.cf
    5. # /etc/init.d/sendmail stop

 

  1. # cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.save
  2. # cp myhost.cf /etc/mail/sendmail.cf
  3. # cd /etc/mail
  4. # vi access
    1. add IP address of server you need to relay and the keyword RELAY


i.
3.177.70.71 RELAY

  1. # makemap hash /etc/mail/access < /etc/mail/access
    1. creates an access.db file
  2. # /etc/init.d/sendmail start

Set up a mail client:

Solaris sendmail 8.12.10+

  1. # cd /usr/lib/mail/cf
  2. # cp subsidiary.mc myhost.mc
  3. # vi myhost.mc
      1. change DOMAIN(`solaris-generic’)dnl à
        DOMAIN(`solaris-antispam’)dnl

 

    1. remove any reference to DAEMON_OPTIONS
  1. # /usr/ccs/bin/make myhost.cf
  2. # /etc/init.d/sendmail stop
  3. # cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.save
  4. # cp myhost.cf /etc/mail/sendmail.cf
  5. # cd /etc/mail
  6. # rm access access.db
  7. # /etc/init.d/sendmail start

Linux sendmail 8.12.11

  1. ensure you have installed
    sendmail-cf-8.12.11-4.RHEL3.1.i386.rpm
    1. # rpm –i sendmail-cf-8.12.11-4.RHEL3.1.i386.rpm
  2. # cp /etc/mail/sendmail.mc /etc/mail/sendmail.mc.bak
  3. # vi /etc/mail/sendmail.mc
  4. be sure the following lines are configured
    1. define(`SMART_HOST’,`mailhost.erc.ge.com’)dnl
    2. define(`LOCAL_RELAY’,
      `mailhost’)dnl
    3. LOCAL_DOMAIN(`erc.ge.com’)dnl
    4. MASQUERADE_AS(`ercgroup.com’)dnl
    5. FEATURE(masquerade_envelope)dnl
  5. Be sure mailhost is defined in /etc/hosts or is resolvable
  6. # service sendmail stop
  7. # service sendmail start

Solaris 2.6 sendmail 8.6

  1. be sure mailhost is defined in /etc/hosts or is resolvable
  2. copy /etc/mail/subsidiary.cf /etc/mail/sendmail.cf
  3. stop sendmail
  4. start sendmail

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top