Symptoms

A SpamExperts-related task in OA task manager fails with an error like below:

Task name               APS application 'SpamExperts Integration', id 101, instance 10001 ->     service 'context', instance 10001: executing configuration script
Last execution output   
Execution of configuration script for instance with id 10001 of service with id context of instance with id 10001 of application with id 101 failed - returned value: -1 output: '' errors: '[Domains] Redirecting configure request to install handler...
[Domains] Install Start
Checking all currently assigned domains in subscription..
Requesting current MX record for 'domain.com'
Adding route 'av.provider.com' to the collection of MX records.
Adding route 'mx-backup.provider.com' to the collection of MX records.
Cleaning up array.
Returning multiple custom MX records
Requesting current MX record for 'domain.tld'
Checking for 'DNS_MX1_SUBSTITUTE_domain.tld'...
Checking for global 'DNS_MX1_SUBSTITUTE'...
Returning global MX record
Comparing old with new domains.
Processing all new domains.
Creating domain 'domain.com' with email: 'support@domain.com' and destination: 'Array'
Requesting 'domain.com' to be added to the spamfilter (destination: 'Array').
addDomain Data: {"domain":"domain.com","destinations":["av.provider.com","mx-backup.provider.com"]}
[API]IDN encoding values for 'domain'
[API]Converting value for 'destinations' to an JSON array
[API]Going to call: http://s1-se.provider.com/api/domain/add/format/json/domain/domain.com/destinations/%5B%22av.provider.com%22%2C%22mx-backup.provider.com%22%5D
[HTTP]Going to request 'http://s1-se.provider.com/api/domain/add/format/json/domain/domain.com/destinations/%5B%22av.provider.com%22%2C%22mx-backup.provider.com%22%5D'
[HTTP]Doing authenticated HTTP request with username 'poaaps'
[HTTP]Using normal password'
[HTTP]Responsecode: 200
[API]Returned errors: a:2:{i:0;s:22:"Domain already exists.";i:1;s:35:"Failed to add domain 'domain.com'";}
[API]Unhandled API error
[API]Unhandled API error
Adding domain 'domain.com' to antispam has failed
Domain 'domain.com' could not be added.
The subscription has (partially) failed. Unable to proceed!

Another possible error is:

[API]Returned errors: a:2:{i:0;s:66:"The domain you're trying to add (domain.com) is already exists";i:1;s:37:"Failed to add domain 'domain.com'";}

Cause

Domain already exists in SpamExperts Control Panel, such errors could appear if it was manually added to SpamExperts.

Resolution

Remove the 'domain.com' domain from SpamExperts panel or contact SpamExperts support for assistance. After that re-submit the failed task.

Internal content