riahc4
By:
riahc4

How do I install sendmail to send emails from a external SMTP server on CentOS 7?

June 5, 2017 2k views
Email CentOS

Id like to configure my server the ability to send thru SMTP (not recieve) emails thru my external SMTP server on CentOS for wordpress and general logging.

How can I do this?

1 Answer

Hi @riahc4

May I recommend that you don't use Sendmail, but use something like Postfix, which has a much better security track record? It's a drop-in-replacement for Sendmail.

I'm not sure if CentOS comes with the wizard, like Ubuntu does, but run the installation:

sudo yum install postfix

Then have a look at the Ubuntu tutorial, but ignore the two first sudo apt ... commands and skip Step 3:
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-16-04

Postfix is a *mail transfer agent* (MTA), an application used to send and receive email. In this tutorial, we will install and configure Postfix so that it can be used to send emails by local applications only — that is, those installed on the same server that Postfix is installed on.
Have another answer? Share your knowledge.