Undelivered Mail Returned to Sender Roundcube Plesk - email

I have a VPS with Ples. I did the domain configuration and etc. I go to webmail.mydomain.com and login, when I send email to email#hotmail.com the recipient receives it. When I send it to email#gmail.com it returns an error.
The error is as follows:
This is the mail system at host xxxxxxxxxxxxxxxxxxxxxxx.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<xxxxxxxxx#gmail.com>: host gmail-smtp-in.l.google.com[142.250.138.26]
said: 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
https://support.google.com/mail/answer/81126#authentication for more 550
5.7.26 information. a6si7013466oic.272 - gsmtp (in reply to end of DATA
command)
Reporting-MTA: dns; xxxxxxxxxxxxxxx
X-Postfix-Queue-ID: 4F52C100FA1
X-Postfix-Sender: rfc822; xxxxx#mydomain.com
Arrival-Date: Sat, 20 Mar 2021 21:44:24 +0000 (UTC)
Final-Recipient: rfc822; xxxxxxxxx#gmail.com
Original-Recipient: rfc822;xxxxxxxxx#gmail.com
Action: failed
Status: 5.7.26
Remote-MTA: dns; gmail-smtp-in.l.google.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
https://support.google.com/mail/answer/81126#authentication for more 550
5.7.26 information. a6si7013466oic.272 - gsmtp

Essentially, the error message contains a link to the possible causes.
https://support.google.com/mail/answer/81126#authentication
Why is this happening?
Because Gmail doesn't just accept emails from any domain without autheticating them.
Research keywords SPF, DMARC & DKIM. They will lead you in the right path.

Related

Mail delivery failed: returning message to sender (No such User here)

I have migrated my website and the email records to a new server (other provider). Everything was ok except that now when I want to send a message from my email (my email direction is the same), one of my clients can not receive my messages. I chatted with my client and his mails are ok, he is receiving mails without problems, as he said.
I reported the problem to my Hosting provider and they have changed the mail Exchanger from remote to local but it didn't finish with the problem. Someone knows what could be happening?
This is part of the message that appears:
"
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:
peter#thisismyclientsdirection.com
No Such User Here
peter#thisismyclientsotherdirection.com
No Such User Here
Reporting-MTA: dns; cherry.theserversite.pro
Action: failed
Final-Recipient: rfc822;peter#thisismyclientsdirection.com
Status: 5.0.0
Action: failed
Final-Recipient: rfc822;peter#thisismyclientsotherdirection.com
Status: 5.0.0
Return-path: <comercial#mydomain.com>
Received: from [71.13.252.126] (port=58531 helo=[10.145.123.217])
by cherry.theserversite.pro with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
(Exim 4.93)
(envelope-from <comercial#mydomain.com>)
id 1UZ6w-00EaD5-0h; Mon, 19 Oct 2020 13:38:33 -0400
To: peter#thisismyclientsdirection.com, peter#thisismyclientsotherdirection.com
From: comercial#mydomain.com
Subject: =?UTF-8?Q?Reenv=c3=ado_-_cotizaciones_mantenimiento?=
MIME-Version: 1.0
Content-Type: multipart/mixed;
Content-Language: es-ES
X-Antivirus: Avast (VPS 201019-2, 19/10/2020), Outbound message
X-Antivirus-Status: Clean
X-Exim-DSN-Information: Due to administrative limits only headers are returned
"
Thanks,
I found the solution. The problem was that the other websites (the domains of my client) are inside my server and in the Email Routing section (it is in the Cpanel) of those websites, the domains were targeted as "Local server" or not targeted. Despite it, the email server for those domains don't were in my server then the system was confused. I just changed the target to "Remote servers" for both domains (the domains of my client) and the problem disappear.
I hope this explanation could be useful for other developer.
Anyway thank you,
TheJohnny

Mail Blocked By Spanhaus

I made an SMTP server in microsoft server 2016. But when i go to send mail through powershell to an email address. The mail goes to queue or bad list. It give me the error:
Date: Wed, 23 Aug 2017 10:37:03 +0100
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095B5ADSN=_01D31BE72DD4ACEE00000008mail.frezee.uk"
X-DSNContext: 7ce717b1 - 1196 - 00000002 - 00000000
Message-ID: <yWtIIZS2T00000005#mail.frezee.uk>
Subject: Delivery Status Notification (Failure)
This is a MIME-formatted message.
Portions of this message may be unreadable without a MIME-capable mail program.
--9B095B5ADSN=_01D31BE72DD4ACEE00000008mail.frezee.uk
Content-Type: text/plain; charset=unicode-1-1-utf-7
This is an automatically generated Delivery Status Notification.
Delivery to the following recipients failed.
jameswheeler54#hotmail.co.uk
--9B095B5ADSN=_01D31BE72DD4ACEE00000008mail.frezee.uk
Content-Type: message/delivery-status
Reporting-MTA: dns;mail.frezee.uk
Received-From-MTA: dns;WIN-NM193HJ6M6C
Arrival-Date: Wed, 23 Aug 2017 10:37:03 +0100
Final-Recipient: rfc822;jameswheeler54#hotmail.co.uk
Action: failed
Status: 5.7.1
Diagnostic-Code: smtp;550 5.7.1 Service unavailable, Client host [90.255.57.31] blocked using Spamhaus. To request removal from this list see http://www.spamhaus.org/lookup.lasso (AS3130).
Anyone know what i am doing wrong? I have an a record for mail pointing to the servers ip.
Thanks,
request removal on the given url
don't send too much email to 1 provider at once ( send 5-10 then pause until your spam-score decreases, then may be more ... )
Your IP is assigned from a pool of addresses of a consumer ISP. You can request to be removed from the whitelist, but likely it will end up there again as very likely is abused by spammers.
inetnum: 90.255.32.0 - 90.255.63.255
netname: VODAFONE-DYN-IP
descr: Dynamic IP Addresses
descr: Vodafone Consumer Broadband
You can attempt to use a proxy to mask your IP hoping that the public IP will not be blacklisted, or you can attempt to reset the router in order to get assigned another public IP which is not blacklisted. However, the real solution would be to contact your ISP and request to have assigned a static IP address, but likely this is available for business contracts only or you have to pay an additional fee for it.

Mail delivery failed: returning Email to sender

I am Getting mail from Mail Delivery System.I attached the mail below.
---------- Forwarded message ----------
From: Mail Delivery System <Mailer-Daemon#test.com>
Date: Wed, Aug 9, 2017 at 10:00 PM
Subject: Mail delivery failed: returning message to sender
To: info#test.com
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:
test#gmail.com
host alt3.gmail-smtp-in.l.google.com [243.122.66.26]
SMTP error from remote mail server after RCPT TO:<test#gmail.com>:
550-5.2.1 The user you are trying to contact is receiving mail at a rate that
550-5.2.1 prevents additional messages from being delivered. For more
550-5.2.1 information, please visit
550 5.2.1 https://support.google.com/mail/?p=ReceivingRatePerm p41si4843565qte.548 - gsmtp
Action: failed
Final-Recipient: test;test#gmail.com
Status: 5.0.0
Remote-MTA: dns; alt3.gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.2.1 The user you are trying to contact is receiving mail at a rate that
550-5.2.1 prevents additional messages from being delivered. For more
550-5.2.1 information, please visit
550 5.2.1 https://support.google.com/mail/?p=ReceivingRatePerm p41si4843565qte.548 - gsmtp
I don't have any idea about this can anyone please help.

Reverse DNS does not contain the hostname

I use a Centos Server in Windows HyperV. When I was sent a mail over this server, I get an error mail.
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:
serefseven#gmail.com
host gmail-smtp-in.l.google.com [66.102.1.26]
SMTP error from remote mail server after end of data:
550-5.7.1 [185.124.86.138] The IP address sending this message does not have a
550-5.7.1 PTR record setup. As a policy, Gmail does not accept messages from
550-5.7.1 IPs with missing PTR records. Please visit
550-5.7.1 https://support.google.com/mail/answer/81126#authentication for more
550 5.7.1 information. y187si26143569wmc.112 - gsmtp
Reporting-MTA: dns; ln1.postoflscell.com
Action: failed
Final-Recipient: rfc822;serefseven#gmail.com
Status: 5.0.0
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [185.124.86.138] The IP address sending this message does not have a
550-5.7.1 PTR record setup. As a policy, Gmail does not accept messages from
550-5.7.1 IPs with missing PTR records. Please visit
550-5.7.1 https://support.google.com/mail/answer/81126#authentication for more
550 5.7.1 information. y187si26143569wmc.112 - gsmtp
mxtollbox.com smtp test result :
SMTP Reverse DNS Mismatch Reverse DNS does not contain the hostname
SMTP Banner Check Reverse DNS does not match SMTP Banner
SMTP TLS Warning - Does not support TLS.
SMTP Transaction Time 15.485 seconds - Not good! on Transaction Time
SMTP Valid Hostname OK - Reverse DNS is a valid Hostname
SMTP Connection Time 0 seconds - Good on Connection time
SMTP Open Relay OK - Not an open relay.
how to fix this problem?
As the error states, The IP address sending this message does not have a PTR record setup, so you need to set the PTR record for 185.124.86.138 (it is quite usual that receiving mail server requires this). Reverse DNS is controlled by whoever "owns" the IP address, so you should probably contact Bilgehosting to set the record for you)

Relay access denied

I know that this question is not strictly related to coding, but I'm trusting the knowledge of this community to solve this and I thought it could still interest many people to know how to face this problem.
I am trying to send e-mails to people in a particular company, and keep getting the following error from the mail delivery system:
This is the mail delivery agent at messagelabs.com.
I was unable to deliver your message to the following addresses:
********#******.com
Reason: 554 5.7.1 <********#******.com>: Relay access denied
The message subject was: RE: ********
The message date was: **********
The message identifier was: **********
The message reference was: ************
Please do not reply to this email as it is sent from an unattended mailbox.
Please visit www.messagelabs.com/support for more details
about this error message and instructions to resolve this issue.
Last-Attempt-Date: ********
Remote-MTA: *********
Diagnostic-Code: smtp; 554 5.7.1 <********#******.com>: Relay access denied
Status: 5.7.1
Action: failed
Final-Recipient: ****; ********#******.com
Does anyone know what's going on here?
I am trying to send from a normal gmail account, straight from the web browser. It looks like I get this error only when I send e-mails to this specific domain, although we've been e-mailing in the past with no issues at all.
Thank you!