[Mailman-Users] how to disable main mailman-request and mailman list without stopping mailman functionality

Mark Sapiro mark at msapiro.net
Tue Jan 28 11:51:41 EST 2020

On 1/28/20 3:13 AM, Jelle de Jong wrote:

> On 2020-01-27 15:52, Mark Sapiro wrote:
>> It depends on how your MTA deliveres to Mailman. If it uses aliases, 
>> you can change the mailman-request alias in mailman's aliases, but if 
>> Mailman automatically generates these, that may get undone. A better 
>> approach is to put an alias for the mailman-request and maybe other 
>> mailman- addresses in an alias file that is processed before Mailman's 
>> aliases or delivery. You can use these to send the mail to /dev/null 
>> or to some user or mailbox if you want to see the mail.
> So how can I make a alias for all mailman- addresses that go to /dev/null?

Assuming your MTA is configured to use /etc/aliases and puts it before 
Mailman's data/aliases.

Add the following lines to /etc/aliases

mailman-admin:       /dev/null
mailman-bounces:     /dev/null
mailman-confirm:     /dev/null
mailman-join:        /dev/null
mailman-leave:       /dev/null
mailman-owner:       /dev/null
mailman-request:     /dev/null
mailman-subscribe:   /dev/null
mailman-unsubscribe: /dev/null

And then run `newaliases`

Mark Sapiro <mark at msapiro.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