Professional Documents
Culture Documents
2 Prerequisites
5 Restart Service
6 Sources
Purpose
This article gives the steps to setup SendMail to use an SMTP relay also known as Smart Host to send out
email through. If you don't have your own SMTP relay then your ISP SMTP Relay can be used. Although,
keep in mind you may have to pass credentials to use your ISP or maybe even your enterprise SMTP relay.
This is useful when sending emails to external recipients to avoid anti-spoof and anti-spam filters to drop the
messages because they are not coming from a whitelist SMTP relay. Be default it would use it's local SMTP
mechanism which generally will be blocked by most SMTP systems.
Prerequisites
sendmail
sendmail-cf The files needed to reconfigure SendMail
2. vim /etc/mail/sendmail.mc
5. Replace smtp.your.provider
Example:
define(`SMART_HOST', `mail.grm.co.id')dnl
7. /etc/mail/make
2. cd /etc/mail
3. Create /etc/mail/authinfo
4. vim /etc/mail/authinfo
FEATURE(`authinfo')
13. /etc/mail/make
Restart Service
Restart the service with the appropriate command for your flavor and version of Linux.
KURNIAWAN SETYO NUGROHO 2
Configure SendMail to Use SMTP Relay (ORACLE)
Sources
https://www.dnsexit.com/support/mailrelay/sendmail.html