Use Sendmail to send emails through the Email Delivery service.
Configure Sendmail to Send Email Through Email Delivery
Sendmail is a general purpose internetwork email routing facility that supports many kinds of mail-transfer and delivery methods, including the Simple Mail Transfer Protocol used for email transport over the Internet. You can use Sendmail to send emails through Email Delivery. Before you use Sendmail you must configure Oracle Cloud Infrastructure Email Delivery in your Sendmail application.
Important
These instructions contain sample code for your convenience and should be used as a reference. For client support, you must contact Sendmail customer support.
Note
The steps below are for configuring Sendmail to send email through Oracle Cloud Infrastructure Email Delivery. These steps were tested on an Oracle Linux Server release 7.9 compute instance and Sendmail-8.14.7-6.el7.x86_64.
To enable Sendmail to integrate with Email Delivery:
Make sure Email Delivery is configured to send email. See Getting Started.
Note
SMTP credentials are required to configure Sendmail to use Email Delivery. Be sure to note the user name and password when you generate the SMTP credentials.
sudo sh -c 'm4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf'
Note
If you receive an error, such as "Command not found" or "No such file or directory," confirm that the m4 and sendmail packages are installed on your system.
Enter the details of the email. After each line press Enter.
For example:
From: <from_email_address>
To: <recipient_email_address>
Subject: OCI Email Delivery test email
This is a test message sent from OCI Email Delivery using Sendmail.
Press Ctrl + D to send the email.
Verify receipt of the test email.
Note
You can troubleshoot an issue by reviewing the Sendmail log on your mail server, located at /var/log/mail.log.