Help Center
Login Sign up
  1. Home
  2. API reference
  3. API documentation (JSON/XML)
  4. Tasks
  5. MailProxy tasks

Mailproxy update

API reference (XML/JSON) · Updated 2023-09-18

Function

The MailproxyUpdate task changes a MailProxy entry.
Please note that the name of the domain cannot be changed with this type of request.
With the "merge" value for the optional <key> keyword or the query parameter keys[]=, the values of the keywords greylisting, virus, bannedfiles, header, spam, blacklist, whitelist, excludelist, if not specified in the request, are kept. Applies only to CUSTOM value.

Description

Route: PUT /mailProxy/{domain} or PUT /mailProxy/herede.de?keys=merge

{
   "domain": "Example.com",
   "target": "example1.com",
   "admin": "new.joe@example.com",
   "protection": "CUSTOM",
   "greylisting": "ENABLED",
   "virus": "ACCEPT",
   "bannedFiles": "ACCEPT",
   "spam": {
      "modifySubject": false,
      "tagHeader": "-555",
      "spam": "5.5",
      "kill": "555"
   },
   "whitelist": {
      "emails": [
         "person2@good-example-domain.com",
         "someone-else2@company123.net"
      ]
   },
   "blacklist": {
      "emails": [
         "bad-person2@example.de",
         "someone-bad2@company987.net"
      ]
   },
   "excludelist": {
      "emails": [
         "admin@somethingsomething73456.net",
         "hostmaster@somethingsomething73456.net"
      ]
   }
}
{
   "stid": "20190919-app2-dev-16525",
   "status": {
      "code": "S0512",
      "text": "MaMailProxy updated successfully.",
      "type": "SUCCESS"
   },
   "object": {
      "type": "MailProxy",
      "value": "somethingsomething73456.net"
   }
}