You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to Send Email With Mailx Using STARTTLS

edited Jul 29, 2022 3:28PM in Linux

Applies to

Oracle Cloud Infrastructure - Version N/A and later

Linux OS - Version Oracle Linux 7.0 and later

Linux x86-64


Goal

How to send email to a remote mail server, using SSL STARTTLS to encrypt the connection, from the command line using mailx?

Solution

The solution proposed in this document will use a remote mail server protected by SSL using mailx.

Since by default Oracle Linux mail system does not include public certificate authorities (CA), this procedure will include the process to obtain the certificates from the mail server.

1. Obtaining the certificates

  • Create new certificate and key databases.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!