Page MenuHomePhabricator

Delivery of audit emails is failing
Closed, ResolvedPublic

Asked by aravindh on Oct 3 2015, 2:51 AM.

Details

I am using Bitnami hosted Phabricator 20150929-0 on AWS.
When I add a comment to a commit in Diffusion and mark it as a defect, the resulting email that should be sent to the author of the commit is ending up in a delivery failure. Other emails like "Email Verification" are successfully sent and received. I am using Gmail as the email provider. Here is the output of "mail list-outbound":

$ ./apps/phabricator/htdocs/bin/mail list-outbound
1  Sent            [Phabricator] Email Verification
<snip>
6  Delivery Failed rG3b43581a8f15: Diffrential test

Here is the output of "mail show-outbound --id 6":

$ ./apps/phabricator/htdocs/bin/mail show-outbound --id 6
PROPERTIES
ID: 6
Status: fail
Related PHID: PHID-CMIT-at63jdgami6vgmjurkwi
Message: Invalid address: null+COMMIT6+1+3b61ded100f38e3b@127.0.0.1

PARAMETERS
sensitive: 
subject: rG3b43581a8f15: Diffrential test
from: PHID-USER-cnpydbflbqwtmqhexbsy
subject-prefix: [Diffusion]
vary-subject-prefix: [Raised Concern]
thread-id: diffusion-audit-PHID-CMIT-at63jdgami6vgmjurkwi
is-first-message: 
exclude: []
herald-force-recipients: []
mailtags: ["audit-other","audit-action-concern","audit-comment"]
is-bulk: 1
reply-to: null+COMMIT6+1+3b61ded100f38e3b@127.0.0.1
to: ["PHID-USER-cnpydbflbqwtmqhexbsy"]

HEADERS
X-Phabricator-Sent-This-Message: Yes
X-Mail-Transport-Agent: MetaMTA
X-Auto-Response-Suppress: All
X-Phabricator-Mail-Tags: <audit-other>, <audit-action-concern>, <audit-comment>
Thread-Topic: Commit rG3b43581a8f1513f8d77c2dca19934ec040750072
X-Phabricator-To: <PHID-USER-cnpydbflbqwtmqhexbsy>
X-Phabricator-Cc: <PHID-USER-cnpydbflbqwtmqhexbsy>
Precedence: bulk

TEXT BODY
admin added a subscriber: admin.
admin raised a concern with this commit.

BRANCHES
  master

INLINE COMMENTS
  /NewFile:5 Please use correct grammar.

USERS
  admin (Auditor)

COMMIT
  http://company.com:80/rG3b43581a8f15

EMAIL PREFERENCES
  http://company.com:80/settings/panel/emailpreferences/

To: admin
Cc: admin


HTML BODY
<div>admin added a subscriber: admin.<br />
admin raised a concern with this commit.</div><br /><div><strong>BRANCHES</strong><div><div>master</div></div></div><br /><div><strong>INLINE COMMENTS</strong><div><div>/NewFile:5 Please use correct grammar.</div></div></div><br /><div><strong>USERS</strong><div><div>admin (Auditor)</div></div></div><br /><div><strong>COMMIT</strong><div><a href="http://company.com:80/rG3b43581a8f15" rel="noreferrer">http://company.com:80/rG3b43581a8f15</a></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="http://company.com:80/settings/panel/emailpreferences/" rel="noreferrer">http://company.com:80/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>admin<br /><strong>Cc: </strong>admin<br /></div>

If try to send a test email it succeeds:

$ ./apps/phabricator/htdocs/bin/mail send-test --to user --subject test < test.txt 
Reading message body from stdin...
Mail sent! You can view details by running this command:

    phabricator/ $ ./bin/mail show-outbound --id 11

~$ ./apps/phabricator/htdocs/bin/mail list-outbound
1  Sent            [Phabricator] Email Verification
<snip>
9  Delivery Failed rG3b43581a8f15: Diffrential test
11 Sent            test

Any idea what the cause of this error is? How do I fix it?

Thanks!

Answers

chad
Updated 3,127 Days Ago

We don't maintain the Bitnami build, you likely need to contact them for support. You can also use /mail/ to help debug mail issues.

aravindh
Updated 3,124 Days Ago

I fixed this problem by setting

metamta.can-send-as-user: true
metamta.reply-handler-domain: company.com

I am not sure if this is the correct fix but things work as expected now.

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.