Re: [Exim] Help with mailman?

Top Page
Delete this message
Reply to this message
Author: Ruth Ivimey-Cook
Date:  
To: Nico Erfurth
CC: exim-users
Subject: Re: [Exim] Help with mailman?
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@??? for more info.
--
On Tue, 8 Oct 2002, Nico Erfurth wrote:
>> I'm trying to set up mailman 2.0.9 with exim-4.05, and have got stuck; can
>> anyone help? The error log was at one time reporting:
>>
>> 2002-10-08 01:19:23 H=gatemaster.ivimey.org [192.168.0.1] sender verify fail
>> for <testing-admin@???>: Unrouteable address
>> 2002-10-08 01:19:23 H=gatemaster.ivimey.org [192.168.0.1]
>> F=<testing-admin@???> rejected RCPT <ruth@???>: Sender
>> verify failed
>>
>> .. but I solved that (I think) by using "local_users=*" (see below). The
>> main log still reports:
>>
>> 2002-10-08 01:50:40 17yiZ5-0005PA-00 ** testing@???
>> <testing-admin@???> R=mm21_admin_route T=mm_do_admin: Child
>> process of mm_do_admin transport returned 2 from command:
>> /var/mailman/mail/wrapper
>>
>Please post your mailman_domains domainlist too, and post an debugrun of
>exim. It's not needed to set local_parts = * this has the same effect as
>no local_parts option at all



# home dir for Mailman
MAILMAN_HOME=/var/mailman
# wrapper script for mailman
MAILMAN_WRAP=MAILMAN_HOME/mail/wrapper
# user and group for Mailman
MAILMAN_UID=mailman
MAILMAN_GID=mailman

primary_hostname = gatemaster.ivimey.org

domainlist local_domains = ivimey.org : mail.ivimey.org : wotug.org \
: mail.wotug.org
domainlist relay_to_domains =
hostlist relay_from_hosts = 127.0.0.1 : 192.168.0.0/16
domainlist mailman_domains = mail.ivimey.org : mail.wotug.org


FYI, mail.* is set up in DNS as a CNAME to gatemaster, but I thought it best
to make mailman use its own domain. The ACL:

acl_check_rcpt:
accept hosts = :

  deny    local_parts   = ^.*[@%!/|]



  accept  local_parts   = postmaster
          domains       = +local_domains


  require verify        = sender


  accept  domains       = +local_domains
          endpass
          message       = unknown user
          verify        = recipient


  accept  domains       = +relay_to_domains
          endpass
          message       = unable to route address
          verify        = recipient


  accept  hosts         = +relay_from_hosts
  deny    hosts         = /etc/exim/exim-spam-hosts


accept authenticated = *

  deny    message       = relay not permitted



I put in local_parts=* because the sender_verify kept failing unless the
sending user was trusted.

Debug Run attached (I didn't include the log of the error message, which was
delivered fine)..

Thanks

Ruth

--
Ruth Ivimey-Cook
Software engineer and technical writer.
--
Content-Description:

[root@gatemaster ruthc]# exim -d -bs
Exim version 4.05 uid=0 gid=0 pid=24052 L=834cd8 D=fff7577f
Berkeley DB: Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
changed uid/gid: forcing real = effective
uid=0 gid=0
auxiliary group list: <none>
trusted user
admin user
changed uid/gid: privilege not needed
uid=15 gid=12
auxiliary group list: <none>
originator: uid=0 gid=0 login=root name=root
sender address = NULL
LOG: smtp_connection MAIN
SMTP connection from root
SMTP>> 220 gatemaster.ivimey.org ESMTP Exim 4.05 Tue, 08 Oct 2002 13:45:17 +0100

220 gatemaster.ivimey.org ESMTP Exim 4.05 Tue, 08 Oct 2002 13:45:17 +0100
smtp_setup_msg entered
helo localhost
SMTP<< helo localhost
250 gatemaster.ivimey.org Hello root at localhost
SMTP>> 250 gatemaster.ivimey.org Hello root at localhost

mail from:<ruth@???>
SMTP<< mail from:<ruth@???>
SMTP>> 250 OK

250 OK
rcpt to:<testing-admin@???>
SMTP<< rcpt to:<testing-admin@???>
active address testing-admin@???
local_part=testing-admin domain=mail.ivimey.org
using ACL "acl_check_rcpt"
processing "accept"
check hosts = :
in ":"? yes (matched "")
accept: condition test succeeded
SMTP>> 250 Accepted

250 Accepted
data
SMTP<< data
SMTP>> 354 Enter message, ending with "." on a line by itself

354 Enter message, ending with "." on a line by itself
search_tidyup called
subject:test
to: testing-admin@???

>>Headers received:

subject:test
to: testing-admin@???

address match: subject=testing-admin@??? pattern=*@*.wotug.org
mail.ivimey.org in "*.wotug.org"? no (end of list)
testing-admin@??? in "*@*.wotug.org"? no (end of list)
address match: subject=testing-admin@??? pattern=*@mail.ivimey.org
mail.ivimey.org in "mail.ivimey.org"? yes (matched "mail.ivimey.org")
testing-admin@??? in "*@mail.ivimey.org"? yes (matched "*@mail.ivimey.org")
LOG: address_rewrite MAIN
"testing-admin@???" rewritten as "testing-admin@???" by rule 2
address match: subject=ruth@??? pattern=*@*.wotug.org
ivimey.org in "*.wotug.org"? no (end of list)
ruth@??? in "*@*.wotug.org"? no (end of list)
address match: subject=ruth@??? pattern=*@mail.ivimey.org
ivimey.org in "mail.ivimey.org"? no (end of list)
ruth@??? in "*@mail.ivimey.org"? no (end of list)
address match: subject=ruth@??? pattern=*@mail.wotug.org
ivimey.org in "mail.wotug.org"? no (end of list)
ruth@??? in "*@mail.wotug.org"? no (end of list)
address match: subject=ruth@??? pattern=*@*.ivimey.org
ivimey.org in "*.ivimey.org"? no (end of list)
ruth@??? in "*@*.ivimey.org"? no (end of list)
address match: subject=ruth@??? pattern=*@localhost
ivimey.org in "localhost"? no (end of list)
ruth@??? in "*@localhost"? no (end of list)
address match: subject=ruth@??? pattern=*@ivimey.org
ivimey.org in "ivimey.org"? yes (matched "ivimey.org")
ruth@??? in "*@ivimey.org"? yes (matched "*@ivimey.org")
search_open: lsearch "/etc/exim/ivimey-translations"
search_find: file="/etc/exim/ivimey-translations"
key="ruth" partial=-1
LRU list:
8/etc/exim/ivimey-translations
End
internal_search_find: file="/etc/exim/ivimey-translations"
type=lsearch key="ruth"
file lookup required for ruth
in /etc/exim/ivimey-translations
lookup yielded: Ruth.Ivimey-Cook
LOG: address_rewrite MAIN
"ruth@???" rewritten as "Ruth.Ivimey-Cook@???" by rule 6
rewritten sender = Ruth.Ivimey-Cook@???
rewrite_one_header: type=T:
to: testing-admin@???
address match: subject=testing-admin@??? pattern=*@*.wotug.org
mail.ivimey.org in "*.wotug.org"? no (end of list)
testing-admin@??? in "*@*.wotug.org"? no (end of list)
address match: subject=testing-admin@??? pattern=*@mail.ivimey.org
mail.ivimey.org in "mail.ivimey.org"? yes (matched "mail.ivimey.org")
testing-admin@??? in "*@mail.ivimey.org"? yes (matched "*@mail.ivimey.org")
LOG: address_rewrite MAIN
"testing-admin@???" rewritten as "testing-admin@???" by rule 2
newlen=34 newtype=T newtext:
to: testing-admin@???
remainder:
rewrite_one_header: type=F:
From: ruth@???
address match: subject=ruth@??? pattern=*@*.wotug.org
ivimey.org in "*.wotug.org"? no (end of list)
ruth@??? in "*@*.wotug.org"? no (end of list)
address match: subject=ruth@??? pattern=*@mail.ivimey.org
ivimey.org in "mail.ivimey.org"? no (end of list)
ruth@??? in "*@mail.ivimey.org"? no (end of list)
address match: subject=ruth@??? pattern=*@mail.wotug.org
ivimey.org in "mail.wotug.org"? no (end of list)
ruth@??? in "*@mail.wotug.org"? no (end of list)
address match: subject=ruth@??? pattern=*@*.ivimey.org
ivimey.org in "*.ivimey.org"? no (end of list)
ruth@??? in "*@*.ivimey.org"? no (end of list)
address match: subject=ruth@??? pattern=*@localhost
ivimey.org in "localhost"? no (end of list)
ruth@??? in "*@localhost"? no (end of list)
address match: subject=ruth@??? pattern=*@ivimey.org
ivimey.org in "ivimey.org"? yes (matched "ivimey.org")
ruth@??? in "*@ivimey.org"? yes (matched "*@ivimey.org")
search_open: lsearch "/etc/exim/ivimey-translations"
cached open
search_find: file="/etc/exim/ivimey-translations"
key="ruth" partial=-1
LRU list:
8/etc/exim/ivimey-translations
End
internal_search_find: file="/etc/exim/ivimey-translations"
type=lsearch key="ruth"
cached data used for lookup of ruth
in /etc/exim/ivimey-translations
lookup yielded: Ruth.Ivimey-Cook
LOG: address_rewrite MAIN
"ruth@???" rewritten as "Ruth.Ivimey-Cook@???" by rule 6
newlen=34 newtype=F newtext:
From: Ruth.Ivimey-Cook@???
remainder:
search_tidyup called
>>Headers after local additions:

P Received: from root (helo=localhost)
        by gatemaster.ivimey.org with local-smtp (Exim 4.05)
        id 17ytkO-0006Fw-00
        for testing-admin@???; Tue, 08 Oct 2002 13:46:14 +0100
  subject:test
* to: testing-admin@???
T to: testing-admin@???
I Message-Id: <E17ytkO-0006Fw-00@???>
* X-rewrote-original-recipient: testing-admin@???
* From: ruth@???
F From: Ruth.Ivimey-Cook@???
* X-rewrote-sender: ruth@???
  Date: Tue, 08 Oct 2002 13:46:14 +0100

test
message
here
.
Data file written for message 17ytkO-0006Fw-00
calling local_scan(); timeout=300
local_scan() returned 0 NULL
Writing spool header file
Size of headers = 353
LOG: MAIN
  <= Ruth.Ivimey-Cook@??? U=root P=local-smtp S=372

SMTP>> 250 OK id=17ytkO-0006Fw-00

250 OK id=17ytkO-0006Fw-00
smtp_setup_msg entered
exec /usr/exim4/bin/exim -d=0xfff7577f -Mc 17ytkO-0006Fw-00
Exim version 4.05 uid=15 gid=12 pid=24065 L=834cd8 D=fff7577f
Berkeley DB: Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
changed uid/gid: forcing real = effective
uid=0 gid=12
auxiliary group list: <none>
trusted user
admin user
skipping ACL configuration - not needed
set_process_info: 24065 delivering specified messages
set_process_info: 24065 delivering 17ytkO-0006Fw-00
reading spool file 17ytkO-0006Fw-00-H
user=root uid=0 gid=0 sender=Ruth.Ivimey-Cook@???
sender_local=0 ident=root
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
body_linecount=3 message_linecount=9
Delivery address list:
testing-admin@???
locking /var/spool/exim/db/retry.lockfile
locked /var/spool/exim/db/retry.lockfile
opened hints database /var/spool/exim/db/retry: flags=0
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Considering: testing-admin@???
active address testing-admin@???
local_part=testing-admin domain=mail.ivimey.org
unique = testing-admin@???
dbfn_read: key=R:mail.ivimey.org
dbfn_read: key=R:testing-admin@???
no domain retry record
no address retry record
testing-admin@???: queued for routing
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing testing-admin@???
--------> dnslookup router <--------
local_part=testing-admin domain=mail.ivimey.org
checking domains
mail.ivimey.org in "ivimey.org : mail.ivimey.org : wotug.org : mail.wotug.org"? yes (matched "mail.ivimey.org")
mail.ivimey.org in "! +local_domains"? no (matched "! +local_domains")
cached lookup data = NULL
dnslookup router skipped: domains mismatch
--------> mm21_main_route router <--------
local_part=testing-admin domain=mail.ivimey.org
checking domains
mail.ivimey.org in "mail.ivimey.org : mail.wotug.org"? yes (matched "mail.ivimey.org")
mail.ivimey.org in "+mailman_domains"? yes (matched "+mailman_domains")
cached lookup data = NULL
checking local_parts
testing-admin in "*"? yes (matched "*")
checking require_files
file check: /var/mailman/lists/${lc:$local_part}/config.db
expanded file: /var/mailman/lists/testing-admin/config.db
stat() yielded -1
errno = 2
mm21_main_route router skipped: file check
--------> mm21_admin_route router <--------
local_part=testing-admin domain=mail.ivimey.org
stripped suffix -admin
checking domains
cached yes match for +mailman_domains
mail.ivimey.org in "+mailman_domains"? yes (matched "+mailman_domains" - cached)
cached lookup data = NULL
checking local_parts
testing in "*"? yes (matched "*")
checking require_files
file check: /var/mailman/lists/${lc:$local_part}/config.db
expanded file: /var/mailman/lists/testing/config.db
stat() yielded 0
calling mm21_admin_route router
mm21_admin_route router called for testing-admin@???
domain = mail.ivimey.org
set transport mm_do_admin
queued for mm_do_admin transport: local_part = testing
domain = mail.ivimey.org
errors_to=NULL
domain_data=NULL localpart_data=NULL
routed by mm21_admin_route router
envelope to: testing-admin@???
transport: mm_do_admin
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

After routing:
  Local deliveries:
    testing-admin@???
  Remote deliveries:
  Failed addresses:
  Deferred addresses:
search_tidyup called

>>>>>>>>>>>>>>>>>> Local deliveries >>>>>>>>>>>>>>>>>>

--------> testing-admin@??? <--------
locking /var/spool/exim/db/retry.lockfile
locked /var/spool/exim/db/retry.lockfile
opened hints database /var/spool/exim/db/retry: flags=0
dbfn_read: key=T:testing-admin@???
no retry record exists
search_tidyup called
changed uid/gid: local delivery to testing <testing-admin@???> transport=mm_do_admin
uid=41 gid=41
auxiliary group list: <none>
home=/var/mailman current=/var/mailman
set_process_info: 24066 delivering 17ytkO-0006Fw-00 to testing using mm_do_admin
mm_do_admin transport entered
direct command:
argv[0] = /var/mailman/mail/wrapper
argv[1] = mailowner
argv[2] = ${lc:$local_part}
direct command after expansion:
argv[0] = /var/mailman/mail/wrapper
argv[1] = mailowner
argv[2] = testing
Writing message to pipe
writing data block fd=8 size=58 timeout=3600
writing data block fd=8 size=372 timeout=3600
writing data block fd=8 size=1 timeout=3600
set_process_info: 24068 reading output from |/var/mailman/mail/wrapper mailowner ${lc:$local_part}
mm_do_admin transport yielded 7
search_tidyup called
mm_do_admin transport returned FAIL for testing-admin@???
post-process testing-admin@??? (7)
LOG: MAIN
** testing@??? <testing-admin@???> R=mm21_admin_route T=mm_do_admin: Child process of mm_do_admin transport returned 2 from command: /var/mailman/mail/wrapper
>>>>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>>>

changed uid/gid: post-delivery tidying
uid=15 gid=12
auxiliary group list: <none>
set_process_info: 24065 tidying up after delivering 17ytkO-0006Fw-00
Processing retry items
Succeeded addresses:
Failed addresses:
testing-admin@???: no retry items
Deferred addresses:
end of retry processing
sending error message to: Ruth.Ivimey-Cook@???
writing data block fd=8 size=415 timeout=0
exec /usr/exim4/bin/exim -d=0xfff7577f -t -oem -oi -f <> -E17ytkO-0006Fw-00

--