Topic: ireadpd problem with whitelist after uprade to 4.1
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.2 originally, manually updated to 1.3
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: CentOS 8.2
- 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.
====
I recently upgraded iredapd from version 3.6 to 4.0 and then to 4.1. Prior to the upgrade, I had only one entry for one sender address in the whitelist (added with wblist_admin.py --add --whitelist whitelisted@sender.domain), and it was working as intended.
After the upgrade, it seems that mails from a whitelisted sender are rejected and that the whitelist cannot be managed with the wblist_admin.py script.
When a mail was received from the whitelisted sender, I had the following in the logs:
Jul 04 07:31:55 mx postfix/postscreen[1227882]: CONNECT from [40.107.94.67]:36599 to [aaa.xxx.yyy.zzz]:25
Jul 04 07:32:01 mx postfix/postscreen[1227882]: PASS NEW [40.107.94.67]:36599
Jul 04 07:32:02 mx postfix/smtpd[1227913]: connect from mail-mw2nam10on2067.outbound.protection.outlook.com[40.107.94.67]
Jul 04 07:32:03 mx postfix/smtpd[1227913]: Anonymous TLS connection established from mail-mw2nam10on2067.outbound.protection.outlook.com[40.107.94.67]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Jul 04 07:32:04 mx python3[1153943]: iredapd Whitelisted: wblist=(1, 1, 'W')
Jul 04 07:32:04 mx python3[1153943]: iredapd [40.107.94.67] RCPT, whitelisted@sender.domain -> recipient@my.domain, OK [sasl_username=, sender=whitelisted@sender.domain, client_name=mail-mw2nam10on2067.outbound.protection.outlook.com, reverse_client_name=mail-mw2nam10on2067.outbound.protection.outlook.com, helo=NAM10-MW2-obe.outbound.protection.outlook.com, encryption_protocol=TLSv1.2, encryption_cipher=ECDHE-RSA-AES256-GCM-SHA384, server_port=25, process_time=0.1028s]
Jul 04 07:32:04 mx postfix/smtpd[1227913]: 49zL782vHcz7cvsk: client=mail-mw2nam10on2067.outbound.protection.outlook.com[40.107.94.67]
Jul 04 07:32:04 mx postfix/cleanup[1227931]: 49zL782vHcz7cvsk: message-id=<DNDMK7YX1BU4.DCGSA0IRR7NC2@RD0004FFDC6C00>
Jul 04 07:32:06 mx postfix/smtpd[1227913]: warning: problem talking to server 127.0.0.1:7777: Success
Jul 04 07:32:06 mx postfix/smtpd[1227913]: 49zL782vHcz7cvsk: reject: END-OF-MESSAGE from mail-mw2nam10on2067.outbound.protection.outlook.com[40.107.94.67]: 451 4.3.5 <END-OF-MESSAGE>: End-of-data rejected: Server configuration problem; from=<whitelisted@sender.domain> to=<recipient@my.domain> proto=ESMTP helo=<NAM10-MW2-obe.outbound.protection.outlook.com>
Jul 04 07:32:06 mx postfix/smtpd[1227913]: disconnect from mail-mw2nam10on2067.outbound.protection.outlook.com[40.107.94.67] ehlo=2 starttls=1 mail=1 rcpt=1 data=0/1 quit=1 commands=6/7
Trying to check the whitelist produced an error(?)
[root@mx /opt/iredapd/tools]# python3 wblist_admin.py --list --whitelist
* Establishing SQL connection.
* List all inbound whitelist for account: @.
<memory at 0x7f3163dcfb88>
Doing the same with the old iredapd 3.6 succeeds:
[root@mx /opt/iRedAPD-3.6/tools]# python2 wblist_admin.py --list --whitelist
* Establishing SQL connection.
* List all inbound whitelist for account: @.
whitelisted@sender.domain
I can also delete the entry using python2/iredapd 3.6:
[root@mx /opt/iRedAPD-3.6/tools]# python2 wblist_admin.py --delete --whitelist whitelisted@sender.domain
* Establishing SQL connection.
* Delete inbound whitelist for account: @.
- Deleted: whitelisted@sender.domain
But adding an entry to the whitelist with python3/iredapd 4.1 results in an error:
[root@mx /opt/iredapd/tools]# python3 wblist_admin.py --add --whitelist test@test.com
* Establishing SQL connection.
* Add inbound whitelist for account: @.
* Add senders: test@test.com
'memoryview' object has no attribute 'decode'
Thanks and please let me know if any more info is needed to help fix the issue.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.