Topic: Error running spf_to_greylist_whitelists.py
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Debian 7.9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====
When I try to add teamviewer.com to whitelist via spf_to_greylist_whitelists.py directly via
python spf_to_greylist_whitelists.py teamviewer.com or thru record in MySQL database I encounter this error
root@mail:~# python /opt/iredapd/tools/spf_to_greylist_whitelists.py teamviewer.com
* Parsing domains, 1 in total.
+ [teamviewer.com]
Traceback (most recent call last):
File "/opt/iredapd/tools/spf_to_greylist_whitelists.py", line 325, in <module>
qr = parse_spf(domain, spf, queried_domains=queried_domains, returned_ips=returned_ips)
File "/opt/iredapd/tools/spf_to_greylist_whitelists.py", line 243, in parse_spf
returned_ips=returned_ips)
File "/opt/iredapd/tools/spf_to_greylist_whitelists.py", line 176, in query_spf_of_included_domains
qr = parse_spf(domain, spf, queried_domains=queried_domains, returned_ips=returned_ips)
File "/opt/iredapd/tools/spf_to_greylist_whitelists.py", line 243, in parse_spf
returned_ips=returned_ips)
File "/opt/iredapd/tools/spf_to_greylist_whitelists.py", line 176, in query_spf_of_included_domains
qr = parse_spf(domain, spf, queried_domains=queried_domains, returned_ips=returned_ips)
File "/opt/iredapd/tools/spf_to_greylist_whitelists.py", line 243, in parse_spf
returned_ips=returned_ips)
File "/opt/iredapd/tools/spf_to_greylist_whitelists.py", line 178, in query_spf_of_included_domains
ips_spf = qr['ips']
TypeError: 'set' object has no attribute '__getitem__'
Has anyone had this issue before?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.