{ "id":"/axapi/v3/slb/template/smtp/{name}", "type":"object", "node-type":"list", "title":"smtp", "partition-visibility":"shared", "description":"SMTP", "properties":{ "name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"SMTP Template Name", "optional":false }, "server-domain":{ "type":"string", "format":"host", "minLength":1, "maxLength":254, "default":"mail-server-domain", "partition-visibility":"shared", "description":"Config the domain of the email servers (Server's domain, default is \"mail-server-domain\")", "optional":true }, "service-ready-msg":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "default":"ESMTP mail service ready", "partition-visibility":"shared", "description":"Set SMTP service ready message (SMTP service ready message, default is \"ESMTP mail service ready\")", "optional":true }, "client-starttls-type":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'optional': STARTTLS is optional requirement; 'enforced': Must issue STARTTLS command before mail transaction; ", "enum":[ "optional", "enforced" ], "optional":true }, "server-starttls-type":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'optional': STARTTLS is optional requirement; 'enforced': Must issue STARTTLS command before mail transaction; ", "enum":[ "optional", "enforced" ], "optional":true }, "command-disable":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "disable-type":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'expn': Disable SMTP EXPN commands; 'turn': Disable SMTP TURN commands; 'vrfy': Disable SMTP VRFY commands; ", "enum":[ "expn", "turn", "vrfy" ] } } } ] }, "LF-to-CRLF":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Change the LF to CRLF for smtp end of line", "optional":true }, "error-code-to-client":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Would transfer error code(554) to client, when getting it from connection establishing with real-server", "optional":true }, "client-domain-switching":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "switching-type":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'contains': Specify domain name string if domain contains another string; 'ends-with': Specify domain name string if domain ends with another string; 'starts-with': Specify domain string if domain starts with another string; ", "enum":[ "contains", "ends-with", "starts-with" ] }, "match-string":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":31, "partition-visibility":"shared", "description":"Domain name string" }, "service-group":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "$ref":"/axapi/v3/slb/service-group", "description":"Select service group (Service group name)" } } } ] }, "template":{ "type":"object", "properties":{ "logging":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "$ref":"/axapi/v3/slb/template/logging", "description":"Logging template (Logging Config name)" } } }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true }, "user-tag":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Customized tag", "optional":true } }, "object-keys":[ "name" ], "required":[ "name" ] }