Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Manage Postfix Dovecot Email

ASecurity

Complete email management for Postfix/Dovecot

19 stars
0 votes
0 copies
0 views
Added 9/19/2026
ai-agentspythongobashtesting

Works with

cli

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add rondoflow/rondoflow --skill manage-postfix-dovecot-email --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Manage Postfix Dovecot Email?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Manage Postfix Dovecot Email
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-manage-postfix-dovecot-email/badge)](https://www.skillsdirectory.com/skills/rondoflow-manage-postfix-dovecot-email)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: manage-postfix-dovecot-email
description: "Complete email management for Postfix/Dovecot"
category: "Communication"
author: community
version: "1.0.0"
icon: message-circle
---

# Email Manager Skill

This skill provides complete email management using your Postfix/Dovecot infrastructure.

## šŸ“‹ Configuration

Edit `config.json` in the skill directory:

```json
{
  "email_address": "your-email@domain.com",
  "email_password": "your-password",
  "imap_server": "mail.yourdomain.com",
  "smtp_server": "mail.yourdomain.com"
}
```

## šŸ“Ø Available Operations

### List folders
```bash
python3 scripts/imap_utils.py list-folders
python3 scripts/imap_utils.py list-folders --output json
```

**Example output:**
```
šŸ“ Available folders:
  • Drafts šŸ“ DRAFTS
  • Sent šŸ“¤ SENT
  • Trash šŸ—‘ļø TRASH
  • Junk šŸ“§ SPAM
  • INBOX šŸ“„ INBOX
  • Archive
  • Projects/ClientA
```

### List emails
```bash
python3 scripts/imap_utils.py list --folder INBOX --limit 10
python3 scripts/imap_utils.py list --flagged-only --output json
```

### Read email
```bash
python3 scripts/imap_utils.py read --message-id 1234
python3 scripts/imap_utils.py read --message-id 1234 --output json
```

### Save draft
```bash
python3 scripts/imap_utils.py save-draft \
  --to "user@example.com" \
  --subject "Draft subject" \
  --body "Draft content"
```

### List drafts
```bash
python3 scripts/imap_utils.py list-drafts
python3 scripts/imap_utils.py list-drafts --output json
```

### Update draft
```bash
python3 scripts/imap_utils.py update-draft \
  --draft-id 1234 \
  --subject "Updated subject" \
  --body "Updated content"
```

### Send email
```bash
python3 scripts/smtp_utils.py send \
  --to "user@example.com" \
  --subject "Test" \
  --body "Hello"
```

### Send draft
```bash
python3 scripts/smtp_utils.py send-draft --draft-id 1234
```

### Flag/star email
```bash
python3 scripts/imap_utils.py flag --message-id 1234 --add
python3 scripts/imap_utils.py flag --message-id 1234 --remove
python3 scripts/imap_utils.py list --flagged-only
```

### Move email
```bash
python3 scripts/imap_utils.py move \
  --message-id 1234 \
  --from-folder INBOX \
  --to-folder Projects
```

### Create folder
```bash
python3 scripts/imap_utils.py create-folder --name "NewFolder"
```

### Delete email
```bash
python3 scripts/imap_utils.py delete --message-id 1234
```

### Empty trash
```bash
python3 scripts/imap_utils.py empty-trash
```

### Search emails
```bash
python3 scripts/imap_utils.py search --query "FROM user@example.com"
python3 scripts/imap_utils.py search --query "subject:meeting" --output json
```

### Spam operations
```bash
# List spam
python3 scripts/imap_utils.py list-spam
python3 scripts/imap_utils.py list-spam --output json

# Mark as spam
python3 scripts/imap_utils.py mark-spam --message-id 1234
python3 scripts/imap_utils.py mark-spam --message-id 1234 --from-folder INBOX

# Mark as not spam
python3 scripts/imap_utils.py mark-ham --message-id 1234
python3 scripts/imap_utils.py mark-ham --message-id 1234 --from-folder Junk

# Empty spam folder
python3 scripts/imap_utils.py empty-spam
```

## šŸ” Folder Auto-Detection

The skill automatically detects folder names for:
- **Inbox:** INBOX, Inbox
- **Drafts:** Drafts, INBOX.Drafts, Draft
- **Sent:** Sent, Sent Messages, INBOX.Sent
- **Trash:** Trash, Deleted, INBOX.Trash
- **Junk/Spam:** Junk, Spam, INBOX.Junk, INBOX.Spam, Bulk
- **Archive:** Archive, Archives, INBOX.Archive

## šŸ“ Folder Name Handling

The skill cleans up folder names for display by removing IMAP flags like `\HasNoChildren` and quotes. For raw folder data with flags:

```bash
python3 scripts/imap_utils.py list-folders --output json
```

**Example JSON output:**
```json
[
  {
    "name": "Drafts",
    "delimiter": "/",
    "flags": ["\\HasNoChildren", "\\Drafts"]
  }
]
```

## šŸ¤– AI Usage Examples

Always use `--output json` when parsing results:

```bash
# List drafts and find specific one
drafts=$(python3 scripts/imap_utils.py list-drafts --output json)
# Parse JSON to find draft by subject

# Send the draft
python3 scripts/smtp_utils.py send-draft --draft-id $ID

# Check spam count
spam=$(python3 scripts/imap_utils.py list-spam --output json)

# Get folder metadata
folders=$(python3 scripts/imap_utils.py list-folders --output json)
```

## āœ… Testing

Test your configuration:

```bash
python3 scripts/imap_utils.py list-folders
python3 scripts/imap_utils.py list --limit 5
python3 scripts/imap_utils.py list-spam
```

All operations are non-interactive and suitable for automation.

## šŸš€ Setup Instructions

```bash
# 1. Create skill directory
mkdir -p ~/OpenClaw-Workspace/skills/email-manager/scripts
cd ~/OpenClaw-Workspace/skills/email-manager

# 2. Create config.json
cat > config.json << 'EOF'
{
    "email_address": "your-email@yourdomain.com",
    "email_password": "your-password",
    "imap_server": "mail.yourdomain.com",
    "imap_port": 993,
    "smtp_server": "mail.yourdomain.com",
    "smtp_port": 465,
    "folders": {
        "drafts": "Drafts",
        "sent": "Sent",
        "trash": "Trash",
        "junk": "Junk"
    }
}
EOF

# 3. Make scripts executable
chmod +x scripts/*.py

# 4. Test it!
python3 scripts/imap_utils.py list-folders
```

## šŸ“ Common Spam Folder Names

Different Dovecot configurations use different spam folder names:
- Junk (most common)
- Spam
- INBOX.Junk
- INBOX.Spam
- Bulk
- Junk E-mail

Set it explicitly in `config.json` if auto-detection doesn't work:

```json
{
    "folders": {
        "junk": "INBOX.Junk"
    }
}
```

## šŸŽÆ Key Benefits

- āœ… Zero dependencies - Uses only Python standard library
- āœ… No virtualenv needed - Works with system Python
- āœ… JSON config - Easy to edit, no parsing libraries needed
- āœ… Non-interactive - Perfect for AI automation
- āœ… Full feature set - Drafts, send, folders, flags, move, delete, spam
- āœ… Debian/Ubuntu compatible - No "externally-managed-environment" errors

Attribution

rondoflowrondoflow
View sourceMore from rondoflow →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

693621 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →