Set up solaris mail relay: sendmail 8.12.10+
- # cd /usr/lib/mail/cf
- # cp subsidiary.mc myhost.mc
- # vi myhost.mc
- change DOMAIN(`solaris-generic’)dnl à
DOMAIN(`solaris-antispam’)dnl - remove any reference to DAEMON_OPTIONS
- add FEATURE(`access_db’)dnl before the MAILER lines.
- # /usr/ccs/bin/make myhost.cf
- # /etc/init.d/sendmail stop
- # cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.save
- # cp myhost.cf /etc/mail/sendmail.cf
- # cd /etc/mail
- # vi access
- add IP address of server you need to relay and the keyword RELAY
i.3.177.70.71 RELAY
- # makemap hash /etc/mail/access < /etc/mail/access
- creates an access.db file
- # /etc/init.d/sendmail start
Set up a mail client:
Solaris sendmail 8.12.10+
- # cd /usr/lib/mail/cf
- # cp subsidiary.mc myhost.mc
- # vi myhost.mc
- change DOMAIN(`solaris-generic’)dnl à
DOMAIN(`solaris-antispam’)dnl
- remove any reference to DAEMON_OPTIONS
- # /usr/ccs/bin/make myhost.cf
- # /etc/init.d/sendmail stop
- # cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.save
- # cp myhost.cf /etc/mail/sendmail.cf
- # cd /etc/mail
- # rm access access.db
- # /etc/init.d/sendmail start
Linux sendmail 8.12.11
- ensure you have installed
sendmail-cf-8.12.11-4.RHEL3.1.i386.rpm - # rpm –i sendmail-cf-8.12.11-4.RHEL3.1.i386.rpm
- # cp /etc/mail/sendmail.mc /etc/mail/sendmail.mc.bak
- # vi /etc/mail/sendmail.mc
- be sure the following lines are configured
- define(`SMART_HOST’,`mailhost.erc.ge.com’)dnl
- define(`LOCAL_RELAY’,
`mailhost’)dnl - LOCAL_DOMAIN(`erc.ge.com’)dnl
- MASQUERADE_AS(`ercgroup.com’)dnl
- FEATURE(masquerade_envelope)dnl
- Be sure mailhost is defined in /etc/hosts or is resolvable
- # service sendmail stop
- # service sendmail start
Solaris 2.6 sendmail 8.6
- be sure mailhost is defined in /etc/hosts or is resolvable
- copy /etc/mail/subsidiary.cf /etc/mail/sendmail.cf
- stop sendmail
- start sendmail