[Mailman-Users] virtual domains problem

Sean Roe sean at adoptionmedia.com
Tue Jan 3 18:29:54 CET 2006


Hi All,

I am setting up a mailman server running Debian sarge, exim4, and 
mailman 2.1.6 that supports several domains, and have run into a bit of 
a problem.  I have set up the virtual domains per the documentation but 
I am running into an issue when I test the installations.  Here is the 
output from the mainlog in exim4:

2006-01-03 09:42:52 1EtpFL-0003iz-RY == test_emag at adoptionweek.com 
R=mailman_router T=mailman_transport defer (2): No such file or 
directory: failed to chdir to /data/mailman/:adoptionweek.com


I believe the problem is the colon at the begining of sub directory 
name.  I cant seem to find where that is coming from.  Below are the 
changes I made to exim to deal with the virt domains:

in 01_exim4-config_listmacrosdefs:

MM_HOME=/data/mailman/${lc::$domain}
MM_UID=mailman
MM_GID=mailman
domainlist 
mm_domains=adoptionweek.com:lists.adoptionweek.com:e-magazine.adoption.com:lists.adoption.com:adoption.c
om:adoptionlists.com
MM_WRAP=MM_HOME/mail/mailman
MM_LISTCHK=MM_HOME/lists/${lc::$local_part}/config.pck

in 099_exim4-config_mailman:

mailman_router:
    driver = accept
    domains = +mm_domains
    require_files = MM_LISTCHK
    local_part_suffix_optional
    local_part_suffix = -admin     : \
                        -bounces   : -bounces+* : \
                        -confirm   : -confirm+* : \
                        -join      : -leave     : \
                        -owner    : -request   : \
                        -subscribe : -unsubscribe
    transport = mailman_transport


in 30_exim4-config_mailman:
  mailman_transport:
    driver = pipe
    command = MM_WRAP \
              '${if def:local_part_suffix \
                    {${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
                    {post}}' \
              $local_part
    current_directory = MM_HOME
    home_directory = MM_HOME
    user = MM_UID
    group = MM_GID




More information about the Mailman-Users mailing list