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

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

Related

Undelivered Mail Returned to Sender Roundcube Plesk

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.

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.

Email in cPanel cannot recieve, failure message notification

I have hosting through hostgator and cPanel. I have multiple domains. I want to set up emails for a domain. I do so in cPanel creating a user #the-domain-name.com, giving it a password, and email is created.
It has a webmail access at www.the-domain-name.com/webmail and the username and password work to get in. That is fine to log in that way (although I'd like to use Mac's Mail app to do so and set up to work, having difficulty there also).
The issue is that the email address can send out messages, but when I try to send a message to that email through another address, say my Gmail account, I get a "Delivery Status Notification (Failure)" email immediately after saying this:
Delivery to the following recipient failed permanently:
mynewuser#the-domain-name.com
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain the-domain-name.com by the-domain-name.com. [104.255.196.241].
The error that the other server returned was:
550 No Such User Here"
----- Original message -----
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=from:content-type:subject:message-id:date:to:mime-version;
bh=xsx6bRmWZEpBj6Xda3lmBg1o8my3DpJB/KizTIxmSkw=;
b=pvoW+xjEh2t0uSOsdguDhlt0ifBBYoB69jVhQsDVFV9LzIzz/hxiK7e4CIq9cgiu3a
s3ovwDnF+612jQ2QpbjWzVAKauj2pJrgPLkX4Xd6UmLuCy/YKiVTXVCCl1wYDaIkF+b4
uKe/JDjDG27sbpGCGaQmouTqA2I8J4tqML89BYS5bvHaPBHlo5MhFsSwFW5Tg9uiqoPV
Ga0nqP2QaFYX4ieJeg7vjGR7t/Ifu91Xbt6Y8am0s8ktELkHKOIAm8n1KMzdpClAW1BR
P0ujIG0WbwVQm6TwkDHN/TnXFbdKHL4/bM5Io5CBNmEvBISOtAWZf4LSXE6EmOBh4m6K
j2VQ==
X-Received: by 10.107.135.65 with SMTP id j62mr17214703iod.47.1448046522949;
Fri, 20 Nov 2015 11:08:42 -0800 (PST)
Return-Path: <myGmailAccount#gmail.com>
Received: from ?IPv6:2601:282:200:680:95c:1c6f:f086:9f28? ([2601:282:200:680:95c:1c6f:f086:9f28])
by smtp.gmail.com with ESMTPSA id rj5sm325732igc.7.2015.11.20.11.08.41
for <newUser#the-domain-name.com>
(version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
Fri, 20 Nov 2015 11:08:42 -0800 (PST)
From: My Name <myGmailAccount#gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_955B8E97-7DBF-44E5-931B-B41741DD943E"
Subject: test
Message-Id: <A6DE0523-0ABF-4A08-86B8-FD86342995BF#gmail.com>
Date: Fri, 20 Nov 2015 12:08:39 -0700
To: newUser#the-domain-name.com
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
X-Mailer: Apple Mail (2.2104)
I substituted all the real emails and domain name out with generic ones.
How can this be fixed to where I am able to both SEND and RECEIVE from the new cPanel email, and ultimately, how can I do so with Mac Mail??
Thanks
Handling, sending/receiving your emails with cPanel is very easy.
As the error you get says: 550 No Such User Here , double check your email account name.
Also, check the mail log file, which on a WHM/cPanel server I think is: /var/log/exim_maillog
Of course you can always contact your host for help. The last time I had problems with my cPanel email accounts, I contacted my host and it turned out that my custom exim config file was overwritten by cPanel Exim updates.

Why is my email being rejected?

I am having problems sending an email from one email address to another on my domain. I am using a shared server. I use weather software which automatically constructs and sends the email message. I have omitted the host, domain and IP info and replaced them like so: host= example.co.uk, domain = mydomain.co.uk .
The situation is I run a mail group using email address (weatherinfo#) and some users in the group set auto-responders. Therefore to prevent these from going to the whole group the email is sent from a different address (reports#) to weatherinfo# with the reports# address receiving the auto-responder messages.
I am getting the following message from the mail delivery system when trying to send the email to weatherinfo# from report#:
This is the mail system at host mailauth.example.co.uk.
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
<weatherinfo#mydomain.co.uk>: host 127.0.0.1[127.0.0.1] said: 554 5.6.0
Reject, id=02474-18 - BAD HEADER (in reply to end of DATA command).
The error log accompanying the email shows:
Reporting-MTA: dns; mailauth.example.co.uk
X-Postfix-Queue-ID: 88002C306D
X-Postfix-Sender: rfc822; reports#mydomain.co.uk
Arrival-Date: Fri, 2 May 2014 22:00:43 +0100 (BST)
Final-Recipient: rfc822; weatherinfo#mydomain.co.uk
Original-Recipient: rfc822;weatherinfo#mydomain.co.uk
Action: failed
Status: 5.6.0
Remote-MTA: dns; 127.0.0.1
Diagnostic-Code: smtp; 554 5.6.0 Reject, id=02474-18 - BAD HEADER
The header from the original message is:
Return-Path: <reports#mydomain.co.uk>
Received: from LAPTOP (helium.example.co.uk [IP Address])
by mailauth.example.co.uk (Postfix) with ESMTPA id 88002C306D
for <weatherinfo#mydomain.co.uk>; Fri, 2 May 2014 22:00:43 +0100 (BST)
To: weatherinfo#mydomain.co.uk
From: reports#mydomain.co.uk
Subject: WEATHER REPORT
Reply-To: reports#mydomain.co.uk
Date: Fri, 02 May 2014 23:00:56 +0100
Message-Id: <43786804l.820319781l1635676l1l#mydomain.co.uk>
Message-ID: <2014.05.02.17001.wd#mail.mydomain.co.uk>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"
Why is this message being rejected?
Is this being caused by my software or the server?
If it is the software what does the developer need do to fix it?
If it is the server what should I ask my host to do to overcome this problem?
The server says, your header is wrong, so I'd search the problem within your software.
If it isn't just a missing whitespace in your post, the header field "Recieved" isn't folded as specified in RFC 2822: 2.3.3 Long Header Fields causing two invalid headers starting with "by" and "for". Correct would be:
Received: from LAPTOP (helium.example.co.uk [IP Address])
by mailauth.example.co.uk (Postfix) with ESMTPA id 88002C306D
for <weatherinfo#mydomain.co.uk>; Fri, 2 May 2014 22:00:43 +0100 (BST)
Also I see that there are two Message-id headerfields. I do not know whether this is allowed or not.
I would always do tests with telnet (or putty/raw) in such a case and try with several heder fields skipped or modified so you can break it down to the header field your mail server is complaining about.

Gmail rejects emails. Openspf.net fails the tests.

I've got a problem with Gmail.
It started after one of our trojan infected PCs sent spam for one day from our IP address.
We've fixed the problem, but we got into 3 black lists. We've fixed that, too. But still every time we send an email to Gmail the message is rejected:
So I've checked Google Bulk Sender's guide once again and found an error in our SPF record and fixed it. Google says everything should become fine after some time, but this doesn't happen. 3 weeks already passed but we still can't send emails to Gmail.
Our mail setup is a bit complex, but not too much. We have a domain name delo-company.com, it has it's own mail #delo-company.com (this one is fine, but the problems are with sub-domain name corp.delo-company.com).
Delo-company.com domain has several DNS records fro its subdomain:
corp A 82.209.198.147
corp MX 20 corp.delo-company.com
corp.delo-company.com TXT "v=spf1 ip4:82.209.198.147 ~all"
(I set ~all for testing purposes only, it was -all before that)
These records are for our corporate Exchange 2003 server at 82.209.198.147. Its LAN name is s2.corp.delo-company.com so its HELO/EHLO greetings are also s2.corp.delo-company.com.
To pass EHLO check we've also created some records in delo-company.com's DNS:
s2.corp A 82.209.198.147
s2.corp.delo-company.com TXT "v=spf1 ip4:82.209.198.147 ~all"
As I understand SPF verifications should be passed in this way:
Out server s2 connects to MX of the recepient (Rcp.MX): EHLO s2.corp.delo-company.com
Rcp.MX says Ok, and makes SPF check of HELO/EHLO. It does NSlookup for s2.corp.delo-company.com and gets the above DNS-records. TXT records says that s2.corp.delo-company.com should be only from IP 82.209.198.147. So it should be passed.
Then our s2 server says RCPT FROM: <supruniuk-p#corp.delo-company.com>
Rcp.MX` server checks it, too. The values are the same so they should also be positive.
Maybe there is also a rDNS check, but I'm not sure what is checked HELO or RCPT FROM.
Our PTR record for 82.209.198.147 is:
147.198.209.82.in-addr.arpa. 86400 IN PTR s2.corp.delo-company.com.
To me everything looks fine, but anyway all emails are rejected by Gmail.
So, I've checked MXtoolbox.com - it says everything is fine, I passed http://www.kitterman.com/spf/validate.html Python check, I did 25port.com email test. It's fine, too:
Return-Path: <supruniuk-p#corp.delo-company.com>
Received: from s2.corp.delo-company.com (82.209.198.147) by verifier.port25.com id ha45na11u9cs for <check-auth#verifier.port25.com>; Fri, 2 Mar 2012 13:03:21 -0500 (envelope-from <supruniuk-p#corp.delo-company.com>)
Authentication-Results: verifier.port25.com; spf=pass smtp.mailfrom=supruniuk-p#corp.delo-company.com
Authentication-Results: verifier.port25.com; domainkeys=neutral (message not signed) header.From=supruniuk-p#corp.delo-company.com
Authentication-Results: verifier.port25.com; dkim=neutral (message not signed)
Authentication-Results: verifier.port25.com; sender-id=pass header.From=supruniuk-p#corp.delo-company.com
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01CCF89E.BE02A069"
Subject: test
Date: Fri, 2 Mar 2012 21:03:15 +0300
X-MimeOLE: Produced By Microsoft Exchange V6.5
Message-ID: <4C9EB1DB67831A428B2E14052F4A418707E1FF#s2.corp.delo-company.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: test
Thread-Index: Acz4jS34oznvbyFQR4S5rXsNQFvTdg==
From: =?koi8-r?B?89XQ0tXOwMsg8MHXxcw=?= <supruniuk-p#corp.delo-company.com>
To: <check-auth#verifier.port25.com>
I also checked with spf-test#openspf.net, but it FAILs all the time, no matter which SPF records I make:
<s2.corp.delo-company.com #5.7.1 smtp;550 5.7.1 <spf-test#openspf.net>: Recipient address rejected: SPF Tests: Mail-From Result="softfail": Mail From="supruniuk-p#corp.delo-company.com" HELO name="s2.corp.delo-company.com" HELO Result="softfail" Remote IP="82.209.198.147">
I've filled Gmail form twice, but nothing happens.
We do not send spam, only emails for our clients. 2 or 3 times we did mass emails (like New Year Greetings and sales promos) from corp.delo-company.com addresses, but they where all complying to Gmail Bulk Sender's Guide (I mean SPF, Open Relays, Precedence: Bulk and Unsubscribe tags). So, this should be not a problem.
Please, help me. What am I doing wrong?
I've been having serious problems with gmail rejecting legitimate mail. Somewhere I read a suggestion to delete URLs from your signature file. To my amazement, this worked. (My mail client is Eudora, which some of you may dimly remember.)
Hope it helps.
Gmail have now a postmaster tool you can check your domain/ip reputation, spam rate and in the "Authentication" area you can check DKIM/SPF/DMARC works correctly.
https://gmail.com/postmaster/
I recommend to use the CNAME record for authentication, if you are using the default TXT record also on SPF query this entry return.