[Exim] [long] mailman problem

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tamas TEVESZ
Date:  
À: exim-users
Sujet: [Exim] [long] mailman problem
hi,

environment is exim 3.35, mailman 2.0.8, as distributed in debian
woody (which means nothing special about exim, dunno about mailman but
i think that should be the same).

the exim configuration wrt mailman is the same as on the website:

#
# main
#
MAILMAN_HOME=/var/lib/mailman
MAILMAN_WRAP=MAILMAN_HOME/mail/wrapper
MAILMAN_UID=list
MAILMAN_GID=list

#
# transports
#
list_transport:
driver = pipe
command = MAILMAN_WRAP post ${lc:$local_part}
current_directory = MAILMAN_HOME
home_directory = MAILMAN_HOME
user = MAILMAN_UID
group = MAILMAN_GID

list_request_transport:
driver = pipe
command = MAILMAN_WRAP mailcmd ${lc:$local_part}
current_directory = MAILMAN_HOME
home_directory = MAILMAN_HOME
user = MAILMAN_UID
group = MAILMAN_GID

list_admin_transport:
driver = pipe
command = MAILMAN_WRAP mailowner ${lc:$local_part}
current_directory = MAILMAN_HOME
home_directory = MAILMAN_HOME
user = MAILMAN_UID
group = MAILMAN_GID

#
# directors
#
list_owner_director:
driver = smartuser
require_files = MAILMAN_HOME/lists/${lc:$local_part}/config.db
suffix = "-owner"
new_address = "${lc:$local_part}-admin@${domain}"

owner_list_director:
driver = smartuser
require_files = MAILMAN_HOME/lists/${lc:$local_part}/config.db
prefix = "owner-"
new_address = "${lc:$local_part}-admin@${domain}"

list_admin_director:
driver = smartuser
suffix = -admin
require_files = MAILMAN_HOME/lists/${lc:$local_part}/config.db
transport = list_admin_transport

list_request_director:
driver = smartuser
suffix = -request
require_files = MAILMAN_HOME/lists/${lc:$local_part}/config.db
transport = list_request_transport

list_director:
driver = smartuser
require_files = MAILMAN_HOME/lists/${lc:$local_part}/config.db
transport = list_transport


i've created a list with 'su - list -c "/usr/sbin/newlist teszt-l"'
then added a recipient as 'su - list -c "/usr/sbin/add_members -n - -c
n -w n teszt-l"'. i'm pretty sure this part is fine.

i'm trying to send a message to the list:

2002-04-05 00:11:11 verify failed for SMTP recipient
teszt-l@??? from <ice@???>
H=event-horizon.royalcomp.hu [195.70.35.140]

and obviously i get a bounce back stating:

  teszt-l@???
    SMTP error from remote mailer after RCPT
      TO:<teszt-l@???>:
    host tres.blki.hu [193.224.195.12]: 550 Unknown local part teszt-l
      in <teszt-l@???>


things get strange when trying to trace it from inside:

tres:~# exim -d0 -bt teszt-l@???
teszt-l@???
deliver to teszt-l in domain tres.blki.hu
director = list_director, transport = list_transport
tres:~#

(same result when testing as an untrusted user. this is good,
does as it's told to, see my config snippet below).

doing a test session:

tres:~$ exim -d 11 -v -bh 195.70.35.140
Exim version 3.35 debug level 11 uid=1070 gid=1070
Berkeley DB: Sleepycat Software: Berkeley DB 2.7.7: (08/20/99)
tres.blki.hu in local_domains? yes (matched tres.blki.hu)
Unable to create IPv6 socket to find interface addresses:
error 97 Address family not supported by protocol
Trying for an IPv4 socket
Actual local interface address is 127.0.0.1 (lo)
Actual local interface address is 193.224.195.12 (eth0)

**** SMTP testing session as if from host 195.70.35.140
**** Not for real!

host in host_lookup? yes (*)
looking up host name for 195.70.35.140
IP address lookup yielded event-horizon.royalcomp.hu
host in host_reject? no (option unset)
host in host_reject_recipients? no (option unset)
host in auth_hosts? no (option unset)
host in sender_unqualified_hosts? no (end of list)
host in receiver_unqualified_hosts? no (end of list)
host in helo_verify? no (option unset)
host in helo_accept_junk_hosts? no (option unset)
220 tres.blki.hu ESMTP Exim Fri, 05 Apr 2002 00:21:18 +0200
ehlo event-horizon.royalcomp.hu
250-tres.blki.hu Hello event-horizon.royalcomp.hu [195.70.35.140]
250-SIZE 10485760
250-8BITMIME
250-PIPELINING
250 HELP
mail from:<ice@???>
ice@??? in sender_reject? no (option unset)
ice@??? in sender_reject_recipients? no (option unset)
250 <ice@???> is syntactically correct
rcpt to:<teszt-l@???>
tres.blki.hu in local_domains? yes (matched tres.blki.hu)
teszt-l@??? in receiver_verify_addresses? yes (*)
host in receiver_verify_hosts? yes (*)
tres.blki.hu in local_domains? yes (matched tres.blki.hu)
tres.blki.hu in percent_hack_domains? no (end of list)
250 <teszt-l@???> verified

and, actually, any hard i try, i cannot spot anything that would
render this address unverifyable (is there such a word?), nor can i
make it fail in test sessions.

if i send a mail from localhost to the list, it's delivered fine:

2002-04-05 00:24:53 16tFf3-0007t3-00 <= ice@??? U=ice P=local S=306
Apr 5 00:24:56 tres exiscanv2[25406]: 16tFf3-0007t3-00 F:<ice@???>
T:teszt-l@??? R:clean, marked for dequeue
2002-04-05 00:24:58 16tFf3-0007t3-00 => teszt-l <teszt-l@???>
D=list_director T=list_transport
2002-04-05 00:24:58 16tFf3-0007t3-00 Completed
2002-04-05 00:25:02 16tFfC-0007tG-00 <= teszt-l-admin@???
H=localhost (tres.blki.hu) [127.0.0.1] P=esmtp S=1338
id=E16tFf3-0007t3-00@???
Apr 5 00:25:05 tres exiscanv2[25406]: 16tFfC-0007tG-00 R:resent,
delayed or notification
2002-04-05 00:25:07 16tFfC-0007tG-00 => ice@??? R=lookuphost
T=remote_smtp H=mail.extreme.hu [212.108.197.2]
2002-04-05 00:25:07 16tFfC-0007tG-00 Completed

(oh, and yes, there's exiscan installed too).

however, if i try from 195.70.35.140, it's rejected:

event-horizon:~# telnet tres.blki.hu smtp
Trying 193.224.195.12...
Connected to tres.blki.hu.
Escape character is '^]'.
220 tres.blki.hu ESMTP Exim Fri, 05 Apr 2002 00:28:18 +0200
ehlo event-horizon.royalcomp.hu
250-tres.blki.hu Hello event-horizon.royalcomp.hu [195.70.35.140]
250-SIZE 10485760
250-8BITMIME
250-PIPELINING
250 HELP
mail from:<ice@???>
250 <ice@???> is syntactically correct
rcpt to:<teszt-l@???>
550 Unknown local part teszt-l in <teszt-l@???>

trying a real session with debug (client is now again a telnet client
on 195.70.35.140):

tres:/var/log/exim# exim -C /etc/exim/exim.conf -d 11 -bd -oX 2525
Exim version 3.35 debug level 11 uid=0 gid=0
Berkeley DB: Sleepycat Software: Berkeley DB 2.7.7: (08/20/99)
tres.blki.hu in local_domains? yes (matched tres.blki.hu)
Unable to create IPv6 socket to find interface addresses:
error 97 Address family not supported by protocol
Trying for an IPv4 socket
Actual local interface address is 127.0.0.1 (lo)
Actual local interface address is 193.224.195.12 (eth0)
Caller is an admin user
Caller is a trusted user
user name "root" extracted from gecos field "root"
originator: uid=0 gid=0 login=root name=root
port = 2525
LOG: 0 MAIN
Failed to create IPv6 socket for wildcard listening (Address family
not supported by protocol): falling back to IPv4
listening on all interfaces (IPv4)
pid written to /var/run/exim/exim.2525.pid-bd
LOG: 0 MAIN
exim 3.35 daemon started: pid=30357, no queue runs, listening for
SMTP on port 2525
set_process_info: 30357 daemon: no queue runs, port 2525
daemon running with uid=8 gid=8 euid=8 egid=8
listening on port 2525...
Connection request from 195.70.35.140/18956
1 SMTP accept process running
listening on port 2525...
interface address = 193.224.195.12
host in rfc1413_hosts? yes (*)
ident callback failed
sender_fullhost = [195.70.35.140]
sender_rcvhost = [195.70.35.140]
Process 30367 is handling incoming connection from [195.70.35.140]
host in host_lookup? yes (*)
looking up host name for 195.70.35.140
IP address lookup yielded event-horizon.royalcomp.hu
sender_fullhost = event-horizon.royalcomp.hu [195.70.35.140]
sender_rcvhost = event-horizon.royalcomp.hu ([195.70.35.140])
set_process_info: 30367 handling incoming connection from
event-horizon.royalcomp.hu [195.70.35.140]
host in host_reject? no (option unset)
host in host_reject_recipients? no (option unset)
host in auth_hosts? no (option unset)
Unable to create IPv6 socket to find interface addresses:
error 97 Address family not supported by protocol
Trying for an IPv4 socket
Actual local interface address is 127.0.0.1 (lo)
Actual local interface address is 193.224.195.12 (eth0)
local host found for non-MX address
localhost 127.0.0.1 mx=-1
host in sender_unqualified_hosts? no (end of list)
local host found for non-MX address
localhost 127.0.0.1 mx=-1
host in receiver_unqualified_hosts? no (end of list)
host in helo_verify? no (option unset)
host in helo_accept_junk_hosts? no (option unset)
SMTP>> 220 tres.blki.hu ESMTP Exim Fri, 05 Apr 2002 00:30:26 +0200

set_process_info: 30367 handling incoming connection from
event-horizon.royalcomp.hu [195.70.35.140]
ready for new message
smtp_setup_msg entered
SMTP<< ehlo event-horizon.royalcomp.hu
sender_fullhost = event-horizon.royalcomp.hu [195.70.35.140]
sender_rcvhost = event-horizon.royalcomp.hu ([195.70.35.140])
set_process_info: 30367 handling incoming connection from
event-horizon.royalcomp.hu [195.70.35.140]
SMTP>> 250-tres.blki.hu Hello event-horizon.royalcomp.hu [195.70.35.140]

250-SIZE 10485760
250-8BITMIME
250-PIPELINING
250 HELP
SMTP<< mail from:<ice@???>
ice@??? in sender_reject? no (option unset)
ice@??? in sender_reject_recipients? no (option unset)
SMTP>> 250 <ice@???> is syntactically correct

SMTP<< rcpt to:<teszt-l@???>
tres.blki.hu in local_domains? yes (matched tres.blki.hu)
teszt-l@??? in receiver_verify_addresses? yes (*)
host in receiver_verify_hosts? yes (*)
>>>>>>>>>>>>>>>>>>>>>>>>

Verifying teszt-l@???
tres.blki.hu in local_domains? yes (matched tres.blki.hu)
tres.blki.hu in percent_hack_domains? no (end of list)
address teszt-l@???
local_part=teszt-l domain=tres.blki.hu
domain is local
>>>>>>>>>>>>>>>>>>>>>>>>

directing teszt-l@???
real_local director skipped: prefix mismatch
list_owner_director director skipped: suffix mismatch
owner_list_director director skipped: prefix mismatch
list_admin_director director skipped: suffix mismatch
list_request_director director skipped: suffix mismatch
calling list_director director
require_files = /var/lib/mailman/lists/teszt-l/config.db
test existence of /var/lib/mailman/lists/teszt-l/config.db
required present, EACCES => unknown
Success
list_director director called for teszt-l@???
queued for list_transport transport: local_part=teszt-l
domain=tres.blki.hu
errors_to=NULL
domain_data=NULL local_part_data=NULL
list_director director succeeded for teszt-l
SMTP>> 250 <teszt-l@???> verified

data
From: ice@???
To: teszt-l@???
Subject: aa

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

search_tidyup called
host in ignore_fromline_hosts? no (option unset)
>>Original headers (size=58):

From: ice@???
To: teszt-l@???
Subject: aa

rewrite_one_header: type=F:
From: ice@???
rewrite_one_header: type=T:
To: teszt-l@???
>>Final headers:

P Received: from event-horizon.royalcomp.hu ([195.70.35.140])
        by tres.blki.hu with esmtp (Exim 3.35 #1 (Debian))
        id 16tFmF-0007tn-00
        for <teszt-l@???>; Fri, 05 Apr 2002 00:32:19 +0200
F From: ice@???
T To: teszt-l@???
  Subject: aa
I Message-Id: <E16tFmF-0007tn-00@???>
  Date: Fri, 05 Apr 2002 00:32:19 +0200


search_tidyup called
Data file written for message 16tFmF-0007tn-00
Writing spool header file
Size of headers = 335
LOG: 0 MAIN
<= ice@??? H=event-horizon.royalcomp.hu [195.70.35.140] P=esmtp S=343
SMTP>> 250 OK id=16tFmF-0007tn-00

search_tidyup called
Sender: ice@???
Recipients:
teszt-l@???
set_process_info: 30367 handling incoming connection from
event-horizon.royalcomp.hu [195.70.35.140]
ready for new message
smtp_setup_msg entered


and it's accepted and actually delivered. could this probably be
related or similar to [Message-ID:
<Pine.SOL.4.44.0204031125100.29067-100000@???>],
which was about a verify loop in address test mode ? (3.35, and this
instance too, predates that posting by Philip).

as for the rest of my config, i have no_verify on two directors,
userforward and procmail, both of which are after the list* directors
in the config. other verify-related settings are

receiver_verify_hosts = ! 127.0.0.1 : ! 193.224.195.0/24 : *
receiver_verify_addresses = *
receiver_verify = true



i had it verified by a friend, just in case i'd be too tired. when run
"normally" in production, i'm starting this exim as "/usr/sbin/exim
-bd" (no automatic queue runs due to exiscan". for this test, i've
started it as "/usr/sbin/exim -d 11 -bd". mail to
<teszt-l@???> failed for this guy too.

i'm completely lost now. does anyone have an idea what to look at next
?

thanks a lot,


--
[-]