Mail delivery failed

Hi
I cannot send email

I have registered the domain on Cloudflare and I have set the DNS exactly according to the Hestia panel DNS on Cloudflare.

I get this error

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:

@domain.com
host domain.com [
...***]
SMTP error from remote mail server after pipelined MAIL FROM:***@mydomain SIZE=1748:
550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
Reporting-MTA: dns; localhost.localdomain

Action: failed
Final-Recipient: rfc822;***@domain.com
Status: 5.0.0
Remote-MTA: dns; domain.com
Diagnostic-Code: smtp; 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)

What should I do?

Are you sure you have set the option on the client it has to authenticate with the same credentials as the incoming mail from the account?

1 Like

Hello
Thanks for your attention

I setup internal mail through this command

bash /usr/local/hestia/install/upgrade/manual/configure-server-smtp.sh

Summary:
Use SMTP: true
SMTP Host: mail.----.net
SMTP Port: 465
SMTP Security: tls
SMTP Username: [email protected]
SMTP Password: ----
Email Address: [email protected]

The email will be sent to Gmail and Yahoo!
But it is not sent to the webmail address and this error is displayed

smtp; 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)

If i’m correct you want to send from your own mailserver and account in name of a gmail.com email adres?

If thats the case it will be hard to get this work. Because you have to use the Google servers to send from a gmail.com account.

1 Like

I followed this tutorial
But I have a problem to send email to webmails and the email is not sent
This error is displayed

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:

*** @ domain.com
host domain.com [...]
SMTP error from remote mail server after pipelined MAIL FROM:< ***@mydomain > SIZE=1748:
550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
Reporting-MTA: dns; localhost.localdomain

Action: failed
Final-Recipient: rfc822;*** @ domain.com
Status: 5.0.0
Remote-MTA: dns; domain.com
Diagnostic-Code: smtp; 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)

Show the output of this command:

hostname -f

If the result is localhost.localdomain, you should change it to a FQDN domain like server.yourdomain.tld. To change it use this command:

v-change-sys-hostname server.yourdomain.tld

Also, server.yourdomain.tld should have an A record pointing to your server’s ip and you should change the PTR record for your ip so your public ip will point to server.yourdomain.tld (this PTR record must be changed from your hosting provider control panel).

1 Like

Thanks for your attention and guidance
I did exactly as instructed
But I’m still having trouble sending emails to webmail addresses
Please see the attached photos

What’s your actual domain? Send me a private message if don’t want to share it here.

1 Like

My problem was solved with the help and guidance of sahsanu
I sincerely thank him

1 Like

Just for the records.

@laklak changed the hostname (aaa-bbb-ccc-ddd) to a real one and also changed the ptr for the public ip, after that exim still was using the wrong hostname and was because there was an entry in /etc/hosts using the public ip and the wrong hostname, once it was replaced with the right hostname and exim restarted, all started to work as expected.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.