Table of Contents

Function

The MailproxyInfo task displays the MailProxy data of a domain.

Description

Route: GET /mailproxy/{domain}
There is no need to send a body.

Request
{
}
Response
{
   "stid": "20190919-app3-dev-8027",
   "status": {
      "code": "S0514",
      "text": "MailProxy data has been inquired successfully.",
      "type": "SUCCESS"
   },
   "object": {
      "type": "MailProxy",
      "value": "example.com"
   },
   "data": [
      {
         "domain": "example.com",
         "created": "2019-09-19T12:40:02.000+0200",
         "updated": "2019-09-19T12:45:49.000+0200",
         "owner": {
            "context": 4,
            "user": "exampleuser"
         },
         "updater": {
            "context": 4,
            "user": "customer"
         },
         "target": "example1.com",
         "admin": "customer@example.com",
         "protection": "CUSTOM",
         "greylisting": false,
         "virus": "ACCEPT",
         "bannedFiles": "ACCEPT",
         "header": "DISABLED",
         "spam": {
            "modifySubject": false,
            "tagHeader": -555,
            "spam": 5.5,
            "kill": 555,
            "quarantineDigestInterval": 1440
         },
         "whitelist": {
            "emails": [
               "person2@good-example.com",
               "someone-else2@company123.net"
            ]
         },
         "blacklist": {
            "emails": [
               "bad-person2@example.de",
               "someone-bad2@company987.net"
            ]
         },
         "excludelist": {
            "emails": [
               "admin@example.com",
               "hostmaster@example.com"
            ]
         }
      }
   ]
}


Task code: 0514
Uses MailProxy object

Request
<request>
	<auth>
		<user>customer</user>
		<password>password</password>
		<context>104</context>
	</auth>
	<owner>
		<user>subuser</user>
		<context>104</context>
	</owner>
	<task>
		<code>0514</code>
		<mail_proxy>
			<domain>example1695.com</domain>
		</mail_proxy>
		<reply_to>customer@example.com</reply_to>
		<ctid>customer-transaction-id</ctid>
	</task>
</request>
Response
<response>
	<result>
		<data>
			<mail_proxy>
				<target>example1695.com</target>
				<admin>customer@example.com</admin>
				<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.0</tag_header>
					<spam>6.0</spam>
					<kill>10.0</kill>
					<quarantine_digest_interval>1440</quarantine_digest_interval>
					<mode>QUARANTINE</mode>
				</spam>
				<whitelist>
					<email>nospam2@example3.com</email>
					<email>nospam@example2.com</email>
				</whitelist>
				<blacklist>
					<email>spammer2@example5.com</email>
					<email>spammer@example4.com</email>
				</blacklist>
				<domain>example1695.com</domain>
				<created>2015-04-27 13:40:32</created>
				<updated>2015-04-27 13:40:32</updated>
				<owner>
					<user>customer</user>
					<context>4</context>
				</owner>
				<updater>
					<user>customer</user>
					<context>1018945</context>
				</updater>
			</mail_proxy>
		</data>
		<status>
			<code>S0514</code>
			<text>MailProxy data has been inquired successfully.</text>
			<type>success</type>
			<object>
				<type>mailproxy</type>
				<value>example1695.com</value>
			</object>
		</status>
	</result>
	<ctid>customer-transaction-id</ctid>
	<stid>20150427-app1-test-6217</stid>
</response>