NAME

Sietima::Role::NoSpoof::DMARC - send out messages from subscribers' addresses only if DMARC allows it

VERSION

version 1.1.2

SYNOPSIS

my $sietima = Sietima->with_traits('NoSpoof::DMARC')->new(\%args);

DESCRIPTION

A Sietima list with this role applied will replace the From address with its own post_address (this is a "sub-role" of WithPostAddress) if the originating address's DMARC policy requires it.

This will make the list DMARC-compliant while minimising the changes to the messages.

The original From address will be preserved in the Original-From header, as required by RFC 5703.

Some more details

DMARC requires "identifier alignment", essentially the MAIL FROM (envelope) and the header From must have the same domain (or at least belong to the same "organisational domain", i.e. be both under a common non-top-level domain, roughly).

Therefore, a mailing list that forwards a message sent from a DMARC-enabled domain, must rewrite the From header, otherwise the message will be discarded by recipient servers. If the originating domain does not publish a DMARC policy (or publishes a none policy), the mailing list can leave the From as is, but should add a Sender header with the list's own address.

This role does exactly that.

AUTHOR

Gianni Ceccarelli <dakkar@thenautilus.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2023 by Gianni Ceccarelli <dakkar@thenautilus.net>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.