ssdvps
By:
ssdvps

How can I receive mail on a droplet?

July 25, 2014 1.3k views

I am running a CentOS 6.5 x32 droplet in AMS2 and would like to be able to receive mail on the commandline. Sending mail from a SSH session is OK! It arrives properly at the recipient as being from the intended user.

Replying to that mail results in:

This is the mail system at host mta-rs-dfw01.mxhero.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

USER@MYDOMAIN: connect to
MYDOMAIN[DROPLET IP]:25: Connection refused

This VPS is not meant to be a mailserver and will not support a lot of (mail)users.
Incomaing mails are to be to trigger certain scripts...

Probably missed a step... or two!

Any assistance will be immensly appreciated!

2 Answers

I use the free plan from zoho mail. You just need to set up your users and put the mx records on your server. Easy to configure. :)

Take a look at How To Install and Setup Postfix on Ubuntu 14.04. While it is written for Ubuntu, it should still work fine on CentOS 6.5.

Make sure you run

sudo yum install postfix

instead of

sudo apt-get update
sudo apt-get install postfix
by Justin Ellingwood
Postfix is one of the most popular open source mail delivery agents (MTA) in the world. In this guide, we will demonstrate how to install and configure a simple Postfix setup on an Ubuntu 14.04 server.
Have another answer? Share your knowledge.