Symptoms
-
Changing IP address as described in the article How to change the IP address of Plesk server? fails with the following error:
Generating DB update script...
ERROR:root:Exception occurred
Traceback (most recent call last):
File "/opt/psa/bin/reconfigurator", line 512, in <module>
main()
File "/opt/psa/bin/reconfigurator", line 504, in main
reconfigure(mapping)
File "/opt/psa/bin/reconfigurator", line 335, in reconfigure
sqlfile, affected_domains = generateUpdateSQL(mapping)
File "/opt/psa/bin/reconfigurator", line 296, in generateUpdateSQL
ip = IPAddr(match_res['addr'])
File "/opt/psa/bin/reconfigurator", line 143, in init
raise Exception("%s: is neither ipv6 nor ipv4 address (%s)" % (addr, e))
Exception: 203: is neither ipv6 nor ipv4 address (illegal IP address string passed to inet_pton)
Cause
Incorrect configuration of SPF records. Space or tabulation is present in the IP address filed of SPF record.
Resolution
-
Get the list of all domains having an IP address in SPF record:
# plesk db “select host,val from dns_recs where type=’TXT’ and val like ‘v=spf1%ip%'”
-
Review the IP addresses from the list for space or tabulation.
-
Adjust incorrect records for the affected domains from Domains > example.com > DNS Settings.