Question

How do i use mail server in digital ocean?

  • Posted September 7, 2014

I have set up DNS and domain is working fine but I am not able to create mail server.

Subscribe
Share

I have installed WHM and created cpanel for each domain. I created emails using cpanel. I could send emails to any from those emails but can not receive emails from other mailing addresses like gmail or hotmail.

Delivery to the following recipient failed permanently:

     usman@mydomain.com

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain mydomain.com by aspmx.l.google.com. [2a00:1450:4010:c07::1a].

The error that the other server returned was:
550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1 http://support.google.com/mail/bin/answer.py?answer=6596 pk5si17857602lbb.60 - gsmtp

Here, mydomain.com is just a example. PS. There is my domain and its working perfectly.

What will be perfect solution?

Hello usmana, To set up emailing you need an email server software installed on your droplet. Here are two guides you can follow to setup emailing on your droplet. So depending on your anticipated usage, you can go through these links to learn more about emailing and how to properly setup emailing to fit your needs. For more on learning to do things with droplets use the search box or click on the tutorials link at the top to see more tutorials on assorted topics.

  1. https://www.digitalocean.com/community/tutorials/how-to-install-postfix-on-centos-6

  2. https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassasin

Hope you find these useful. Cheers.


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

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.

Hello, If you are new to all this cloud VPS thing and don’t want to get your hands dirty and you are here just to setup a mail server for your company I suggest you to use iRedMail, here is a link to a tutorial for CentOS.