Cloudflare Mail Address Creator
Use this skill to create ordinary mailbox addresses through https://mail-api.suilong.online/admin/new_address.
Follow This Workflow
- Collect or infer
name,domain, andenablePrefix. - Default
enablePrefixtotruewhen the user does not specify it. - If the user gives a full address such as
t2@suilong.online, split it intoname=t2anddomain=suilong.online. - Never store real credentials in the skill. Pass runtime credentials with CLI flags or environment variables.
- Run scripts/create_address.py for single or batch creation.
- Return the script's JSON output directly unless the user asks for a reformatted summary.
- Preserve the normalized statuses:
created,already_exists,auth_error,error. - If validation fails locally, fix the input before attempting the API call again.
- Use
--output-format csvand optionally--output-file <path>when the user asks for exportable results.
Run The Script
Single address:
C:\Users\sl\AppData\Local\Python\bin\python.exe scripts/create_address.py `
--name t2 `
--domain suilong.online `
--admin-auth $env:CLOUDFLARE_MAIL_ADMIN_AUTH
Batch addresses from a comma-separated list:
C:\Users\sl\AppData\Local\Python\bin\python.exe scripts/create_address.py `
--names alice,bob,charlie `
--domain suilong.online `
--enable-prefix true `
--admin-auth $env:CLOUDFLARE_MAIL_ADMIN_AUTH
Batch addresses from a file:
C:\Users\sl\AppData\Local\Python\bin\python.exe scripts/create_address.py `
--names-file .\names.txt `
--domain suilong.online `
--admin-auth $env:CLOUDFLARE_MAIL_ADMIN_AUTH
Export batch results as CSV:
C:\Users\sl\AppData\Local\Python\bin\python.exe scripts/create_address.py `
--names alice,bob,charlie `
--domain suilong.online `
--output-format csv `
--output-file .\created-addresses.csv `
--admin-auth $env:CLOUDFLARE_MAIL_ADMIN_AUTH
Runtime Credentials
Prefer environment variables for secrets:
CLOUDFLARE_MAIL_ADMIN_AUTHCLOUDFLARE_MAIL_BEARER_TOKENCLOUDFLARE_MAIL_FINGERPRINTCLOUDFLARE_MAIL_LANGCLOUDFLARE_MAIL_USER_TOKENCLOUDFLARE_MAIL_API_URL
Read More Only When Needed
- Read references/api.md for the endpoint contract and error mapping.
- Read references/examples.md for example prompts and outputs.
