How to make a droplet send email?


I have installed CSF as the firewall for my droplet by following this tutorial:

Now, in the sub-heading called Process Tracking, it says that CSF can be configured to send emails to the system admin about the various firewall processes. My questions are:

  1. Where do I add the system admin email id?
  2. I have CentOS with MySQL, PHP, Apache running. Will this automatically ensure system emails being sent out or do I need to add some email system?

Thanks in advance.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@ Kamal Nasser, I would like to thank you once again for taking the time to answer my follow-up questions.

I really do appreciate your assistance.

Thanks, again. I will go with Postfix. As for Dovecot, I am planning to test a ticketing system on the droplet. Now, the actual mailboxes used for the tickets are hosted elsewhere, but an application on the droplet will pull in email from those mailboxes through IMAP and present them in the application’s web interface. I guess this means Dovecot would be required?

As for loopback_only, I found the following enabled in the Postfix config file: inet_interfaces = localhost

Is this the same as loopback_only?

@Kamal Nasser, thank you for your clear instructions, down to the specific commands to use. Believe it or not, this issue was a deal breaker for me when I got a Linode VPS. So, this is a win for DO, thank you, once again.

As for sendmail and postfix, I assume the following:

  • That you are suggesting removal of sendmail as it’s complex for a newbie
  • Restricting to loopback_only is for preventing open mail relays

Also, after installing Postfix, do I need to install Dovecot?