Sendmail Mailertable

Here is a sendmail configuration that uses the sendmail mailertable file to redirect mailing list messages to the Mailman LMTP runner.

Here are some references I used for this method:


sendmail.mc

Enable the mailertable feature by adding this line to sendmail.mc:

FEATURE(`mailertable')dnl

Create a LMTP mailer that is used to direct mail received by sendmail to Mailman's LMTP runner; add this to the end of sendmail.mc:

MAILER_DEFINITIONS
Mmm3lmtp,       P=[IPC], F=PSXmnz9, S=EnvFromSMTP/HdrFromSMTP,
                E=\r\n, L=1024, A=TCP $h 8024

Important: Replace 2 or more blanks with tabs.


mailertable

Transfer mailing list messages to Mailman:

example.com.private     mm3lmtp:[127.0.0.1]

Important: Use tabs for whitespace.


virtusertable

Add list aliases to the virtusertable file:

test@example.com                test@example.com.private
test-request@example.com        test-request@example.com.private
test-owner@example.com          test-owner@example.com.private
test-join@example.com           test-join@example.com.private
test-leave@example.com          test-leave@example.com.private
test-bounces@example.com        test-bounces@example.com.private

/etc/hosts

We need an entry in the hosts file:

127.0.0.25    example.com.private

Otherwise sendmail will fail to resolve the hostname and the message will get stuck in the sendmail mail queue.


Alias Domain Setting

For each Mailman configured domain use the web GUI to add an "Alias Domain" for the .default version.

Domains → Edit → Alias Domain

For example:

[Domains]

Back to the main page

Copyright © 2026
Craig Leres