ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-13540) Emails Dispatched From Ambari Are Not RFC 2822 Compliant And May Be Rejected
Date Tue, 27 Oct 2015 21:12:27 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-13540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14977177#comment-14977177
] 

Hudson commented on AMBARI-13540:
---------------------------------

FAILURE: Integrated in Ambari-branch-2.1 #755 (See [https://builds.apache.org/job/Ambari-branch-2.1/755/])
AMBARI-13540 - Emails Dispatched From Ambari Are Not RFC 2822 Compliant (jhurley: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=d10dd61f725c73854c7c9b03e718c75e7676fcc5])
* ambari-server/src/main/java/org/apache/ambari/server/notifications/Notification.java
* ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/EmailDispatcher.java


> Emails Dispatched From Ambari Are Not RFC 2822 Compliant And May Be Rejected
> ----------------------------------------------------------------------------
>
>                 Key: AMBARI-13540
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13540
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: 2.1.3
>
>
> When dispatching alert emails through some servers they are rejected with:
> {code}
> <ambari@apache.org>: host smtp.apache.org1.2.3.4 said: 
> 550-5.7.1 1.2.3.4 11 Our system has detected that this 
> message is 550-5.7.1 not RFC 2822 compliant. To reduce the amount of spam 
> sent to Gmail, 550-5.7.1 this message has been blocked. Please review 550 
> 5.7.1 RFC 2822 specifications for more information. f188si13510144qhe.108
> {code}
> This is because strict RFC 2822 compliance expects the {{From}} and {{To}} headers in
the data of the message body as opposed to the {{MAIL FROM}} and {{RCPT TO}} directives.
> {code:title=Rejected}
> >telnet smtp.ambari.apache.org 25
> EHLO
> MAIL FROM: ambari@smtp.ambari.apache.org
> RCPT TO: ambari@smtp.ambari.apache.org
> DATA
> Subject: Test message with From and To header
> Test.
> .
> QUIT
> {code}
> {code:title=Accepted}
> >telnet smtp.ambari.apache.org 25
> EHLO
> MAIL FROM: ambari@smtp.ambari.apache.org
> RCPT TO: ambari@smtp.ambari.apache.org
> DATA
> From: ambari@smtp.ambari.apache.org
> To: ambari@smtp.ambari.apache.org
> Subject: Test message with From and To header
> Test.
> .
> QUIT
> {code}
> We should be setting the headers on the {{MimeMessage}} as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message