-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X-Original-DMARC-Record header field may break message #1113
Comments
I couldn't reproduce that problem on a 6.2.60 instance (Debian 10). Can you please post a message that you sent to a Sympa list (where the umlauts are intact) as EML file which caused the corrupted message going out from the Sympa list? |
Sure, find attached one eml-file which caused the problem. Please note, that I replaced the original listname and my sender address AFTER saving the eml-file with a text editor (sublime-text) for privacy reasons. |
@balert , also, can you |
Sure, see attachment. |
@balert , thank you for information. As far as I can see, corrupt message was modified twice. I'm not sure the former modification is due to Sympa. However, I think the latter modification is not due to Sympa, because the format of the message is not what Sympa's function may generate. I'd like to investigate further. If possible, could you attach these things also?
|
Hi, thanks, what do you mean exactly by modification? Maybe some virus or spam filter? Find attached the requested files. message_footer is the footer that causes the corruption. The eml-file is now WITHOUT this footer, and a working example with correct characters. |
Sort of. The modification I found out is exactly:
By these conversion, the original message
was modified to
(the last line "test" is the content of Among above, 3 is not due to Sympa, because new I'm not sure whether the conversion 1 and 2 were done by Sympa or the other part. |
@balert, can you check if the message is changed before when it is received by Sympa? To do it,
Thanks. |
thanks for the advice, I tried that out and I believe sympa is not causing it but something else instead. Sorry. The following is what I see in /var/spool/sympa/moderation:
|
It proves that any part before Sympa didn't modify the message. Then what'll happen if you approved that moderated message and let it be sent? |
I've created a new example with one eml file before moderation and then after delivery to the user. I've already talked to our email system administrator, she claims all the systems involved should not alter the message in general. |
However, in the first example, a new header field and a Content-Transfer-Encoding field were appended to the header. In particular former new field should not be added by Sympa: It is considered being added by any part after Sympa, either administered by her or not. I’ll check the attachment later. Thanks! |
On 1., please get the message held in the On 2., please investigate the system that is adding |
It looks like Sophos is adding the |
Oh, I just used the eml attached to the moderation request email I've received from sympa as list moderator, sorry for that. Find attached the eml file from /var/spool/sympa/moderation. Curiously the email seems to circle around dfn.de systems a lot, I will in parallel further investigate that with our email system admins. |
My educated guess would be that Sympa is not the culprit here. |
I agree: At least Sophos PureMessage alters message body, but CommuniGate Pro and AMaViSd-new look not (It's unsure about Sympa by now). What I feel curious is that, as I wrote before, alterations look occurred twice. |
yeah, thanks a lot for all your support, feel free to close this issue. |
I did some further investigation: My private account still receives the email with Content-Transfer-Encoding 8bit unchanged from the original, but still the body is broken. What I also noticed is that the email from the moderation folder does not yet contain the footer. So the footer is added afterwards, and also changes the email to multi-part mime. Afaik the email was not multi-part mime before addind the footer. So I guess it could be possible that this step messes things up. What do you guys think? I've just had a lengthy phone call with our email administrator, and we came to the conclusion, that it is highly unlikely that our systems cause this. Still I will also get in contact with our external whatsoever (entries with dfn.de in the headers) and ask them what ideas they might have. tl;dr: unfortunately I'm not (anymore) convinced that sympa is completely innocent here, even though definitely not responsible for all of the curious things going on. |
I don't think Sympa is exactly innocent, however also am not sure that PureMessage will never alter the message. Because we don't have evidence, either negative or positive. Below is the picture of message delivery. Can you get the message just before and after it goes through PureMessage?
|
look at the attached example, no PMX involved, but still broken body. This is delivered to my private mailbox, not business, therefore PMX is not involved here. It's different, so PMX might not be innocent, but still without PMX not everything is fine, therefore lets concentrate on whats left over first. We will investigate PMX in parallel, this is not your responsibility :-) |
Can you set the list moderated and get the message in moderation spool? And, can you get the message just before it is sent to SpamAssassin? |
If the message will prove the brakage of message is due to Sympa, please do these:
|
I have already provided an example from the moderation spool. My sending client for all the tests and the test message content was always the same, so I hardly believe there will be a difference if I create another example here, no? Regarding SpamAssassin, are you supposing I reconfigure my private mail server to circumvent SpamAssassin? No idea how I should catch the mail before SpamAssassin, and touching my mailserver is off the table, running well for too long :-) But I could add the email address of your choice (so the email provider of your choice as well) to the test list and send another test? |
OK. Add my email. |
done |
OK. I confirmed conversion 1 and 2 I described were done by your Sympa. The message was not altered as 3. Could you please check another instruction by me? |
I did, didn't solve the issue though. Attached is deplist. |
I couldn't reproduce on my side. See attached result. |
ok, I've created another example. I've sent the email directly to our sympa host, then I've added my googlemail address to the list, so in the example attached you can clearly see that sympa is the only host under our control involved and still the email content is broken. I count this as a proof that it is Sympa's fault. |
I see. I confirmed that the modification 3 described in my comment is not due to Sympa. BTW, could you please show the following configuration inbformation related to the list in question? I'll try reproducing the problem using them.
EDIT: I forgot:
If you have problem disclosing those information, please send them to my address. |
I'm running 78.7.1 (64-Bit) on Archlinux, this is what I've used to send the email. I'll send you the requested information via email. Thanks for looking into it. |
I couldn't reproduce the problem using your configurations. @balert , If possible, I want to confirm one last time:
By this, Sympa will append verbatim copy of any messages sent by Sympa itself to the file
#! /bin/sh
# Change this!
OUTPUT=/var/tmp/sendmail-output
args=
for arg; do
case "$arg" in
*\'*)
arg=`cat <<EOF | sed -e "s/'/'\\''/g"`
$arg
EOF
;;
*)
;;
esac
args="$args '$arg'"
done
echo ---- >> $OUTPUT
LANG=C date >> $OUTPUT
echo sendmail $args >> $OUTPUT
echo ---- >> $OUTPUT
tee -i -a $OUTPUT | eval "/usr/sbin/sendmail $args"
rc=$?
echo '' >> $OUTPUT
exit $rc
|
Sorry, that took me a while due to other tasks. Find attached the sendmail-output. |
Hi @balert, The process:
The results:
Note: Don't copy the message by copying & pasting its content: Inappropriate setting of console might break the texts. Instead, copy the file itself. A set of five files above is the result of one test case. If possible, could you please try also the other cases such as below?
and by each case, could you please get a set of files above? |
i've consolidated a complete set of files for you. It appears that the corruption happens between the moderation spool and sendmail. What can I do to solve this? Maybe I've just misconfigured something? |
I wrote:
Additionally, by each case, could you please show us where and how you changed it? |
I've tested Evolution, Thunderbird and hPronto (CGP) to send the test message. Then I opened each mail with each of those three clients and every combination of sender and receiver application showed corrupted characters. According to my already provided examples the problem is clearly caused by Sympa. My users are freaking out already, since they suffer from the problem for several months already. Have you had the chance to look at the Sympa code to find out what might cause this? Could you point out thing I could check on the Linux servers running Sympa? Maybe we've got a locales problem here? |
I and @racke have not yet been able to reproduce the behavior you reported. So I guess anything depending on your environment affects Sympa to make messages broken. Could you please check the other cases, and additionally, the other cases such as configuration with another option (e.g. changing footer_type, removing message_footer, ...)? |
@balert , |
thanks @ikedas. I tried this, but the patch did not help. However, I found out if I disable DMARC (dmarc_protection: mode=none) then it works! So the bug must be somewhere in the DMARC related procedures. Maybe this helps you further track down the bug. |
Did you restart Sympa services? |
Yes, that was it, I hadn't restarted Sympa, my bad. Now it works, thank you so much for your help. Great work! |
Terrific good work, both of you!! ❤️ |
X-Original-DMARC-Record header field may break message (#1113)
Version
sympa 6.2.60-1.el7 on CentOS Linux release 7.9.2009 (Core)
Installation method
rpm
Expected behavior
Correct display of german umlauts in mails from the list that have configured a message_footer.
Actual behavior
German umlauts (öäüÖÄÜß) get corrupted in the main email body (not the message_footer!) whenever we use any form of message_footer.
Example: Sending "test öäüÖÄÜß" as the email content will end up as "test öäüÖÄÜß​" in the email coming back from the sympa list.
Additional information
Changing footer_type seems not to help, the umlauts get corrupted in both cases (append and mime).
As soon as we remove the message_footer (clearing the message_footer field in the message_templates settings section) the umlauts get displayed correctly.
The text was updated successfully, but these errors were encountered: