Access policy

Updated at:

Manage user sign-in permissions and security policies.

Important

For account security, new Alibaba Mail subscriptions include a default, enabled blacklist policy named "Third-party Client Access Policy." This policy blocks sign-ins from any third-party client. To allow sign-ins from a third-party client, add the account to the exclusion list or disable the policy. You can do this in the mail admin console under Security > Account Security > Access Policy. The change takes effect in 5 minutes.

image

1. Overview

The Access Policy feature lets you centrally manage user sign-in permissions and security controls. It supports fine-grained policy configuration based on user scope, IP address, and client type. Policies apply only to the selected client types—such as the Alibaba Mail native client, DingTalk, web client, Outlook add-in, and WeChat Official Account—ensuring security rules are enforced as intended. This allows legitimate access while effectively blocking high-risk or unauthorized sign-in attempts.

2. Key features

IP restrictions and client controls are merged into a single feature to provide more flexible and powerful access control.

One-stop efficient management

Stop switching between menus. You can now configure access permissions for both IP addresses and clients from a single panel.

More granular combinations

Combine multiple dimensions to create policies that meet complex control requirements.

Whitelist and blacklist modes

Allow only (whitelist)
  • When enabled, this mode blocks all access for the specified users unless the policy explicitly allows it.

  • Easily implement Zero Trust controls.

Standard block (blacklist)
  • In standard mode, you can precisely block only specific high-risk IP ranges or non-compliant clients.

  • All other access is allowed by default.

Seamless migration

Your existing rules have been automatically upgraded to the new policy format and remain in effect. No reconfiguration is required.

Note

This feature replaces the previous "Native Client Login Security" and "Set Secure Login IP" settings under Security Management - Account Security.

3. Create an access policy

When you open the mail admin console, an upgrade prompt is displayed. Click Upgrade Now to merge IP restrictions and client controls (any existing rules will be automatically migrated to the new policy format and will remain in effect).

Note

For customers using the free edition of Alibaba Mail, this is a new feature. However, configuring an IP range in rules is not supported.

imageimage

image

Go to Domain Management > Security > Account Security > Access Policy, and click Create Policy.

A. Select a policy type

image

Important

After you configure a policy, it enforces strict whitelist/blacklist sign-in controls for all or selected members, including the administrator's postmaster account. The postmaster account can sign in only if it meets the policy conditions. To avoid being locked out of the mail admin console if your sign-in environment changes, consider adding the administrator account to the exclusion list.

The system provides two policy types. Select one based on your security requirements:

Policy type

Description

Whitelist policy

For specified users, only access requests that meet the policy conditions are allowed; all other requests are blocked. This is suitable for high-security use cases (a whitelist policy).

Blacklist policy

For specified users, access requests that meet the policy conditions are blocked; all other requests are allowed. This is suitable for risk mitigation use cases (a blacklist policy).

Note

Policy execution logic

Denial takes precedence. If a user matches both a whitelist policy and a blacklist policy, the blacklist policy is enforced, and access is denied.

Default allow: If a user does not match any policy, access is allowed by default.

B. Set policy conditions

image

1. Scope

Define the user scope to which the policy applies:

  • All Members: The policy applies to all users in the domain.

  • Specific Departments and Members:

    • Select specific departments or members.

    • Select the "Include sub-departments when adding a department" checkbox to apply the policy to the selected department and all its sub-departments.

  • Exclude specific objects (the "Except" option):

    • You can exclude certain departments or members from the "All Members" scope or a specified scope.

    • The "Include sub-departments" option is also supported for exclusions.

2. IP range

  • You can enter a single IP address (for example, 192.168.1.1) or an IP range (for example, 192.168.1.1-192.168.1.100).

  • You can add multiple IP entries. The policy applies to all listed IP addresses.

  • You can specify regions. Region-based settings currently support IPv4 only.

    image

3. Client type

Select one or more client types to control:

  • Alibaba Mail native client (includes mobile and desktop)

  • Alibaba Mail web client (includes the mail admin console)

  • DingTalk for PC

  • DingTalk for mobile

  • Alibaba Mail Outlook add-in

  • WeChat Official Account

  • third-party client

Note that this policy affects only the selected client types.

C. Test and verification

After creating or modifying a policy, verify that it works as expected:

  1. Attempt to sign in with a target user account from different IP addresses or clients.

  2. Observe whether access is allowed or denied according to the policy.

  3. Check system logs or security audit records to confirm that the policy was triggered.

You can test a policy in the final step of its creation, or you can click the Test and Verification button to test it after it has been created.

imageimage

Note

1. When you test a policy in the final step of creation, the test matches against the policy as if it were active.

2. When you test a policy by clicking the Test and Verification button, the test behavior depends on the policy's status. If the policy is enabled (switched on), the test matches against the active rules. If the policy is disabled, the test treats it as inactive, and the policy is not included in the matching process.

Take the web client as an example:

When a user's access is denied by a policy, the sign-in page displays a clear message: "The administrator has enabled an IP sign-in restriction. The current IP address cannot be used to sign in." This helps the user understand why access was denied.

image