mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 21:15:56 +03:00
[GH-ISSUE #223] [BUG][Display?] @mail.world.org behind every entity in To and CC Field #186
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#186
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ulfgebhardt on GitHub (Aug 29, 2017).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/223
Originally assigned to: @jasonmunro on GitHub.
When inspecting an EMail under "Sent" The "To" and "CC"-Field contain
This might be an Serverproblem - i cannot tell yet. If you like I can make a seperate Issue for that.
This is an Issue described in #218 and seperated from that thread
Grüße Ulf
<3
@jasonmunro commented on GitHub (Sep 12, 2017):
we don't use enable local addresses in the code, so I don't think that's the issue. Can you use the "raw" link when viewing the message and show me what the actual header line for these address fields looks like? The "raw" view does not reformat the message at all except to make it safe to view in the browser. Thanks!
@ulfgebhardt commented on GitHub (Sep 13, 2017):
Hey,
you are right - the Header contains the malformed Address already:
As you can see the To Field in the Header contains the malformed address.
"Petra World"@mail.world.org, petra@world.orgThe reason for this is Postfix, which appends the @mail.world.org part on incomplete Addresses
source
Since this EMail was sent by Cypht I think it is still a Cypht-Problem, but on sending rather then on displaying an EMail. An incomplete Address is sent to the Mailserver, which appends the local domain to try making it a valid EMail-Address. Cypht should not send incomplete Recipients to the Server.
Note: Those EMails are from the old Version - therefor I cannot tell, if the Problem remains in the latest. I will give Feedback as soon as I see it again or report after a while when it doesn't.Another thing is: If i try to send an EMail to peter@mail.world.org i get an
since the Mailserver does not recognize the EMail-Address (local sending within the same Server).
If I try this from an external EMail Server I get an EMail with:
If I try to send an EMail to
like shown in the Header, I get:
from Cypht and the EMail is not sent at all.
The same applies if I try to send to:
But I get neither of those responses when the @mail.world.org Address appears in the EMail To-Field in Cypht. The EMail properly delivers without any notification of failure only the malformed Address is displayed in the Sent Folder.
UPDATE
I can reproduce the behaviour! Send an EMail to
and you can see the described behaviour.
This results in
The Postfix log does not show any sign of a delivery attempt to
The same behaviour can be produced by sending to:
The EMail is
notsent successfully when sending toReferences:
There is a php function to parse EMail-Addresses by RFC822
The common use-case when this behaviour occurs is by replying to an EMail(with multiple Recipients). For those cases a RFC822-compilant Header is available (else the Mailserver prob. would have failed to deliver). The Header can be used as input for the TO-Field in Compose(or combined to & cc Fields). When sending the EMail the PHP-Function can be used to parse the TO and CC Fields and check for errors. Should the user append an EMail-Address to the Recipient-list in a non-RFC822-compilant way he can be warned(maybe he missed a comma).
This could be relevant and/or interlinked with the remaining Problems of #218
Rev:
26a3870e58Grüße Ulf
<3
@jasonmunro commented on GitHub (Sep 21, 2017):
Thanks for the update! I tested sending to the following:
"Jason Munro", jason@cypht.org
it worked as expected. A message was sent to jason@cypht.org, and the first invalid address was ignored. The To: header of the E-mail was not changed in any way, unlike your results. Cypht parses the To/Cc/Bcc lines, pulls out all the addresses, and uses those in the SMTP conversation. Then it sets the To: address header to exactly what you entered - it does not append any domains or attempt to clean it up.
So in this case Cypht did the "right" thing I think, except that it did no notify the user that the address line was malformed. I did not know about the php function to parse addresses, looks like that is a pecl package now. I'm not too keen on adding that as a requirement to run Cypht, but I will look into it. I would prefer to enhance our existing parsing path to notice malformed address lines and optionally notify the user if something does not look right.
@ulfgebhardt commented on GitHub (Sep 21, 2017):
Ok - so I guess its a Postfix thingy... maybe mine is misconfigured or hacked :(
Could you try to send to
Grüße Ulf
<3
@jasonmunro commented on GitHub (Sep 21, 2017):
works fine without the comma for me
@ulfgebhardt commented on GitHub (Sep 21, 2017):
Thanks for the Feedback. If you don't mind I would keep the Issue open for a bit longer, maybe i find the cause - if I don't I guess it should be closed. But its your call - if you can't reproduce the Problem, your obviously cant fix it.
Grüße Ulf
<3
@jasonmunro commented on GitHub (Sep 21, 2017):
I'm fine with keeping the issue open as long as you like. Just because I can't reproduce it does not mean there is not a bug in the code. Looks like Postfix earlier than 2.2 always does header rewrites, and after that it is something you can disable. I'm running a pretty default 3.1 postfix for cypht.org and I don't recall doing anything to disable header rewriting (but it's been a while since I set it up).
@ulfgebhardt commented on GitHub (Sep 27, 2017):
Sorry for making you read all my stuff - Problem was Postfix
https://serverfault.com/questions/250855/postfix-disable-address-rewrite
local_header_rewrite_clients =Solves this with Postfix 2.2
Grüße Ulf
<3
PS: Thanks for the great work, fast response time and all that effort you put into this awesome project!
@jasonmunro commented on GitHub (Sep 27, 2017):
I'm always happy to help. Not only did you help me by finding some bugs that have since been corrected, but others coming here with similar problems can benefit from the resolution even if it was not a cypht specific issue. Thanks again!