Question

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

Posted June 5, 2017 17k views
CentOSEmail

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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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

by finid
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.
Submit an Answer