[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Exim 4.20 + Mailman



On Tue, Jun 01, 2004 at 10:25:03AM +0200, David Ross wrote:
> Hi
> 
> Has anyone set up Exim 4.20 and mailman successfully and if so do you
> mind if I take a look at your exim.conf? I've done this before with Exim
> 3 but am struggling to find working examples for exim4.
> 

Hi

I followed the howto on the exim website:

	http://www.exim.org/howto/mailman21.html

As I am using the split config with exim4 I created a transport called
091_mailman_transport:

mailman_transport:
	driver = pipe
	command =	/var/lib/mailman/mail/mailman \
			'${if def:local_part_suffix \
			{${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
			{post}}' \
			$local_part
	current_directory = /var/lib/mailman
	home_directory = /var/lib/mailman
	user = list
	group = list

and a router called 091_mailman_router:

mailman_router:
	driver = accept
	domains = example.com
	require_files = /var/lib/mailman/lists/$local_part/config.pck
	local_part_suffix_optional
	local_part_suffix = 	-bounces : -bounces+* : \
				-confirm+* : -join : -leave : \
				-owner : -request : -admin : \
				-subscribe : -unsubscribe
	transport = mailman_transport

those numbers worked for me ensuring they were used before any alias
files.

Doing it that way means that you don't have to add aliases for each new
list as it checks the lists directory to see if there is a list called
whatever there.

	Kenny

Attachment: signature.asc
Description: Digital signature


Reply to: