> What are the two patches that need to be appied? (I don't see them in
> the plugins documentation).

I've updated the documentation in the Wiki:

Right now, this plug-in always returns DECLINED because recipient-
>host and sender->host are always empty
when a email address with IDN arrives into qpsmtpd. A simple patch is
needed for Qpsmtpd::Address method canonify(), like
replacing this line:

my $subdomain = '(?:[a-zA-Z0-9](?:[-a-zA-Z0-9]*[a-zA-Z0-9])?)';

with this line:

my $subdomain = '([^\.]{2,})?';

Also, the method Qpsmtpd::Address method host() need to be patched in
order to allow overwriting of the host:

sub host {
    my ($self, $host) = @_;
    if ($host) { $self->{_host} = $host; } else { return $self-
>{_host}; }
}

To apply this two modifications, simply edit lib/Qpsmtpd/Address.pm
and search for the lines, comment them out and replace them with the
new ones.

Regards, Marc

Reply via email to