Good day.
Got some troubles with PMG WebUI and Cyrillic characters.
Now tested at our production pmg/6.3-4(with subscription) and fresh installed 6.3-4(without subscription).
This problem was in the past, but we decided report it now.
But in UI incorrect symbols
Double click at this object after that
Browser debugger gave me that
Got some troubles with PMG WebUI and Cyrillic characters.
Now tested at our production pmg/6.3-4(with subscription) and fresh installed 6.3-4(without subscription).
This problem was in the past, but we decided report it now.
Bash:
root@mx01:~# locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
root@mx01:~# cat /etc/pmg/user.conf
#Unix Superuser
root:1:0::root:::::
Bash:
root@mx01:~# cat /etc/pmg/user.conf
#Unix Superuser
root:1:0::root:::::
#Коммтест
t.test:1:0:$5$6R9KWT3F$9VtVsgEqGdusORJoR/nz/KJIecTm4SmTUQrywDDbih0:admin:t.testov@foobar.local:Тест:Тестов::
But in UI incorrect symbols
Double click at this object after that
Browser debugger gave me that
Bash:
Created with pmg gui
# cat /etc/pmg/ldap.conf
ldap: ActiveDirectory
comment AD domain
server1 10.205.255.123
accountattr sAMAccountName
basedn DC=domain,DC=ru
binddn ldap_user@domain.ru
bindpw *******
mailattr mail,proxyAddresses
mode ldap
server2 10.205.255.223
verify 1
When we got letter with wrong receiver (first letter "e" not latin - cyrillic "e.dedede@***") process pmg-smtp-filter crashed and letter stored in queue.
And in log got that
As I understant it can not check receiver using imported ldap db.
/usr/share/perl5/PMG/LDAPCache.pm
And in log got that
Code:
дек 01 13:48:11 mx02 pmg-smtp-filter[1035]: Wide character in subroutine entry at /usr/share/perl5/PMG/LDAPCache.pm line 638.
дек 01 13:48:11 mx02 pmg-smtp-filter[1035]: WARNING: Wide character in print at /usr/share/perl5/PMG/SMTP.pm line 48.
дек 01 13:48:11 mx02 pmg-smtp-filter[1035]: fast exit because of errors (free 310657024 bytes)
дек 01 13:48:11 mx02 postfix/lmtp[31158]: D445F60A42: to=<е.deli************>, relay=127.0.0.1[127.0.0.1]:10024, delay=348223, delays=348223/0/0.01/0.09, dsn=4.4.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.4.0 detected undelivered mail to <е.de*** (in reply to end of DATA command))
As I understant it can not check receiver using imported ldap db.
/usr/share/perl5/PMG/LDAPCache.pm
Perl:
sub mail_exists {
my ($self, $mail) = @_;
my $dbh = $self->{dbstat}->{mails}->{dbh};
return 0 if !$dbh;
$mail = lc($mail);
my $res;
$dbh->get($mail, $res); <== 638 line
return $res;
}
Last edited: