Re: [exim] [Mailman-Users] Mailman with exim4 on Debian Sarg…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Oliver König
Ημερομηνία:  
Προς: mailman-users, exim-users
Αντικείμενο: Re: [exim] [Mailman-Users] Mailman with exim4 on Debian Sarge
Hello Marc,
thanks for your feedback. I have been trying to get it working for several
weeks.

On Friday 01 September 2006 01:01, you wrote:
> Oliver König wrote:
> >I am pretty sure that the mailman config is right and that
> >there is a problem with the exim4 config. Non local subscribers cannot
> > post to the list. The Exim4 log always says that relay is not permitted.
>
> Yes, that would be an Exim config problem.
>
> >Here are parts of my exim4 config:
>
> <snip>
>
> ># Domains that your lists are in - colon separated list
> ># you may wish to add these into local_domains as well
> >domainlist MAILMAN_DOMAINS=news.server.windfinder.com
>
> And what about server.windfinder.com? And did you add it to
> local_domains?

Just added it:
domainlist MAILMAN_DOMAINS= server.windfinder.com : news.server.windfinder.com

After exim4 restart the mail delivery failed completely (even for non mailman
mail):

/var/log/exim4/mainlog
2006-09-01 10:39:13 1GJ4YH-0004nB-ND <= user@??? U=user
P=local S=11314
2006-09-01 10:39:13 1GJ4YH-0004nB-ND unknown named domain
list "+MAILMAN_domains"
2006-09-01 10:39:26 socket bind() to port 25 for address (any IPv4) failed:
Address already in use: waiting before trying again
2006-09-01 10:39:49 1GJ4Z3-0004pq-Mi <= oliver@???
H=p548de4f5.dip.t-dialin.net ([192.168.0.2]) [84.141.228.245] P=esmtpsa
X=TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32 A=plain_courier_authdaemon:oliver S=1609
id=200609011039.15788.oliver@???
2006-09-01 10:39:49 1GJ4Z3-0004pq-Mi unknown named domain
list "+MAILMAN_domains"
2006-09-01 10:39:56 socket bind() to port 25 for address (any IPv4) failed:
Address already in use: waiting before trying again
2006-09-01 10:40:01 1GJ4ZF-0004wl-Sf <= user@??? U=user
P=local S=752
2006-09-01 10:40:01 1GJ4ZF-0004wl-Sf unknown named domain
list "+MAILMAN_domains"
2006-09-01 10:40:02 1GJ4ZG-0004wv-6z <= user@??? U=user
P=local S=737
2006-09-01 10:40:02 1GJ4ZG-0004wv-6z unknown named domain
list "+MAILMAN_domains"


> <snip>
>
> >mailman_router:
> >driver = accept
> >require_files = MAILMAN_HOME/lists/$local_part/config.pck
> >local_part_suffix_optional
> >local_part_suffix = -bounces : -bounces+* : \
> >-confirm+* : -join : -leave : \
> >-owner : -request : -admin
> >transport = mailman_transport
>
> The above is incomplete. It is not the cause of your problem, but see
> <http://www.exim.org/howto/mailman21.html#roconf> for what the
> mailman_router: should be. In particular, the above is missing
> -confirm, -subscribe and -unsubscribe in local_part_suffix and is
> missing
> domains = +MAILMAN_DOMAINS to prevent mail to an address that looks
> like a list but in another domain from being delivered to the list.


I changed this according tohttp://www.exim.org/howto/mailman21.html to:
[..]
begin routers

mailman_router:
   driver = accept
   domains = +MAILMAN_domains
   require_files = MAILMAN_LISTCHK
   local_part_suffix_optional
   local_part_suffix = -admin     : \
-bounces   : -bounces+* : \
                       -confirm   : -confirm+* : \
-join      : -leave     : \
-owner    : -request   : \
-subscribe : -unsubscribe
   transport = mailman_transport
[..]
begin transports


mailman_transport:
  driver = pipe
  command = MAILMAN_WRAP \
            '${if def:local_part_suffix \
                  {${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
                  {post}}' \
            $local_part
  current_directory = MAILMAN_HOME
  home_directory = MAILMAN_HOME
  user = MAILMAN_USER
  group = MAILMAN_GROUP