Skip to content
mailman logo

Mailman - Mailing List Server Setup

mailman

Guidance for setting up mailing list servers with Postfix and Mailman3. This skill should be used when configuring email infrastructure, integrating Mailman3 with Postfix MTA, creating mailing lists, or troubleshooting mail delivery issues.

SKILL.md

Full skill instructions

Mailman - Mailing List Server Setup

Overview

This skill provides guidance for setting up and configuring mailing list servers using Postfix (MTA) and Mailman3. It covers proper integration patterns, configuration best practices, and verification strategies to avoid common pitfalls.

Approach

Phase 1: Documentation Review

Before making any configuration changes:

  1. Read Mailman3's official documentation on Postfix integration
  2. Understand the [mta] section configuration in mailman.cfg
  3. Identify the native integration mechanisms (postfix_lmtp, postfix_domains)
  4. Review existing configuration files to understand current state

Phase 2: Configuration Architecture

The proper integration between Postfix and Mailman3 involves:

  1. Mailman3 MTA Configuration (mailman.cfg):

    • Configure [mta] section with proper incoming and outgoing settings
    • Set postfix_map_exe for automatic alias generation
    • Configure LMTP listener settings
  2. Postfix Integration:

    • Configure main.cf to use mailman-generated transport maps
    • Set up virtual alias maps pointing to mailman's generated files
    • Avoid creating custom transport definitions when native integration exists
  3. LMTP Delivery:

    • Verify LMTP port configuration (default: 8024)
    • Ensure Postfix can communicate with Mailman's LMTP server

Phase 3: Implementation Order

Execute configuration in this order:

  1. Configure Mailman3's mailman.cfg for MTA integration
  2. Restart Mailman3 services to apply configuration
  3. Verify Mailman generates transport/​alias files
  4. Configure Postfix to use Mailman-generated maps
  5. Reload Postfix configuration
  6. Create mailing lists
  7. Test mail delivery

Verification Strategies

Pre-Implementation Verification

  • Check if services are running: systemctl status mailman3 and systemctl status postfix
  • Verify LMTP port is listening: ss -tlnp | grep 8024
  • Check Mailman's configured MTA: mailman conf | grep -A10 '\[mta\]'

Configuration Verification

  • Validate Postfix configuration: postfix check
  • Test Postfix configuration syntax before reload
  • Verify Mailman-generated files are populated (not empty)
  • Check file permissions on transport maps

Post-Implementation Verification

  • Send test emails and verify delivery
  • Check mail logs: journalctl -u postfix and journalctl -u mailman3
  • Verify list creation persisted in database
  • Test service survival after restart

Database Verification

  • Verify list creation persisted: check with mailman lists command
  • Understand Mailman3's transaction model for list operations
  • Ensure database commits occur properly

Common Pitfalls

1. Empty Alias/​Transport Files

Symptom: Mailman-generated postfix files (postfix_lmtp, postfix_domains) are empty.

Cause: Improper [mta] section configuration in mailman.cfg.

Investigation: Check [mta] configuration settings rather than creating workaround scripts.

2. Custom Transport Instead of Native Integration

Anti-pattern: Creating custom mailman: transport in master.cf and manual alias scripts.

Problem: Duplicates built-in functionality, breaks when lists change, requires manual intervention.

Solution: Use Mailman3's native postfix_map_exe configuration for automatic alias generation.

3. List Creation Not Persisting

Symptom: List created via API/​CLI but doesn't appear after service restart.

Cause: Database transaction not committed properly.

Investigation: Check Mailman's transaction handling, verify database configuration.

4. Malformed Configuration Sections

Anti-pattern: Adding non-standard sections like [styles] or [style.legacy-default] with settings that don't follow Mailman3's schema.

Problem: Settings like subscription_policy should be set on lists, not as style definitions.

Solution: Consult official schema documentation before adding configuration sections.

5. LMTP Port Mismatch

Symptom: Mail delivery fails with connection refused.

Cause: Postfix configured to connect to wrong LMTP port.

Verification: Check Mailman's actual LMTP port vs Postfix transport configuration.

6. Missing Automatic Synchronization

Symptom: New lists don't receive mail without manual intervention.

Cause: Missing postfix_maps configuration for automatic regeneration.

Solution: Configure Mailman to automatically update Postfix maps when lists change.

Debugging Workflow

When mail delivery fails:

  1. Trace the mail path: Check Postfix logs for delivery attempts
  2. Verify transport lookup: postmap -q listname@domain /​path/​to/​transport
  3. Test LMTP directly: telnet localhost 8024
  4. Check Mailman logs: Look for LMTP connection errors
  5. Verify list exists: mailman lists -d domain

Key Configuration Files

FilePurpose
/​etc/​mailman3/​mailman.cfgMain Mailman3 configuration
/​etc/​postfix/​main.cfPostfix main configuration
/​etc/​postfix/​master.cfPostfix service definitions
/​var/​lib/​mailman3/​data/​postfix_lmtpMailman-generated LMTP transport map
/​var/​lib/​mailman3/​data/​postfix_domainsMailman-generated relay domains

Testing Checklist

Before declaring success:

  • Services running and enabled
  • LMTP port accessible
  • Transport maps populated (not empty)
  • Test email delivered to list
  • List archives accessible
  • Configuration survives service restart
  • New list creation triggers automatic map update

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
I
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View