Subject: The mailing list for listmasters using Sympa
List archive
- From: Erik Olson <address@concealed>
- To: "address@concealed" <address@concealed>
- Subject: Re: [sympa-users] problems with DMARC?
- Date: Tue, 08 Apr 2014 00:29:27 +0000
I don't know if yahoo.com counts as a
bad sender, nor if yahoo, gmail, hotmail/outlook/live.com count as
bad recipients, but they're what I have to deal with,
unfortunately. And I'm not familiar with SIDF (though I am
familiar with SPF and have been crash-coursing DKIM today).
Any rate, merely removing the DKIM signature (and DomainKeys signature, as yahoo continues to do both) was not enough to stop the DMARC reject that yahoo added yesterday. Ultimately I tweaked the code to enhance anonymous mode the same way PayPal and others seem to be doing, by adding in the person's personal name to the front of the anonymous (list e-mail). So I can get "Erik Olson via GSAS Airstone <address@concealed>" into the From: line. I'm not really a perl programmer, so it's a bit of a hack. I'm also not looking at Internet standards every day, so I have no idea if there's a standard header for where to put the original From: when you don't really want to anonymize it. Would like to figure out how the 'other' e-mail list programs are getting away with this. The DMARC.org FAQ mentions an alternative approach of using the "X-OriginalAuthentication-Results" and slapping new DKIM, but I had to get our lists back and running immediately. Thanks for the suggestions & help! - Erik --- /home/erik/Drivers/Linux/sympa-6.1.19/src/lib/List.pm 2014-02-04 02:40:40.000000000 -0800 +++ ./List.pm 2014-04-07 14:36:14.340887995 -0700 @@ -43,6 +43,8 @@ use Sympa::Constants; use tools;
+ our @ISA = qw(Exporter); our @EXPORT = qw(%list_of_lists);
## Hide the sender if the list is anonymoused if ( $self->{'admin'}{'anonymous_sender'} ) {
+ my $originalFrom = $hdr->get('From'); + my @addresses = Email::AddressParser->parse($originalFrom); + foreach my $field (@{$Conf::Conf{'anonymous_header_fields'}}) { $hdr->delete($field); } - - $hdr->add('From',"$self->{'admin'}{'anonymous_sender'}"); + + if (0+@addresses) { + my @anonFrom = Email::AddressParser->parse($self->{'admin'}{'anonymous_sender'}); + if (0+@anonFrom) { + ## Grab the personal name from the original from and tack it on to the beginning of the 'anon' from + my $newPhrase = $addresses[0]->phrase . $anonFrom[0]->phrase; + my $oldAddr = $anonFrom[0]->address; + my $newFrom = Email::AddressParser->new($newPhrase, $oldAddr); + $hdr->add('From', $newFrom->format); + } else { + $hdr->add('From',"$self->{'admin'}{'anonymous_sender'}"); + } + } else { + $hdr->add('From',"$self->{'admin'}{'anonymous_sender'}"); + } + $hdr->add('X-OriginallyFrom',"$originalFrom"); ## Erik hack to make not-really anonymous my $new_id = "$self->{'name'}.$sequence\@anonymous"; $hdr->add('Message-id',"<$new_id>"); On 2014-04-07 23:24, Steve Shipway wrote: Sorry, by ‘we’ I meant my site (University of Auckland). I am not affiliated with the Sympa project other than as having submitted a few patches for consideration. Apologies if any confusion there.
To strip incoming DKIM headers, use something like:
remove_headers DKIM-Signature
in the list configuration. This is a comma separated list; this example strips the DKIM header.
If your sender is using SIDF with a badly designed record, or the recipient has a bad SIDF checking implementation, then the From line gets checked against SPF and fails, though the PRA checks Should use the Sender header (which identifies Sympa) instead of the From line. In this case you’d need to set the list to anonymise the sender by replacing the From line.
From: address@concealed
[mailto:address@concealed] On
Behalf Of Erik Olson
When you say "we", do you mean sympa as a
whole, or your site's implementation details?
-- --
Erik Olson Proudly joining 21st Century e-mail in 2013 |
-
[sympa-users] problems with DMARC?,
Miles Fidelman, 04/07/2014
-
Re: [sympa-users] problems with DMARC?,
Erik Olson, 04/07/2014
-
RE: [sympa-users] problems with DMARC?,
Steve Shipway, 04/07/2014
-
Re: [sympa-users] problems with DMARC?,
Erik Olson, 04/07/2014
-
RE: [sympa-users] problems with DMARC?,
Steve Shipway, 04/07/2014
-
Re: [sympa-users] problems with DMARC?,
Erik Olson, 04/08/2014
-
RE: [sympa-users] problems with DMARC?,
Steve Shipway, 04/08/2014
- Re: [sympa-users] problems with DMARC?, Erik Olson, 04/08/2014
- Re: [sympa-users] problems with DMARC?, Erik Olson, 04/08/2014
- RE: [sympa-users] problems with DMARC?, Steve Shipway, 04/08/2014
- Re: [sympa-users] problems with DMARC?, Adam Bernstein, 04/08/2014
- Re: [sympa-users] problems with DMARC?, Matt Taggart, 04/08/2014
- RE: [sympa-users] problems with DMARC?, Steve Shipway, 04/09/2014
- Re: [sympa-users] problems with DMARC?, Matt Taggart, 04/11/2014
- Re: [sympa-users] problems with DMARC?, Adam Bernstein, 04/11/2014
- RE: [sympa-users] problems with DMARC?, Steve Shipway, 04/24/2014
-
RE: [sympa-users] problems with DMARC?,
Steve Shipway, 04/08/2014
-
Re: [sympa-users] problems with DMARC?,
Erik Olson, 04/08/2014
-
RE: [sympa-users] problems with DMARC?,
Steve Shipway, 04/07/2014
-
Re: [sympa-users] problems with DMARC?,
Erik Olson, 04/07/2014
-
RE: [sympa-users] problems with DMARC?,
Steve Shipway, 04/07/2014
-
Re: [sympa-users] problems with DMARC?,
Erik Olson, 04/07/2014
Archive powered by MHonArc 2.6.19+.