Re: [Exim] Mailman with Exim 4 and ${lc:...} error

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: John Koenig
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [Exim] Mailman with Exim 4 and ${lc:...} error
The following additions to configure file works for me. I hope this help someone...

Exim v4.x with Mailman-2.1b from cvs:


########


MAILMAN_HOME=/usr/local/mailman
MAILMAN_WRAP=/usr/local/mailman/mail/mailman

# User and group for Mailman, should match your --with-mail-gid
# switch to Mailman's configure script.
MAILMAN_UID=mailman
MAILMAN_GID=mail


# Router
mailman_main_router:
    driver = accept
    require_files = MAILMAN_HOME/lists/${lc::$local_part}/config.pck
    transport = mailman_transport


mailman_router:
    driver = accept
    require_files = MAILMAN_HOME/lists/${lc::$local_part}/config.pck
    local_part_suffix = "-bounces:-bounces+*:-confirm+*:-join:-leave:-owner:-request:-admin"
    transport = mailman_transport



# Transport
mailman_transport:
    driver = pipe
    # In case you wonder, substr_2 removes the leading '-'
    # and the regex removes optional +foo=hostname that can be after -bounce
    command = MAILMAN_WRAP "${if def:local_part_suffix{${substr_2:{${sg{${lc:$local_part_suffix}}{\\\\\+.*}{}}}}{post}}" ${lc:$local_part}
    current_directory = MAILMAN_HOME
    home_directory = MAILMAN_HOME
    user = MAILMAN_UID
    group = MAILMAN_GID



########
If it looks like it should be all on one line... you're probably correct.


Hope this helps some people...
A couple of you, really helped me!

Didn't notice this before, but I presume the user and group in the transport is redundant?


Thanks...