Re: Exim 4.20 + Mailman

2004-06-01 Thread Kenny Duffus
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


signature.asc
Description: Digital signature


Re: Exim 4.20 + Mailman

2004-06-01 Thread Kenny Duffus
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


signature.asc
Description: Digital signature


Re: Default or wildcard virtual user with exim?

2003-10-23 Thread Kenny Duffus
On Wed, Oct 22, 2003 at 05:22:40PM -0400, John R. Ackermann   N8UR wrote:
> I have a simple virtual user mail setup using exim 3 on a Debian testing 
> box.  I have a director like so:
> 
> virtuals:
>  driver = aliasfile
>  domains = /etc/mail/virtuals
>  file = /etc/mail/virtual-aliases
>  search_type = lsearch
>  include_domain
>  no_more
 
[snip]

> # virtual real
> [EMAIL PROTECTED] [EMAIL PROTECTED]
> [EMAIL PROTECTED] [EMAIL PROTECTED]
> [EMAIL PROTECTED] [EMAIL PROTECTED]
> 
> I've tried this syntax and it doesn't work with the director defined above. 
> Is there a way to implement this kind of mapping?
> 

Hiya

to use wildcards you need to change the search_type to lsearch*

Kenny


pgpv2ZDNkxEHz.pgp
Description: PGP signature


Re: Default or wildcard virtual user with exim?

2003-10-23 Thread Kenny Duffus
On Wed, Oct 22, 2003 at 05:22:40PM -0400, John R. Ackermann   N8UR wrote:
> I have a simple virtual user mail setup using exim 3 on a Debian testing 
> box.  I have a director like so:
> 
> virtuals:
>  driver = aliasfile
>  domains = /etc/mail/virtuals
>  file = /etc/mail/virtual-aliases
>  search_type = lsearch
>  include_domain
>  no_more
 
[snip]

> # virtual real
> [EMAIL PROTECTED] [EMAIL PROTECTED]
> [EMAIL PROTECTED] [EMAIL PROTECTED]
> [EMAIL PROTECTED] [EMAIL PROTECTED]
> 
> I've tried this syntax and it doesn't work with the director defined above. 
> Is there a way to implement this kind of mapping?
> 

Hiya

to use wildcards you need to change the search_type to lsearch*

Kenny


pgp0.pgp
Description: PGP signature