[Mailman-Users] [exim] Mailman with exim4 on Debian Sarge

Oliver König k.oliver at t-online.de
Fri Sep 1 14:52:32 CEST 2006


On Friday 01 September 2006 13:51, Stephen Gran wrote:
> On Fri, Sep 01, 2006 at 01:40:49PM +0200, Oliver König said:
> > When a subscriber posts to the list /var/log/exim4/mainlog says:
> > 2006-09-01 13:37:27 H=mailout09.sul.t-online.com [194.25.134.84]
> > F=<k.oliver at t-online.de> rejected RCPT <news at server.windfinder.com>:
> > relay not permitted
> >
> > Any idea how to allow postings from subscribers? Thanks.
>
> It sounds to me like you don't have +MAILMAN_DOMAINS in any accept
> statements in your rcpt acl.  I would just add it to one of the verify =
> recipient stanzas towards the end of the rcpt acl (given a stock
> configuration).

Hello Stephen,
thanks for for reply. I added +MAILMAN_DOMAINS whereever I thought it might 
help. I am still getting the same error: relay not permitted. Here are 
excerpts from my exim config:
[..]
.ifndef MAIN_LOCAL_DOMAINS
MAIN_LOCAL_DOMAINS = DEBCONFlocal_domainsDEBCONF
.endif
domainlist local_domains = MAIN_LOCAL_DOMAINS : MAILMAN_DOMAINS : 
server.windfinder.com

.ifndef MAIN_RELAY_TO_DOMAINS
MAIN_RELAY_TO_DOMAINS = DEBCONFrelay_domainsDEBCONF
.endif
domainlist relay_to_domains = MAIN_RELAY_TO_DOMAINS

.ifndef MAIN_RELAY_NETS
MAIN_RELAY_NETS = DEBCONFrelay_netsDEBCONF
.endif
hostlist relay_from_hosts = 127.0.0.1 : ::::1 : MAIN_RELAY_NETS
[..]
# Home dir for your Mailman installation -- aka Mailman's prefix
# directory, see: /usr/share/doc/mailman/README.exim.
MAILMAN_HOME=/var/lib/mailman
MAILMAN_WRAP=MAILMAN_HOME/mail/mailman

# User and group for Mailman, should match your --with-mail-gid
# switch to Mailman's configure script.
MAILMAN_USER=list
MAILMAN_GROUP=daemon

# Domains that your lists are in - colon separated list
# you may wish to add these into local_domains as well
domainlist MAILMAN_DOMAINS= server.windfinder.com
#
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#
# These values are derived from the ones above and should not need
# editing unless you have munged your mailman installation
#
# The path of the list config file (used as a required file when
# verifying list addresses)
MAILMAN_LISTCHK=MAILMAN_HOME/lists/${lc::$local_part}/config.pck

[..]
begin routers

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
  domains = server.windfinder.com : MAILMAN_DOMAINS
  transport = mailman_transport

[..]
  # Accept if the address is in a local domain, but only if the recipient can
  # be verified. Otherwise deny. The "endpass" line is the border between
  # passing on to the next ACL statement (if tests above it fail) or denying
  # access (if tests below it fail).
  #
  accept
    domains = +local_domains : +MAILMAN_DOMAINS
    endpass
    message = unknown user
    verify = recipient


  # Accept if the address is in a domain for which we are relaying, but again,
  # only if the recipient can be verified.
  #
  # If you want to use the more conservative "unknown user" error
  # message in case of a non-existing local part, you might want to
  # set CHECK_RCPT_GIVE_UNKNOWN_USER. However, this might reveal
  # local information, which is the cause for it not being enabled by
  # default.
  accept
    domains = +relay_to_domains : +MAILMAN_DOMAINS
    endpass
    .ifdef CHECK_RCPT_GIVE_UNKNOWN_USER
    message = ${if eq{$acl_verify_message}{Unrouteable address}{unknown user}
{$acl_verify_message}}
    .else
    message = unrouteable address
    .endif
    verify = recipient

[..]
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

Regards,
Oliver



More information about the Mailman-Users mailing list