Problem with emails

Hi guys, it’s me again.

I have configured a new web domain in Hestia CP.

With the help of the user @Eris, It’s almost ready.

Unfortunately, I got to resolve a new problem.

I want to use the webmail from this domain.

Already have configured some DNS and SSL for this email.

The problem is that when I try to send an email, it returns me a error message like this:

Mail delivery failed: returning message to sender.

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

[[email protected] il c m ](mailto:igo rwe [email protected] ail.com)
host gmail-smtp-in.l.google . com [173.194.175.27]
SMTP error from remote mail server after pipelined end of data:
550-5.7.26 This message does not have authentication information or fails to
550-5.7.26 pass authentication checks. To best protect our users from spam, the
550-5.7.26 message has been blocked. Please visit
550-5.7.26 ht tps ://sup ort. google . com/ mail/answer/ 81126#authe ntica tion for more
550 5.7.26 information. l9si3666916qkg.75 - gsmtp

Reporting-MTA: dns; iggi . com . br

Action: failed
Final-Recipient: rfc822;[ig orw e l [email protected] ail. com]( mailto: igor wel dt @ gm ail. c om)
Status: 5.0.0
Remote-MTA: dns; gm ail - s m tp-i n.l .go o gle .com
Diagnostic-Code: smtp; 550-5.7.26 This message does not have authentication information or fails to
550-5.7.26 pass authentication checks. To best protect our users from spam, the
550-5.7.26 message has been blocked. Please visit
550-5.7.26 … for more
550 5.7.26 information. l9si3666916qkg.75 - gsmtp

Here are the images from the configurations.

Someone can help me please?

Thank you so much!!!

Hope you have a nice day!

Your DNS settings are inconsistent.

Follow this guide DNS & DKIM Questions : Pre-Install Prep - #2 by jlguerrero

Did you set up DKIM and SPF records in DNS?

Hi there.

So I noticed that when I check the option to use DKIM, I have that error email when try to send a new one. When this option is disable, my email go directly to spam box of gmail.

I’ve been searched on internet, I founded a little bit more about this.

Looks like I really need this DKIM and SPF records configured.

With the command "dpkg -l " using root user, I noticed that my server uses Exim4 email server (but I don’t know if it is the default and if its the only one of my server).

Then I tried to find some tutorial about how install and configure DKIM / SPF in my server, using de Exim4, but I couldn’t find a tutorial for my intellectual level.

Which email server do you recommend me?

Exim or Postfix?

I’m very new in this world of Linux servers, so I need something more easy to “digest” intellectually.

Thank you very much!

At least SPF.

Hestia uses exim. If you want Postfix then maybe hestia is not for you.

Don’t touch DKIM use hestia defaults.
As for SPF, try: +a +mx -all

Make sure you update your DNS record if you host DNS with a different provider / server

Hey.

I already have a SPF record in Hestia, created automatically:

@ - TXT - 14400 - “v=spf1 a mx ip4:143.110.213.142 -all”

This record is correct?

I tried change to “v=spf1 +a +mx ip4:143.110.213.142 -all” (as @eris has sugested) but I have the same problem.

I have to create this mail record in my DigitalOcean panel or only in Hestia?

Sorry, but I’m getting a little crazy.

If you use Digital ocean as DNS server you also need to create it there…

As you can see here:
http://www.open-spf.org/SPF_Record_Syntax/

The “+” symbol is used by default.

So both spf expressions are correct and equivalent.

The other thing that I suspect is that you are not configuring the correct DNS server.

In the domain registry you set the DNS server for that domain and then you configure that server.

If at the domain registrar webpage you have not set your HESTIA machine as the DNS server… then, the world won’t see the changes.

Otherwise anyone could set a DNS server for gmail.com and mess with people’s emails.

Please follow the guide I provided step by step and you will have everything working.