dms-mcp

v0.1.2
dms-mcp Checked 7 hours ago Published 6 days ago

MCP server for administering docker-mailserver via its setup CLI

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_accounts

List all mailboxes with their quota usage and aliases.

add_account

Create a mailbox. If no password is given, a strong one is generated and returned. The password is passed over stdin, never on the command line.

ParameterTypeDescription
address *string
password

update_password

Change a mailbox password. If none is given, a strong one is generated and returned.

ParameterTypeDescription
address *string
password

delete_account

Delete a mailbox account. delete_mail=False keeps the stored mail on disk; True removes it permanently.

ParameterTypeDescription
address *string
delete_mailboolean

list_restrictions

List addresses blocked from sending or receiving. direction: 'send' or 'receive'.

ParameterTypeDescription
direction *string

restrict_account

Block (restrict=True) or unblock (restrict=False) an address from sending or receiving. direction: 'send' or 'receive'.

ParameterTypeDescription
address *string
direction *string
restrictboolean

list_aliases

List all aliases and their recipients.

add_alias

Forward `alias` (address, or @domain for a catch-all) to `recipient`.

ParameterTypeDescription
alias *string
recipient *string

delete_alias

Remove `recipient` from `alias`.

ParameterTypeDescription
alias *string
recipient *string

set_quota

Set a mailbox quota, e.g. '500M', '2G' or '0' for unlimited.

ParameterTypeDescription
address *string
quota *string

delete_quota

Remove a mailbox's custom quota (falls back to the server default).

ParameterTypeDescription
address *string

generate_dkim

Generate DKIM keys (all domains if none given). Prints the DNS TXT record to publish. The mail server usually needs a restart to start signing with new keys.

ParameterTypeDescription
domain
keysizeinteger
selectorstring

show_dkim_record

Show the DKIM public-key DNS record for a domain (OpenDKIM/Rspamd default paths).

ParameterTypeDescription
domain *string
selectorstring

fail2ban_status

Show currently banned IPs per jail.

fail2ban_ban

Ban an IP address or CIDR range.

ParameterTypeDescription
ip *string

fail2ban_unban

Unban an IP address or CIDR range.

ParameterTypeDescription
ip *string

mail_log

Tail the mail log (Postfix/Dovecot). Optionally filter with a fixed string (case-insensitive).

ParameterTypeDescription
grep
linesinteger

mail_queue

Show the Postfix mail queue (deferred/held messages).

flush_queue

Retry delivery of all queued messages now.

server_status

Check that the container is reachable and show service status.