Mail Domain Whitelist (components/mailDomains.ts)

QwenPaw · console/src/pages/Settings/Agents/components/mailDomains.ts · typescript · Apache-2.0
email, lang:typescript, tag:domain-validation, tag:config, tag:whitelist

Defines whitelisted email provider domains and filters out enterprise-only service domains for mailbox selection UI in agent settings.

// Source: https://github.com/agentscope-ai/QwenPaw | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Service hosts retained so backend-compatible config classification stays
// stable. They are not available as mailbox domains in the current console.
export const MAIL_ENTERPRISE_SERVICE_DOMAINS = [
  "exmail.qq.com",
  "qiye.aliyun.com",
  "qiye.163.com",
];

// Mail domains accepted by the backend without an explicit provider.
export const MAIL_DOMAIN_WHITELIST = [
  "163.com",
  "126.com",
  "yeah.net",
  "qq.com",
  "foxmail.com",
  "sina.com",
  "sina.cn",
  "aliyun.com",
  "gmail.com",
  ...MAIL_ENTERPRISE_SERVICE_DOMAINS,
];

const UNAVAILABLE_MAIL_DOMAINS = new Set(MAIL_E

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key