-
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
No arc header added #575
Comments
I have checked my perl-Mail-DKIM (centoOS7 ) version: 0.53 I saw in web configuration that I could activate ARC list by list, but it did no change anything. |
Hi @Philippe34, |
Hi @ikedas Thanks. I helped myself with this documentation to configure DKIM and ARC (very well presented). I have not specified other arc parameters (by default dkim parameters) |
I put log_level 3. So I suppose I have to fill arc_srvid. Now I have: I have only Authentication-Results with my MTA which manage the mailboxes and this header is not transmitted to sympa and is added when messages are going out (in mailboxes or transmitted to gateway) Does this main that I have to install DKIM signing in the postfix that works with sympa ? |
Reading description in the manual, I think so. Sympa treats the messages with trustworthy DKIM signature as authenticated messages. [Edit] MTA which adds DKIM signature may not always be running in Sympa server, but it should add signature with |
I think that I have well Authentication-Results header in Sympa. My last post was not good. I print here the code source of the message in sympa archives
Should it be possible that sympa community post an arc header added by sympa ? which comes from Message.pm with this code: my @ars =
grep {m{^\s*\Q$srvid\E;}} $self->get_header('Authentication-Results');
unless (@ars) {
$log->syslog('debug2',
'ARC enabled but no Authentication-Results: %s;', $srvid);
return;
} |
Your authentication result has a domain xxx.ies.univ-montp2.fr , but you put “arc_srvid ies.univ-montp2.fr”. Though I don’t decide if it is fair according to ARC specification, the two things looks not the same. |
@jrlevine, do you have any suggestion? |
Your analysis is correct -- the message must have an Authentication-Results: header with the srvid listed in arc_srvid. I can't change it, ARC needs a trustworthy A-R header to build the ARC chain. |
So I put : arc_srvid xxx.ies.univ-montp2.fr. debug2 Sympa::Message::check_arc_chain() ARC enabled but no Authentication-Results: xxx.ies.univ-montp2.fr; |
Your MTA is misconfigured. All of the MTAs for a domain should put the same srvid in the A-R header, in your case probably umontpellier.fr. The error you're seeing is the one you get if the srvid in the A-R doesn't exactly match the srvid in the sympa config. mx.google.com is a generic name for thousands of Google MTAs, all of which put the same srvid so their ARC signatures work. |
Hi @jrlevine So I changed the Message.pm in : my @ars = by: When I'm doing this change, I have not : my @ars = BUT sympa no longer transmits any messages. |
Sorry my last post: |
Oh, OK, it hadn't occurred to me that someone might put a comment next to the srvid, but that is indeed valid. Try this: |
I have tried what you said. But, I still can not see the header. |
Without more clues it is hard to say what the problem is. I can assure you that the ARC code works for other people. Could you provide a complete unredacted copy of one of the A-R headers it doesn't recognize? |
I can provide this code source in the message I sent et I received by sympa. If sympa removes dkim_signature before adding a new, can it make arc not working ? |
Deleting the DKIM header shouldn't make any difference. |
My arc_srvid is: mauka.ies.univ-montp2.fr |
Just to say this test that I've tried. my @ars =
I sent a message After that, sympa is no longer able to send any messages. |
ARC works fine for me so there is clearly something else going on that you haven't figured out. In particular, if the A-R lookup fails, Sympa should go ahead and send the message without ARC. |
OK @jrlevine arc is not for me. For my curiosity, could you post arc headers ? Il is not documented. |
OK But I was curious with ARC header added by sympa. Please .. |
Hi @Philippe34 and @jrlevine ,
Could you please check if this patch would solve this problem? Thanks. |
I've patched Message.pm. I can see in /var/spool/sympa/tmp stderr files: #cat 15584.stderr I think having this non zero stderr explains that my sympa is no longer delivers any messages. In sympa.log, I don't I send you my sympa.log with a grep on : arc_ I had again to revert my VM to clean this stderr |
Hm, it looks like a parameter isn't defaulting correctly. What version of Sympa are you using? |
I'm using the version 6.2.40 |
Hi, |
Hi @ikedas I have just this log in /var/spool/tmp/20176.stderr: When I'm looking at the code source of the message, there is still no ARC headers. |
I added debug log. Could you please try again? |
I have applied the patch with debug log. I can see the "ARC skipped". |
The problem could be explained by : Use of uninitialized value $ardom in lc at /usr/share/perl5/vendor_perl/Mail/DKIM/ARC/Signer.pm line 255 Signer.pm does not match comments. With amavisd-new, I should have: And the code is: if ( $header =~ m/^Authentication-Results:/ ) { Should it possible that sympa normalizes my A-R header (removing the comment) ? |
I reported a bug as RT#129066. |
If I do the modification I suggested in Signer.pm, it works now for me !
Thank you Soji |
Hi @Philippe34, MBRADSHAW@cpan says:
Could you please check the new Mail-DKIM in repo (and Mail::AuthenticationResults)? Thanks! |
I removed the perl-Mail-DKIM package and I followed the instructions to install the Mail-DKIM in github repo (I had to install dependancies) cpan[1]> i Mail::DKIM cpan[2]> i Mail::AuthenticationResults I sent and I received fine my email and the ARC headers:
For me, it works fine. Just something that confused with "arc_feature on|off" in sympa.conf If sympa.conf : arc_feature off and config list: arc_feature on -> arc is on This new arc working should be confirmed by other people |
Thanks! I'll tell it to cpan. I'll test it again when the new Mail-DKIM will be released. |
Now that my sympa provides ARC headers, I would like to give you my feedback with gmail anf Yahoo subscribers. When a subscriber of my domain writes to the list, gmail and yahoo subscribers receive well the message. When gmail subscriber writes to the list, whatever DKIM or ARC are on or off, he does not receive the message (no bounce, no sympa errors, not in spam mailbox). It seems that google destroys the message without any warnings. Yahoo does the same thing, but Sympa receives bounces and we know that the message is on errors. I'm surprised that, in my case, ARC did not change anything with google, because google uses ARC (maybe google does not like my amavisd-new or the new Mail-DKIM ? I don't know) That is the results of my tests. I think other people will have best results. |
You are sure that the email doesn't end up in SPAM for Gmail? |
I've cheched my Spam for Gmail and I only see the message sent by the Yahoo subscriber (it's me). |
Do your mail logs confirm successfully delivery to Gmail? |
Yes I can verify in mail logs that the postfix gateway of my domain delivers messages to Gmail adress. |
I guess ARC chain has been broken from the view of google. That is, I think that the (new) ARC seal Sympa added considers only A-R by ies.univ-montp2.fr server which is not trusted by gmail.com, I.e. the server of originators. |
In fact, it hides it: as Gmail already has the message in "Sent" folder, it assumes that the user doesn't have to read it again (or something like that). See https://webapps.stackexchange.com/questions/73779/messages-sent-to-mailing-list-not-shown-in-gmail/73805#73805 Gmail ¯\_(ツ)_/¯ |
Thank you @ldidry for this information. It could be the good explanations. |
Everything is good with Gmail (cv=pass)
|
ARC: Comment in Authentication-Results field prevents check on srvid (See #575)
Mail-DKIM 0.55 has been released. I have merged accumulated fixes on Sympa and they will be included in the next release. @Philippe34, if you don't see problems or questions anymore, please close this issue. Thank you so much for reporting bug and confirming fixes! |
Thank you very much to the Sympa community and Soji for all you do to advance Sympa. I feel it as a living project. PS: I might have another problem to report (mod_proxy_fcgi), but I still have to test. This is an other story ... 😉 |
Hi,
I have upgraded sympa 6.2.36 to 6.2.40.
I already use DKIM features and I want to have arc seals added on outgoing messages.
I added in sympa.conf : arc_feature on
My sympa adds correctly dkim signature as this:
I can see the Authentication-Results added by the MTA:
But I have no ARC-Seal and Arc-message-Signature added as google does:
What headers should I have been added by sympa
What could be wrong with arc in my sympa and how to debug ?
Thank you
The text was updated successfully, but these errors were encountered: