无法连接到SMTP服务器 - 创建租户时

问题描述 投票:1回答:1

在针对运行Deep Security / 11.3.184的系统创建租户时,我收到以下响应:

{
    "message":"Unable to connect to SMTP server. Please verify the SMTP configuration in System Settings."
}

我正在调用的API资源是'/ tenants',HTTP方法是POST。请求的主体(匿名的一些细节)是:

{
    "administrator": {
        "active": true,
        "emailAddress": "******@********.***",
        "fullName": "****** ****",
        "locale": "en-US",
        "password": "*******",
        "primaryContact": true,
        "receiveNotifications": false,
        "roleID": 1,
        "timeFormat": "24",
        "timeZone": "UTC",
        "username": "admin"
    },
    "databaseServerID": 1,
    "description": "1190000206_11174_njkhnjklh",
    "locale": "en-US",
    "modulesVisible": [
        "all"
    ],
    "name": "1190000206_11174_njkhnjklh",
    "timeZone": "UTC"
}

有什么理由可以解决这种反应?注意我不管理DeepSecurity应用程序,我要求作为第三方,因此需要将详细信息转发给管理DeepSecurity应用程序的团队。

deepsecurity
1个回答
1
投票

当趋势科技服务器深度安全防护系统管理中心上没有配置的SMTP服务时,会发生此响应,并且创建租户的请求需要确认电子邮件。您的请求正文看起来没问题,但您需要将confirmationRequired查询参数设置为false:

https://dsm.example.com:4119/api/tenants?confirmationRequired=false

如果您使用的是SDK,则会在TenantApi.createTenant方法(或函数)的参数中设置,例如在Python中:

tenants_api.create_tenant(tenant, api_version, confirmation_required=False)

可以在这里找到一个例子:https://automation.deepsecurity.trendmicro.com/article/11_3/create-and-manage-tenants#createtenant

希望有所帮助。 BTW我是Deep Security内容开发人员 - 感谢您的提问!

© www.soinside.com 2019 - 2024. All rights reserved.