[Mailman-Users] is it possible to set up mailman on a hostwithouta MTA?

Mark Sapiro msapiro at value.net
Thu Nov 8 06:17:56 CET 2007

Tomasz Chmielewski wrote:
>But I don't want or need any MTA here ;)
>So I guess it's just a matter of simple scripting: fetching correct 
>email using fetchmail, and passing it to mail/mailman program in a 
>correct way. Anyone has it documented?

You can fetch the mail from the remote mailbox with fetchmail and pass
it from fetchmail to procmail. Then in your .procmailrc you can set
recipes to deliver to the Mailman mail wrapper with appropriate

Here's an example of procmail recipes used in a somewhat different

# LISTNAME mailman list....
* EnvelopeTo ?? ^LISTNAME$
|sudo -u mailman /var/mailman/mail/mailman post LISTNAME
* EnvelopeTo ?? ^LISTNAME-admin$
|sudo -u mailman /var/mailman/mail/mailman admin LISTNAME
* EnvelopeTo ?? ^LISTNAME-bounces$
|sudo -u mailman /var/mailman/mail/mailman bounces LISTNAME
* EnvelopeTo ?? ^LISTNAME-confirm$
|sudo -u mailman /var/mailman/mail/mailman confirm LISTNAME
* EnvelopeTo ?? ^LISTNAME-join$
|sudo -u mailman /var/mailman/mail/mailman join LISTNAME
* EnvelopeTo ?? ^LISTNAME-leave$
|sudo -u mailman /var/mailman/mail/mailman leave LISTNAME
* EnvelopeTo ?? ^LISTNAME-owner$
|sudo -u mailman /var/mailman/mail/mailman owner LISTNAME
* EnvelopeTo ?? ^LISTNAME-request$
|sudo -u mailman /var/mailman/mail/mailman request LISTNAME
* EnvelopeTo ?? ^LISTNAME-subscribe$
|sudo -u mailman /var/mailman/mail/mailman subscribe LISTNAME
* EnvelopeTo ?? ^LISTNAME-unsubscribe$
|sudo -u mailman /var/mailman/mail/mailman unsubscribe LISTNAME

In this case, EnvelopeTo is set to an argument passed to procmail, but
in your case with fetchmail from a single mailbox, the actual envelope
recipient probably isn't available, so you may need to look at To: and
Cc: headers instead which isn't as reliable.

The alternative as Dennis Putnam suggests is to create 10 mailboxes per
list at the remote. Then you can use fetchmail to fetch from a
specific mailbox and pipe to the wrapper with the appropriate

Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list