Third-party gateway management
Manage inbound and outbound email routing through a third-party gateway.
This feature is available only in the AI Premium Edition. For details about different editions, see Alibaba Mail Editions.
Important: Confirming Gateway Activation
Enabling a third-party gateway immediately changes your email routing path. An incorrect configuration can disrupt email delivery. Ensure all settings are accurate before proceeding. We recommend activating the gateway during off-peak hours to monitor and resolve potential issues.
Log on to the Alibaba Mail domain admin platform with the administrator account (postmaster).
Standard edition
Domestic edition
Go to Integration > Third-party Gateway.
Outbound gateway
For example, you can use a third-party email data loss prevention (DLP) gateway to ensure that your outbound emails comply with your content policies.

Enter the Gateway name, Gateway address, and Verification email address. After a successful test connection, enable the gateway and click Save.
Gateway name: Up to 200 characters long.
Gateway address: Supports both TLS and non-TLS connections, depending on your gateway's configuration; a TLS connection is attempted by default.
Verification email address: Used to send a test email to verify the gateway configuration.
Test connection: This test validates only one IP address at a time. If you have multiple IP addresses or an IP range, we recommend configuring and testing a single IP address first before adding the others.

After the configuration is saved, you can disable or modify it.

Inbound gateway
For example, you can use a third-party anti-spam gateway to enhance your email security.

The inbound gateway is deployed behind the Alibaba Mail receiving service, so you do not need to modify your MX records. This allows you to retain the benefits of our global intelligent DNS network for inbound mail.
Enter the Gateway name, Gateway address (including the gateway ingress address and gateway egress address), and Verification email address. After a successful test connection, enable the gateway and click Save.
Gateway name: Up to 200 characters long.
Gateway address: Supports both TLS and non-TLS connections, depending on your gateway's configuration; a TLS connection is attempted by default.
Verification email address: Used to send a test email to verify the gateway configuration.
Test connection: This test validates only one IP address at a time. If you have multiple IP addresses or an IP range, we recommend configuring and testing a single IP address first before adding the others.

After the configuration is saved, you can disable or modify it.