Mail delivery failed: returning message - email

We got a server with mails and several clients send us this issue can somebody help with this issue?
subject: 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:
elise.dullers#spectrumstudent.be
SMTP error from remote mail server after end of data:
host ASPMX.L.GOOGLE.COM [2a00:1450:4013:c00::1b]:
550-5.7.1 [2a01:7c8:aaaa:3e7::1] Our system has detected that this message does
550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and
550-5.7.1 authentication. Please review
550-5.7.1 https://support.google.com/mail/?p=IPv6AuthError for more information
550 5.7.1 . z13si75087edl.403 - gsmtp
------ This is a copy of the message, including all the headers. ------
Return-path: Received: from
109.131-67-87.adsl-dyn.isp.belgacom.be ([87.67.131.109] helo=[192.168.1.55]) by server.ireto.be with esmtpa (Exim 4.83)
(envelope-from ) id 1egDid-0005am-Ee for
elise.dullers#spectrumstudent.be; Mon, 29 Jan 2018 18:59:48 +0100
SavedFromEmail: info#beringsetaxi.be Date: Mon, 29 Jan 2018 18:59:44
+0100 Subject: Re: Kostprijs taxi In-Reply-To:
Importance: normal From: info To: Elise Dullers
MIME-Version: 1.0 Content-Type:
multipart/alternative;
boundary="--_com.samsung.android.email_2340489603438420"
----_com.samsung.android.email_2340489603438420 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64

Related

How can I send a custom Delivery Status Notification over Postfix SMTP server?

I'm trying to send out the following Mime message through my mail SMTP server which is Postfix.
From: Webmaster <webmaster#ourdomain.com>
Date: Sat, 06 Feb 2021 23:50:56 +0100
Subject: Delivery Status Notification (Failure)
Message-Id: <GII2AYZOWCU4.AXDWNKVKJ4XD3#ourdomain.com>
To: First Last <someone#gmail.com>
Return-Path: <>
MIME-Version: 1.0
Content-Type: multipart/report; boundary="=-HnKieASbitf0LQ3XjF16Mw==";
report-type=delivery-status
--=-HnKieASbitf0LQ3XjF16Mw==
Content-Type: text/plain
Attachment not allowed
--=-HnKieASbitf0LQ3XjF16Mw==
Content-Type: message/delivery-status
Reporting-MTA: dns;mail.ourdomain.com
Final-Recipient: rfc822;user#ourdomain.com
Action: failed
Status: 550 5.7.1
--=-HnKieASbitf0LQ3XjF16Mw==--
The problem I'm having is that Postfix sends the message as a regular massage with the related parts stripped.
Is it not possible to send a custom DSN message manually?

Sendmail not able to send to Gmail accounts

I'm running a small IRCd on a vps. No firewall. When users register their nicks, a confirmation email is sent out to them by Sendmail to the email address they entered during registration. All but Gmail users get email. I found this and made an spf record using my IP address and placed it my MX record:
"v=spf1 ip4:168.235.75.84 include:_spf.google.com ~all"
But Gmail emails still aren't received. Here's some text from /var/mail/root
----- The following addresses had permanent fatal errors -----
<email.address#gmail.com>
(reason: 550-5.7.1 [2604:180:3:284::8c64] Our system has detected that this message does)
----- Transcript of session follows -----
... while talking to gmail-smtp-in.l.google.com.:
>>> DATA
<<< 550-5.7.1 [2604:180:3:284::8c64] Our system has detected that this message does
<<< 550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and
<<< 550-5.7.1 authentication. Please review
<<< 550-5.7.1 https://support.google.com/mail/?p=ipv6_authentication_error for more
<<< 550 5.7.1 information. hn5si5276310pac.203 - gsmtp
554 5.0.0 Service unavailable
--u4AMhua5032690.1462920236/xtremeirc.net
Content-Type: message/delivery-status
Reporting-MTA: dns; xtremeirc.net
Received-From-MTA: DNS; localhost.localdomain
Arrival-Date: Tue, 10 May 2016 18:43:55 -0400
Final-Recipient: RFC822; email.address#gmail.com
Action: failed
Status: 5.7.1
Remote-MTA: DNS; gmail-smtp-in.l.google.com
Diagnostic-Code: SMTP; 550-5.7.1 [2604:180:3:284::8c64] Our system has detected that this message does
Last-Attempt-Date: Tue, 10 May 2016 18:43:56 -0400
--u4AMhua5032690.1462920236/xtremeirc.net
Content-Type: text/rfc822-headers
Return-Path: <root#xtremeirc.net>
Received: from xtremeirc.net (localhost.localdomain [127.0.0.1])
by xtremeirc.net (8.14.4/8.14.4/Debian-8) with ESMTP id u4AMhsa5032688;
Tue, 10 May 2016 18:43:55 -0400
Received: (from root#localhost)
by xtremeirc.net (8.14.4/8.14.4/Submit) id u4AMhsQs032687;
Tue, 10 May 2016 18:43:54 -0400
Date: Tue, 10 May 2016 18:43:54 -0400
From: root <root#xtremeirc.net>
Message-Id: <201605102243.u4AMhsQs032687#xtremeirc.net>
--u4AMhua5032690.1462920236/xtremeirc.net--
For what it's worth, I have an IPv6 address set up for my domain.
I'm out of my league on this and don't know what I'm doing wrong here? If I need to post more information, please advise. Thanks.
Your SPF record should include your IPv6 address.
"v=spf1 ip4:168.235.75.84 ip6:2604:180:3:284::8c64 include:_spf.google.com ~all"

James not sending emails to foreign server

community
I already installed James in my machine. I configured it. I did a telnet on 4555 port and I added several users. Then I did a telnet on 25 port, and I sent a mail to an outside email address like this
ehlo leo#localhost
...
mail from: <leo#localhost>
250 2.1.0 Sender <leo#localhost> OK
rcpt to: <lroura#uci.cu>
250 2.1.5 Recipient <lroura#uci.cu> OK
data
354 Ok Send data ending with <CRLF>.<CRLF>
subject: otr prueba
jejejejje
.
250 2.6.0 Message received
In leo inbox appears a message like this
Return-Path: <>
Delivered-To: leo#localhost
Date: Wed, 21 Oct 2015 14:04:29 -0500 (GMT-05:00)
From: postmaster#localhost
To: leo#localhost
Message-ID: <33108879.3.1445454269196.JavaMail.root#mypc>
In-Reply-To: <23978087.1.1445454269122.JavaMail.root#mypc>
Subject: Re:otr prueba
MIME-Version: 1.0
Content-Type: multipart/report;
boundary="----=_Part_2_22845834.1445454269146";
report-type=delivery-status
------=_Part_2_22845834.1445454269146
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi. This is the James mail server at mypc.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out. Below
I include the list of recipients and the reason why I was unable to deliver
your message.
Failed recipient(s):
lroura#uci.cu
Error message:
554 5.7.1 <unknown[10.31.105.115]>: Client host rejected: Access denied
------=_Part_2_22845834.1445454269146
Content-Type: message/delivery-status; name=status.dat
Content-Transfer-Encoding: 7bit
Content-Description: Delivery Status Notification
Content-Disposition: attachment; filename=status.dat
Reporting-MTA: dns; mypc
Received-From-MTA: dns; localhost
Final-Recipient: rfc822; lroura#uci.cu
Action: failed
Status: 5.7.1
Diagnostic-Code: smtp; 554 5.7.1 <unknown[10.31.105.115]>: Client host rejected: Access denied
Last-Attempt-Date: Wed, 21 Oct 2015 14:03:58 -0500 (GMT-05:00)
------=_Part_2_22845834.1445454269146
Content-Type: message/rfc822; name="otr prueba"
Content-Disposition: Attachment; filename="otr prueba"
Message-ID: <23978087.1.1445454269122.JavaMail.root#mypc>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Received: from localhost ([127.0.0.1])
by mypc (JAMES SMTP Server 2.3.2) with SMTP ID 269
for <lroura#uci.cu>;
Wed, 21 Oct 2015 14:03:58 -0500 (GMT-05:00)
Date: Wed, 21 Oct 2015 14:03:58 -0500 (GMT-05:00)
From: leo#localhost
subject: otr prueba
jejejejje
------=_Part_2_22845834.1445454269146--
What can I do in order to send an email to a outside server using James?
#Leandro Roura Sixto: Hi. Basically the SMTP error code 554 is thrown when the receiver identifies your machine as a source of SPAM or a relay host. This is typically caused by the domain of leo i.e. localhost. Add some meaningful host like gmail or yahoo, you will be able to get through the SPAM Filter of the receiver's mail server/ SMTP.

Gmail stopped sending PHPmailer messages (was previously working, now marking as spam?)

My application uses PHPMailer to send email through gmail. It was previously working fine, but it appears maybe now gmail is categorizing my email as spam before it is sent out to the recipients. Below is an example of one of the messages that were rejected. I removed URL and Email addresses to protect the innocent. Is this as simple as making t he email body text better so it isn't seems as spam, or is there a more precise fix for this?
Delivery to the following recipient failed permanently:
<removed#removed.com>
Technical details of permanent failure:
Message rejected. See https://support.google.com/mail/answer/69585 for more information.
----- Original message -----
X-Received: by 10.60.144.196 with SMTP id so4mr19216383oeb.66.1439493466614;
Thu, 13 Aug 2015 12:17:46 -0700 (PDT)
Return-Path: <removed#removed.com>
Received: from www.example...realurlhere.com ([x.x.x.x])
by smtp.gmail.com with ESMTPSA id w135sm1602558oie.25.2015.08.13.12.17.45
(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Thu, 13 Aug 2015 12:17:45 -0700 (PDT)
Date: Thu, 13 Aug 2015 15:17:45 -0400
To: <removed#removed.com>, <removed#removed.com>, <removed#removed.com>
From: <removed#removed.com>
Reply-To: <removed#removed.com>
Subject: Spot Bid Request Sent to you - Shipment Request ID: XX
Message-ID: <04b4cbfac43b29b8810d7d8b1c61b349#www.url.com>
X-Priority: 3
X-Mailer: PHPMailer 5.2.9 (https://github.com/PHPMailer/PHPMailer/)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_04b4cbfac43b29b8810d7d8b1c61b349"
Content-Transfer-Encoding: 8bit
Spot Bid Request Sent to you - Shipment Request ID: xx
System Login: http://www.url.....example.com

Trouble Receiving Emails from Microsoft Exchange

When people try and send me emails from Microsoft Exchange, they get this error. I don't really deal with email servers and I have no idea where to start though. Is this problem our side or their side? Or how would I go about fixing this issue?
Delivery has failed to these recipients or groups:
'email#example.com' (email#example.com)
The server has tried to deliver this message, without success, and has stopped trying. Please try sending this message again. If the problem continues, contact your helpdesk.
Diagnostic information for administrators:
Generating server: company.com
email#example.com
Remote Server returned '550 4.4.7 QUEUE.Expired; message expired'
Original message headers:
Received: from company.com (10.0.0.9) by
company.com (10.0.0.9) with Microsoft SMTP Server (TLS) id
15.0.913.22; Mon, 16 Mar 2015 09:31:06 -0700
Received: from company.com ([fe80::795b:ac34:abcd:4825]) by
company.com ([fe80::795b:ac34:abcd:4825%12]) with mapi id
15.00.0913.011; Mon, 16 Mar 2015 09:31:06 -0700
From: John Doe
To: "'email#example.com'"
Subject: Any Random Subject
Thread-Topic: Any Random Subject
Thread-Index: AdBgBpfb1zC+ceABSy6pPCro6aJlsA==
Date: Mon, 16 Mar 2015 16:31:05 +0000
Message-ID:
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-vipre-scanned: 005461CE0096480054631B
x-originating-ip: [10.0.0.138]
Content-Type: multipart/mixed;
boundary="_004_d0873b00554f4a82a311cf02472b1080WCEX1wilcoxconstruction_"
MIME-Version: 1.0
Your key text is
"Remote Server returned '550 4.4.7 QUEUE.Expired; message expired'"
Try goggling on the "message expired" to help determine the exact cause.
https://social.technet.microsoft.com/Forums/exchange/en-US/00e9468e-84c8-43f9-9bfd-95a71320f15b/550-447-queueexpired-message-expired-?forum=exchangesvrgenerallegacy