Page 1 of 1

I can send e-mails, but I can't receive them.

Posted: Wed Dec 13, 2017 2:42 am
by Chempo
I'm using CentOS 7.4 droplet on DigitalOcean
fresh build droplet, I installed VestaCP

I configured Lets enycrpyt SSL via Vesta. I've found DKIM in one of the server files (I googled the loaction) and also configured SPF. On https://www.mail-tester.com/ I got 10/10.

Why I can't receive any emails? everytime I want to send I get email back from [email protected] that says that address doesnt exist.

I don't know what to do.

Re: I can send e-mails, but I can't receive them.

Posted: Wed Dec 13, 2017 6:32 pm
by vanderheyde
all tests you did are for outbound mails: DKIM, SPF, and the mailtester.

What are you MX records set to?
Does the email account actually exist (typo's)?

Re: I can send e-mails, but I can't receive them.

Posted: Wed Dec 13, 2017 11:10 pm
by Chempo
vanderheyde wrote:all tests you did are for outbound mails: DKIM, SPF, and the mailtester.

What are you MX records set to?
Does the email account actually exist (typo's)?
I have added google MX records

and also one that is mail.example.com

my hostname on server is "mail.example.com"

Re: I can send e-mails, but I can't receive them.

Posted: Wed Dec 13, 2017 11:12 pm
by vanderheyde
Can you give me the exact DNS entries please? Including the priorities (you can alter your domain name, of course).

Re: I can send e-mails, but I can't receive them.

Posted: Wed Dec 13, 2017 11:31 pm
by Chempo
vanderheyde wrote:Can you give me the exact DNS entries please? Including the priorities (you can alter your domain name, of course).
MX example.com mail handled by mail.example.com. 10 14400
MX example.com mail handled by aspmx.l.google.com. 1 1800
MX example.com mail handled by alt1.aspmx.l.google.com. 5 1800
MX example.com mail handled by alt2.aspmx.l.google.com. 5 1800
MX example.com mail handled by alt3.aspmx.l.google.com. 10 1800
MX example.com mail handled by alt4.aspmx.l.google.com. 10 1800

Re: I can send e-mails, but I can't receive them.

Posted: Wed Dec 13, 2017 11:50 pm
by vanderheyde
This directs all emails to google instead of your vesta server. I'm assuming google does not know the domain you're working with and doesn't have the email accounts. Hence the error stating the user does not exist.

Try setting mail.example.com to the highest priority (lowest number). It'll take a few hours for the DNS entries to propagate accordingly :

MX example.com mail handled by mail.example.com. 1 14400
MX example.com mail handled by aspmx.l.google.com. 2 1800
MX example.com mail handled by alt1.aspmx.l.google.com. 5 1800
MX example.com mail handled by alt2.aspmx.l.google.com. 5 1800
MX example.com mail handled by alt3.aspmx.l.google.com. 10 1800
MX example.com mail handled by alt4.aspmx.l.google.com. 10 1800

Re: I can send e-mails, but I can't receive them.

Posted: Thu Dec 14, 2017 12:51 am
by Chempo
vanderheyde wrote:This directs all emails to google instead of your vesta server. I'm assuming google does not know the domain you're working with and doesn't have the email accounts. Hence the error stating the user does not exist.

Try setting mail.example.com to the highest priority (lowest number). It'll take a few hours for the DNS entries to propagate accordingly :

MX example.com mail handled by mail.example.com. 1 14400
MX example.com mail handled by aspmx.l.google.com. 2 1800
MX example.com mail handled by alt1.aspmx.l.google.com. 5 1800
MX example.com mail handled by alt2.aspmx.l.google.com. 5 1800
MX example.com mail handled by alt3.aspmx.l.google.com. 10 1800
MX example.com mail handled by alt4.aspmx.l.google.com. 10 1800

Ok I will do that and take a look in the morning to see if the problem is solved. Thank you for your help!

Re: I can send e-mails, but I can't receive them.

Posted: Thu Dec 14, 2017 2:42 am
by Chempo
vanderheyde wrote:This directs all emails to google instead of your vesta server. I'm assuming google does not know the domain you're working with and doesn't have the email accounts. Hence the error stating the user does not exist.

Try setting mail.example.com to the highest priority (lowest number). It'll take a few hours for the DNS entries to propagate accordingly :

MX example.com mail handled by mail.example.com. 1 14400
MX example.com mail handled by aspmx.l.google.com. 2 1800
MX example.com mail handled by alt1.aspmx.l.google.com. 5 1800
MX example.com mail handled by alt2.aspmx.l.google.com. 5 1800
MX example.com mail handled by alt3.aspmx.l.google.com. 10 1800
MX example.com mail handled by alt4.aspmx.l.google.com. 10 1800
I LOVE YOU! Holy cow you saved me a lot of hair from being pulled out. Thank you thank you thank you