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
  6. # cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.save
  7. # cp myhost.cf /etc/mail/sendmail.cf
  8. # cd /etc/mail
  9. # 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
    2. 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

Incoming search terms:

  • how to set up mail realy server in solaris
  • solaris sendmail relay
  • solaris sendmail access file
  • solaris mail relay setup
  • solaris 10 mail relay
  • setup solaris mail
  • sendmail client configuration solaris 9
  • openindiana sendmail relay
  • how to stop mail in solaris
  • how to set up solarus mail
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

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

*


× 8 = forty

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>