Re: [Exim] redirect router issue with aliases

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Bruce Cornett
日付:  
To: exim-users
題目: Re: [Exim] redirect router issue with aliases
David

re: return a message to sender.

I misspoke. Historically we have refused UCE at SMTP time based on several
criteria and that is our intent here - refuse it with a message that we
have quarantined their mail. But to keep clients off my back, I am going
to give them a copy (well some of it).

I dropped the remove_header back in the works just to see if I had
overlooked that. Same results and if you note the headers below, you will
see that the "X-Redirect-To: pex" is still there. This might be a clue as
to what is happening. And I noticed in the resulting bounce that I did
not have the other "Redirect" header I had added, so I wondered if perhaps
something was out of kilter because I used the "Redirect." I added an
"X-Bruce" header and it does not show (full headers below). Anomalies
like this cause me to wonder if this router is working at all.

So then I changed the condition a bit so I could test it using the -bt
option. Like so:

scan_redirect:
      driver = redirect
      #condition = ${if def:h_X-Redirect-To: {1}{0}}
      condition = ${if eq{$original_local_part}{bcornett} {1}{0}}
      #headers_add = X-Redirect: pex.$original_local_part@$original_domain
      #data = $h_X-Redirect:
      headers_add = X-Bruce: whatever
      data = pex.bcornett@???
      headers_remove = X-Redirect-To
   redirect_router = domainlist
   # no_verify


This is the command line result:

$ exim4 -bt brucec@???
brucec@??? is undeliverable:
Unrouteable address

But it may still be in some sort of loop. But it is not clear to me where.

Bruce C

------------------------------------------------------
Below is the active version - with the X-Bruce header that is added
------------------------------------------------------

scan_redirect:
      driver = redirect
      condition = ${if def:h_X-Redirect-To: {1}{0}}
      #headers_add = X-Redirect: pex.$original_local_part@$original_domain
      #data = $h_X-Redirect:
      headers_add = X-Bruce: whatever
      data = pex.bcornett@???
      headers_remove = X-Redirect-To
   redirect_router = system_aliases
    # no_verify
----------------------------------------------------
system_aliases:
   driver = redirect
   allow_fail
   allow_defer
   data = ${lookup{$local_part}lsearch{/etc/aliases}}
   file_transport = address_file
   pipe_transport = address_pipe
#  condition = ${if eq {$domain}{$primary_hostname} {yes}{no} }


------------------------------------------------------
This is the header for a failed message
------------------------------------------------------
X-Failed-Recipients: pex.bcornett@???
Auto-Submitted: auto-generated
From: Mail Delivery System <Mailer-Daemon@???>
To: bcornett@???
Subject: Mail delivery failed: returning message to sender
Message-Id: <E1AlAUd-0007lf-Qw@???>
Date: Mon, 26 Jan 2004 12:25:47 -0500

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

   pex.bcornett@???
     (ultimately generated from bcornett@???)
     Unrouteable address


------ This is a copy of the message, including all the headers. ------

Return-path: <bcornett@???>
Received: from yellowsprings.servlet.net ([209.115.56.251]:17882
helo=brucec.servlet.com)
    by spaminator.servlet.net with esmtp (Exim 4.30)
    id 1AlAUc-0007lZ-0h
    for bcornett@???; Mon, 26 Jan 2004 12:25:46 -0500
Message-Id: <6.0.1.1.0.20040126122523.03292318@???>
X-Sender: brucec@??? (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1
Date: Mon, 26 Jan 2004 12:25:29 -0500
To: bcornett@???
From: test spaminator <bcornett@???>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-Spam-Score: 59 (+++++)
X-Redirect-To: pex
X-Scan-Signature: b57dc8e5d2b3d97fa45ea88d4be7a2df
Subject: *****Probable SPAM***** testing spam filter - please ignore