Re: [EXIM] Mail filters - various things.

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Alistair Young
Dátum:  
Címzett: Philip Hazel
CC: exim-users
Tárgy: Re: [EXIM] Mail filters - various things.

On Wed, 17 Dec 1997 14:50:46 +0000 (GMT), in message <Pine.SOL.3.96.971217143546.27250S-100000@???>,
Philip Hazel <ph10@???> (== ph10)
praised Shub-Internet thus:

> On 17 Dec 1997, Alistair Young wrote:
>> The problem I had with it is that I use multiple personal mailboxes,
>> using local-part suffixes, and none of those are recognised as
>> personal by the 'personal' condition. Perhaps, for that, it might be
>> better to define it as
>>
>> $header_to: contains $local_part_prefix$local_part$local_part_suffix


> But it must contain the domain! (Maybe that's just a typo on your part?)


My mistake, sure enough. I meant:

$header_to: contains $local_part_prefix$local_part$local_part_suffix@$domain

of course.

>> Lastly, and rather embarrassingly, there's one quirk which - despite
>> much reading of manuals - I'm still not sure whether it is the
>> intended behaviour or a bug I've accidentally intoduced into the OS/2
>> port.


> Can you please send me the complete debugging output for the case that
> fails? The bit you included suggests there might be a bug, but I'd like
> to see it all.


Righto. It's included below.

> (And also please give the Exim version.)


The original two cases were on my port once I'd made it up to 1.80,
although IIRC the same problem may have been in the 1.73. The one that
I've included is from the 1.81 port.

----------------------------------------------------------------------
Exim version 1.81/2 debug level set to 12
Actual local interface address is 127.0.0.1
Actual local interface address is 192.168.0.1
Actual local interface address is 158.152.145.208
verify_setup_hostlist called
verify_setup_netlist called
verify_setup_netlist called
search_tidyup called
port = 1445
listening on all interfaces
LOG: 0 MAIN
  exim 1.81/2 daemon started: pid=85, no queue runs, listening for SMTP on port 1445
set_process_info:    85 1.81/2 daemon: no queue runs, port 1445
pid written to /exim/spool/exim-daemon.1445.pid-bd
daemon running
listening on port 1445...
Connection request from [127.0.0.1]
1 SMTP accept process running
listening on port 1445...
Process 92 is handling incoming connection from [127.0.0.1]
set_process_info:    92 1.81/2 handling incoming connection from [127.0.0.1]
ready for new message
smtp_setup_msg entered
host_find_by_addr yields localhost.demon.co.uk
sender_fullhost = localhost.demon.co.uk [127.0.0.1]
220 esther.arkane.net ESMTP Exim 1.81/2 #3 Wed, 17 Dec 1997 15:38:30 +0000
SMTP<< EHLO localhost
sender_fullhost = localhost.demon.co.uk (localhost) [127.0.0.1]
250-esther.arkane.net: Hello localhost.demon.co.uk [127.0.0.1]
250-Supported functions are:
250-SIZE 1048576
250-8BITMIME
250-EXPN
250 HELP
SMTP<< MAIL FROM: sloth@???
address sloth@???
  local_part=sloth domain=bofh.net local=0

>>>>>>>>>>>>>>>>>>>>>>>>

routing sloth@???, domain bofh.net
lookuphost router called for sloth@???: dns lookup: route_domain = bofh.net
DNS lookup of bofh.net (MX) succeeded
Actual local interface address is 127.0.0.1
Actual local interface address is 192.168.0.1
Actual local interface address is 158.152.145.208
fully qualified name = bofh.net
host_find_bydns yield = HOST_FOUND (2); returned hosts:
sasami.jurai.net 207.31.78.80 10 1062
califia.sub-rosa.com 207.96.1.3 20 2084
lookuphost router succeeded
routed by lookuphost router:
deliver to sloth@???
transport: remote_smtp
host sasami.jurai.net [207.31.78.80] MX=10
host califia.sub-rosa.com [207.96.1.3] MX=20
sloth@??? verified ok as sloth@???
250 <sloth@???> is syntactically correct
SMTP<< RCPT TO: avatar-usenet@???
address avatar-usenet@???
local_part=avatar-usenet domain=arkane.demon.co.uk local=1
>>>>>>>>>>>>>>>>>>>>>>>>

directing avatar-usenet@???
calling system_real_names director
system_real_names director: file = /etc/realnames search type = 49
file=/etc/realnames query=avatar-usenet
search_open (1) /etc/realnames
search_find: file="/etc/realnames" type=1 key="avatar-usenet" partial=-1
internal_search_find: file="/etc/realnames" type=1 key="avatar-usenet"
file lookup required for avatar-usenet in /etc/realnames
system_real_names director failed for avatar-usenet:
calling system_aliases director
system_aliases director: file = /etc/aliases search type = 49
file=/etc/aliases query=avatar-usenet
search_open (1) /etc/aliases
search_find: file="/etc/aliases" type=1 key="avatar-usenet" partial=-1
internal_search_find: file="/etc/aliases" type=1 key="avatar-usenet"
file lookup required for avatar-usenet in /etc/aliases
system_aliases director failed for avatar-usenet:
lists director skipped: prefix mismatch
real_localuser director skipped: verify 2 0 0
pgpkey_localuser director skipped: prefix mismatch
userforward director skipped: verify 2 0 0
stripped suffix -usenet
calling localuser director
localuser director succeeded for avatar
transport: local_delivery
250 <avatar-usenet@???> verified
SMTP<< DATA
354 Enter message, ending with "." on a line by itself
search_tidyup called
>>Original headers:

From: sloth@???
To: avatar-usenet@???
Subject: Test

Rewriting rules exist
rewritten sender = sloth@???
rewrite_one_header: type=F:
From: sloth@???
rewrite_one_header: type=T:
To: avatar-usenet@???
search_tidyup called
>>Final headers:

P Received: from localhost.demon.co.uk (localhost) [127.0.0.1] 
    by esther.arkane.net with esmtp (Exim 1.81/2 #3)
    id 0xiLZ0-00001U-00; Wed, 17 Dec 1997 15:39:52 +0000
F From: sloth@???
T To: avatar-usenet@???
  Subject: Test
I Message-Id: <E0xiLZ0-00001U-00@???>
  Date: Wed, 17 Dec 1997 15:39:52 +0000


Data file written for message 0xiLZ0-00001U-00
address sloth@???
local_part=sloth domain=bofh.net local=0
>>>>>>>>>>>>>>>>>>>>>>>>

routing sloth@???, domain bofh.net
lookuphost router called for sloth@???: dns lookup: route_domain = bofh.net
DNS lookup of bofh.net (MX) succeeded
DNS lookup of califia.sub-rosa.com (A) succeeded
fully qualified name = bofh.net
host_find_bydns yield = HOST_FOUND (2); returned hosts:
  sasami.jurai.net 207.31.78.80 10 1027 
  califia.sub-rosa.com 207.96.1.3 20 2042 
lookuphost router succeeded
routed by lookuphost router:
  deliver to sloth@???
  transport: remote_smtp
  host sasami.jurai.net [207.31.78.80] MX=10
  host califia.sub-rosa.com [207.96.1.3] MX=20
Writing spool header file
LOG: 0 MAIN
  <= sloth@??? H=localhost.demon.co.uk (localhost) [127.0.0.1] P=esmtp S=584 T="Test"
250 OK id=0xiLZ0-00001U-00
Sender: sloth@???
Recipients:
  avatar-usenet@???
forked delivery process 95
set_process_info:    92 1.81/2 handling incoming connection from [127.0.0.1]
ready for new message
smtp_setup_msg entered
delivering message 0xiLZ0-00001U-00
set_process_info:    95 1.81/2 delivering 0xiLZ0-00001U-00
Opened spool file 0xiLZ0-00001U-00-H
sender=sloth@???
sender_fullhost = localhost.demon.co.uk (localhost) [127.0.0.1]
sender_local=0 resent=no ident=unset
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
running system filter
Filter: start of processing
Filter: condition is false: error_message 
Filter: condition is false: $header_x-uidl: is not "" 
Filter: condition is false: $header_from: is $header_to: 
Filter: at end "delivered" is false
Filter: end of processing
Delivery address list:
  avatar-usenet@???
opened DB file /exim/spool/db/retry: flags=0
unique = avatar-usenet@???
dbfn_read: key=D:avatar-usenet@???
avatar-usenet@???: queued for directing

>>>>>>>>>>>>>>>>>>>>>>>>

directing avatar-usenet@???
calling system_real_names director
system_real_names director: file = /etc/realnames search type = 49
file=/etc/realnames query=avatar-usenet
search_open (1) /etc/realnames
search_find: file="/etc/realnames" type=1 key="avatar-usenet" partial=-1
internal_search_find: file="/etc/realnames" type=1 key="avatar-usenet"
file lookup required for avatar-usenet in /etc/realnames
system_real_names director failed for avatar-usenet: 
calling system_aliases director
system_aliases director: file = /etc/aliases search type = 49
file=/etc/aliases query=avatar-usenet
search_open (1) /etc/aliases
search_find: file="/etc/aliases" type=1 key="avatar-usenet" partial=-1
internal_search_find: file="/etc/aliases" type=1 key="avatar-usenet"
file lookup required for avatar-usenet in /etc/aliases
system_aliases director failed for avatar-usenet: 
lists director skipped: prefix mismatch
real_localuser director skipped: prefix mismatch
pgpkey_localuser director skipped: prefix mismatch
stripped suffix -usenet
calling userforward director
userforward director: file = .forward
successful stat of /home/avatar
1091 bytes read from /home/avatar/.forward
file is a filter file
Filter: start of processing
Filter: condition is false: error_message 
Filter: condition is false: $header_precedence: is "junk" or
   $header_precedence: is "list" 
Filter: condition is true: ( personal alias sloth@??? alias sloth@??? alias narg@??? ) or
   ( $header_to: contains $local_part$local_part_suffix@$domain and
     $header_from: does not contain server@ and
     $header_from: does not contain daemon@ and
     $header_from: does not contain root@ and
     $header_subject: does not contain "circular" and
     $header_precedence: does not contain "bulk" )


Filter: mail to: sloth@???
        subject: Your message for avatar received at Wed Dec 17 15:40:04 1997
           file: /home/avatar/.autoreply.all-new-messages (expanded)
            log: /home/avatar/.autoreply.all-new-messages.log
           once: /home/avatar/.autoreply.all-new-messages.once
Filter: at end "delivered" is false
Filter: end of processing
userforward director generated >sloth@???
  pipe, file, or autoreply
userforward director generated avatar-usenet@???
userforward director succeeded for avatar
  transport: <none>
opened DB file /exim/spool/db/retry: flags=0
unique = avatar-usenet@???
avatar-usenet@??? is a duplicate address: discarded
unique = >sloth@???:avatar-usenet@???
After directing:
  Local addresses:
    >sloth@???
  Remote addresses:
  Failed addresses:
  Addresses to be routed:
  Deferred addresses:
search_tidyup called

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

opened DB file /exim/spool/db/retry: flags=0
dbfn_read: key=T:>sloth@???@arkane.demon.co.uk
set_process_info:    97 1.81/2 delivering 0xiLZ0-00001U-00 to >sloth@??? using address_reply
address_reply transport entered
taking data from address
message already sent to sloth@???
address_reply transport returned OK
post-process >sloth@???

>sloth@??? succeeded: adding to nonrecipients list

LOG: 0 MAIN
=> >sloth@??? <avatar-usenet@???> D=userforward T=address_reply
search_tidyup called
>>>>>> Remote deliveries >>>>>>

set_process_info:    95 1.81/2 tidying up after delivering 0xiLZ0-00001U-00
Processing retry items
Succeeded addresses:

>sloth@???: no retry items

avatar-usenet@???: no retry items
avatar-usenet@???: no retry items
Failed addresses:
Deferred addresses:
end of retry processing
LOG: 0 MAIN
Completed
end delivery of 0xiLZ0-00001U-00
SMTP<< QUIT
221 esther.arkane.net closing connection
child 92 ended
0 SMTP accept processes now running
listening on port 1445...

Process terminated by SIGINT
----------------------------------------------------------------------

Alistair

-- 
Computational Thaumaturge  --  Sysimperator, dominus retis deusque machinarum.
e-mail: avatar-sig@???      WWW: http://www.arkane.demon.co.uk/
"What!  You've been assigned to SECURITY?  On the ENTERPRISE?  Boy, I
 sure hope your insurance is paid up, pal!"
   -- overheard in a corridor, Star Base 5


--
*** Exim information can be found at http://www.exim.org/ ***