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.
Related
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?
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
I installed Postfix on an Ubuntu 14.04 server running Nginx. While I was installing it, I put the system email as 'info#mydomain.com' not realising that it would now think that this was a local mailbox. This email address is a gmail account and so the server needs to look at the MX records.
I'm guessing what is happening is that it sees that its a local address and just sends it locally. I sent a test with:
echo "This is the body of the email" | mail -s "This is the subject line" info#mydomain.com
And sure enough in /var/mail/root there was a message:
From MAILER-DAEMON Wed Sep 30 19:05:59 2015
Return-Path: <>
X-Original-To: root#mydomain.com
Delivered-To: root#mydomain.com
Received: by mydomain.com (Postfix)
id 5D29F1249E9; Wed, 30 Sep 2015 19:05:59 -0400 (EDT)
Date: Wed, 30 Sep 2015 19:05:59 -0400 (EDT)
From: MAILER-DAEMON#mydomain.com (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: root#mydomain.com
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="52BC21249E1.1443654359/mydomain.com"
Message-Id: <20150930230559.5D29F1249E9#mydomain.com>
This is a MIME-encapsulated message.
--52BC21249E1.1443654359/mydomain.com
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii
This is the mail system at host mydomain.com.
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
<info#mydomain.com>: unknown user: "info"
--52BC21249E1.1443654359/mydomain.com
Content-Description: Delivery report
Content-Type: message/delivery-status
Reporting-MTA: dns; mydomain.com
X-Postfix-Queue-ID: 52BC21249E1
X-Postfix-Sender: rfc822; root#mydomain.com
Arrival-Date: Wed, 30 Sep 2015 19:05:59 -0400 (EDT)
Final-Recipient: rfc822; info#mydomain.com
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "info"
--52BC21249E1.1443654359/mydomain.com
Content-Description: Undelivered Message
Content-Type: message/rfc822
Return-Path: <root#mydomain.com>
Received: by mydomain.com (Postfix, from userid 0)
id 52BC21249E1; Wed, 30 Sep 2015 19:05:59 -0400 (EDT)
Subject: This is the subject line
To: <info#mydomain.com>
X-Mailer: mail (GNU Mailutils 2.99.98)
Message-Id: <20150930230559.52BC21249E1#mydomain.com>
Date: Wed, 30 Sep 2015 19:05:59 -0400 (EDT)
From: root#mydomain.com (root)
This is the body of the email
--52BC21249E1.1443654359/mydomain.com--
I'm not sure how I can get the server to send the emails to the right place? Should I change the system email to something random?
I'm guessing that you've probably got the machine installed with mydomain.com as the hostname and so Postfix is configured to think it's answering email for mydomain.com. You probably want to edit your /etc/postfix/main.cf and remove your domain from the mydestination line there. (And then restart Postfix.)
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
I want to retrive the SMTP response after sending the mail.
I need to fetch the response for the send mail (whether its send properly or not)
The response must be like this
Return-path:
Envelope-to: ap#smartsnipe.com
Delivery-date: Fri, 12 Dec 2008 23:54:57 -0500
Received: from pool-98-109-89-94.nwrknj.fios.verizon.net ([98.109.89.94] helo=Andy-PC)
by server.4wtech.com with esmtp (Exim 4.69)
(envelope-from )
id 1LBMWn-0005BH-7u
for ap#smartsnipe.com; Fri, 12 Dec 2008 23:54:57 -0500
Date: Sat, 13 Dec 2008 04:55:09 UT
From: itgigs#4wtech.com
Subject: Web Deverloper Internship (SoHo) (955259288 )
To: ap#smartsnipe.com
MIME-Version: 1.0
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
How can i retrieve the SMTP response? Please help me
This does not look like an SMTP response to me, as an SMTP response would be of the form "XXX some message". What you copied in your question is the log output that the mail server writes out when accepting and delivering the message.
If you are on a Unix system and have access to /var/log, you're likely to find a file in there called mail.log or maillog which contains the info you were looking for.