Email Usage

Sends and reads email for your own domain through a local mail server using fixed scripts, and creates new mail accounts.

luokai0 Updated 10 repo stars

File contents

Email 使用

SMTP 发送(需要认证)

python3 skills/email-usage/scripts/send_email.py <收件人> <主题> <正文> <发件邮箱> <密码>

参数:收件人、主题、正文、发件邮箱、密码(向 小爪子 查询)

示例:

python3 skills/email-usage/scripts/send_email.py \
  'someone@example.com' '邮件标题' '邮件正文' \
  'test@axelhu.com' 'test1234'

IMAP 读取

python3 skills/email-usage/scripts/read_email.py <用户名> <密码> [最新N封,默认5]

示例:

python3 skills/email-usage/scripts/read_email.py 'test@axelhu.com' 'test1234' 3

新增邮箱账号

python3 skills/email-usage/scripts/create_email.py <邮箱> <密码>

示例:

python3 skills/email-usage/scripts/create_email.py newuser@axelhu.com securepass

账号创建后,发件和收件使用同一套密码。

规则

  • 不要配置 SMTP/Postfix/amavis
  • 不要操作邮件队列(postqueue/postsuper)
  • 不要修改容器内配置
  • 连接超时或发送失败 → 联系 小爪子
  • 密码遗忘 → 联系 小爪子

luokai0/ai-agent-skills-by-luo-kai/tree/main/ai-agent-skills/22-clawhub-skills/email-usage commit a80a07a231

Frequently asked questions

npx skillmds@latest add luokai0/email-usage