Topic: Error sending to domain mailing address
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.2 PGSQL edition
- Deployed with iRedMail Easy or the downloadable installer? Downloadable
- Linux/BSD distribution name and version: Ubuntu Ubuntu 22.04.2 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
When sending an email to the address all@mydomain, the program returns an error.
SMTP ошибка (451): Невозможно добавить получателя "all@mydomain" (4.3.0 <info@mydomain>: Temporary lookup failure)
The following appears in /var/log/mail.log
Feb 18 10:09:51 mail postfix/proxymap[516078]: warning: pgsql query failed: fatal error from host 127.0.0.1:5432: ERROR: character with byte sequence 0xd1 0x81 in encoding "UTF8" has no equivalent in encoding "LATIN1"?
Feb 18 10:09:51 mail postfix/submission/smtpd[517702]: warning: proxy:pgsql:/etc/postfix/pgsql/virtual_alias_maps.cf lookup error for "all@mydomain"
Feb 18 10:09:51 mail postfix/submission/smtpd[517702]: NOQUEUE: reject: RCPT from mail.mydomain[127.0.0.1]: 451 4.3.0 <all@mydomain>: Temporary lookup failure; from=<info@mydomain> to=<all@mydomain> proto=ESMTP helo=<localhost>
Feb 18 10:09:51 mail roundcube: <9cts9l62> PHP Error: Invalid response code received from server (POST /mail/?_task=mail&_unlock=loading1771409234699&_framed=1&_action=send)
Feb 18 10:09:51 mail roundcube: <9cts9l62> SMTP Error: Failed to add recipient 'all@mydomain'. 4.3.0 <all@mydomain>: Temporary lookup failure (Code: 451) in /opt/www/roundcubemail-1.5.3/program/lib/Roundcube/rcube.php on line 1778 (POST /mail/?_task=mail&_unlock=loading1771409234699&_framed=1&_action=send)sudo -u postgres psql -d vmail -c "SHOW SERVER_ENCODING;"
server_encoding
-----------------
UTF8
(1 row)
sudo -u postgres psql -d vmail -c "SHOW CLIENT_ENCODING;"
client_encoding
-----------------
UTF8
(1 row)
sudo -u postgres psql -d vmail -c "SELECT datname, pg_encoding_to_char(encoding) FROM pg_database WHERE datname = 'vmail';"
datname | pg_encoding_to_char
---------+---------------------
vmail | UTF8
(1 row)
To the file /etc/postfix/pgsql/virtual_alias_maps.cf added option = '-c client_encoding=UTF8'
The error still persists.
Thanks in advance for your help.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.