elementary / elementary/mail

Bad Envelope FROM when using alias from different domain.

Open
#335 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
215
Forks
50
Avg merge
3h 11m
Merged PRs (30d)
1

Description

Hello,

I found a error in Pantheon Mail which breaks DMARC checks.

When I have account with alias from different domain created this way:
username: me@example.com
e-mail address: me@example.com
e-mail alias: me@mydomain.com

**Pantheon mail is using wrong envelope-from**, if I use one of aliases.

If I select to use mail me@example.com in new-mail dialog, it uses these values in headers:
Envelope-From: me@example.com
Body From: me@example.com

When I select me@mydomain.com as sender, then it uses these values:
Envelope-From: me@example.com
Body From: me@mydomain.com

In second case it can break DMARC verification check on recipient's side and e-mail will be quarantined/rejected (depends on policy for mydomain.com).

Envelope-From: and From: header should be aligned (from same domain).

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/67473981-bad-envelope-from-when-using-alias-from-different-domain?utm_campaign=plugin&utm_content=tracker%2F59850425&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F59850425&utm_medium=issues&utm_source=github).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.