Inhaltsverzeichnis dieser Seite

Funktion

Der Auftragstyp MailProxyUpdate ändert einen MailProxy-Eintrag.
Bitte beachte, dass der Name der Domain durch diesen Auftragstyp nicht geändert werden kann.
Mit dem Wert "merge" für das optionale Keyword <key> oder dem Query-Parameter keys[]= werden die Werte der Keywords greylisting, virus, bannedfiles, header, spam, blacklist, whitelist, excludelist, wenn sie im Auftrag nicht angegeben werden, beibehalten. Gilt nur für Wert CUSTOM.

Beschreibung

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

Request
{
   "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"
      ]
   }
}
Response
{
   "stid": "20190919-stid",
   "status": {
      "code": "S0512",
      "text": "MailProxy wurde erfolgreich aktualisiert.",
      "type": "SUCCESS"
   },
   "object": {
      "type": "MailProxy",
      "value": "somethingsomething73456.net"
   }
}

Auftragstyp-Code: 0512
Verwendet Objekte MailProxy,

Request
<request>
	<auth>
		<user>customer</user>
		<password>password</password>
		<context>4</context>
	</auth>
	<task>
		<code>0512</code>
		<mail_proxy>
			<target>example1695.com</target>
			<protection>CUSTOM</protection>
			<greylisting>
				<mode>DISABLED</mode>
			</greylisting>
			<virus>
				<mode>ACCEPT</mode>
			</virus>
			<banned_files>
				<mode>DISABLED</mode>
			</banned_files>
			<header>
				<mode>QUARANTINE</mode>
			</header>
			<spam>
				<modify_subject>1</modify_subject>
				<tag_header>5</tag_header>
				<spam>6</spam>
				<kill>10</kill>
				<mode>QUARANTINE</mode>
				</spam>
			<whitelist>
				<email>nospam@example2.com</email>
				<email>nospam2@example3.com</email>
			</whitelist>
			<blacklist>
				<email>spammer@example4.com</email>
				<email>spammer2@example5.com</email>
			</blacklist>
			<excludelist>
				<email>postmaster@example6.com</email>
			</excludelist>
			<domain>example1695.com</domain>
			<admin>customer@example.com</admin>
		</mail_proxy>
		<key>merge</key>
 	 </task>
</request>
Response
<response>
	<result>
		<data/>
		<status>
			<code>S0512</code>
			<text>MailProxy wurde erfolgreich aktualisiert.</text>
			<type>success</type>
			<object>
				<type>mailproxy</type>
				<value>example1695.com</value>
			</object>
		</status>
	</result>
	<ctid/>
	<stid>20150427-stid</stid>
</response>