Postfix Engineering Center · Version 3.9

Amavis and SpamAssassin Integration

Plan a stable after-queue filtering path and avoid mail loops.

Production rule: capture postconf -n, back up changed files, run postfix check, and keep a rollback path before reloading.

Engineering objective

This guide treats the setting as part of a complete mail flow rather than an isolated directive. Confirm the listener, trust boundary, queue behavior, DNS dependencies, authentication path and downstream transport before deployment.

Implementation workflow

  1. Record the current effective configuration with postconf -n and relevant postconf -M output.
  2. Define exactly which clients, senders, recipients or destinations the change should affect.
  3. Apply the smallest explicit configuration change and rebuild any map with postmap.
  4. Validate syntax using postfix check, then reload rather than restart when possible.
  5. Run a controlled SMTP test and follow its queue ID through the logs.

Example pattern

# Document intent beside every non-default setting
# Verify effective values with: postconf parameter_name
# Validate configuration with: postfix check
# Apply safely with: postfix reload

Verification

Common failure modes

Back to Postfix Engineering Center

Search Trushilla Documentation