Skip to content

Commit

Permalink
Mail loop for sympa-request address (sympa-community#1018)
Browse files Browse the repository at this point in the history
As of Postfix 2.3, Content of Return-Path: pseudo-header field added by pipe(8) for null envelope sender became "MAILER-DAEMON".  Empty `null_sender` option will prevent this behavior.
As a workaround, the uppercase "<MAILER-DAEMON>" will be treated as null envelope sender.
  • Loading branch information
ikedas committed Oct 14, 2020
1 parent 3ff0bc1 commit e619fae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/Sympa/Message.pm
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ sub new {
my $addr = $1;
if ($addr =~ /<>/) { # special: null envelope sender
$self->{'envelope_sender'} = '<>';
} elsif ($addr =~ /<MAILER-DAEMON>/) {
# Same as above, but a workaround for pipe(8) of Postfix 2.3+.
$self->{'envelope_sender'} = '<>';
} else {
my @addrs = Mail::Address->parse($addr);
if (@addrs
Expand Down Expand Up @@ -4377,6 +4380,10 @@ Prepending C<Return-Path:> is available by default.
Add C<R> to the C<flags=> attributes in master.cf.
Additionally with Postfix 2.3 or later, add an empty C<null_sender=>
attribute.
Or "null envelope sender" would be replaced with C<E<lt>MAILER-DAEMONE<gt>>.
=back
=item Exim
Expand Down

0 comments on commit e619fae

Please sign in to comment.