The bare postmaster address is case-insensitive
Per rfc2821, sec 4.5.1 and rfc5321, sec 4.5.1. Signed-off-by: Pedro Melo <melo@simplicidade.org>
This commit is contained in:
parent
6b6581fbf5
commit
8e5bd5aa69
@ -210,7 +210,7 @@ sub canonify {
|
|||||||
return "" if $path eq "";
|
return "" if $path eq "";
|
||||||
|
|
||||||
# bare postmaster is permissible, perl RFC-2821 (4.5.1)
|
# bare postmaster is permissible, perl RFC-2821 (4.5.1)
|
||||||
return ("postmaster", undef) if $path eq "postmaster";
|
return ("postmaster", undef) if $path =~ m/^postmaster$/i;
|
||||||
|
|
||||||
my ($localpart, $domainpart) = ($path =~ /^(.*)\@($domain)$/);
|
my ($localpart, $domainpart) = ($path =~ /^(.*)\@($domain)$/);
|
||||||
return (undef) unless defined $localpart;
|
return (undef) unless defined $localpart;
|
||||||
|
Loading…
Reference in New Issue
Block a user