Help configuring domain email accounts on Ubuntu 14.04
I'm having the hardest time figuring this out. I'm trying to set up my Ubuntu server to accept emails under my registered domain name, we'll call it DOMAIN.com.
I've tried multiple tutorials on setting up Postfix, including one here, but honestly I'm just not sure what I need anymore. I plan on hosting multiple domains on my single droplet, so please help guide me. So far, I've been able to use mail() in PHP to send emails, but whenever I receive them from my personal gmail account I'm getting a 554 5.7.1 error including some others.
What I need:
- Ability to receive emails with multiple email addresses (name@DOMAIN.com, name2@DOMAIN.com, other@OTHERDOMAIN.com)
- Send emails using an email client (Mail.app)
- Send triggered emails to mass users with a service (Sendgrid)
Unfortunately, I think my Postfix / Mail files on the server are out of control from my trial and error, so nothing seems to be working anymore. Is this something I can fix by just doing a Postfix uninstall? Should I uninstall anything else? Delete folders to get a fresh start?