Re: [exim] System filter

Góra strony
Delete this message
Reply to this message
Autor: Ken Tucker
Data:  
Dla: exim-users
Temat: Re: [exim] System filter
I may not be understanding this but it does seem that the SMTP dialogue
from the mail command in the system filter is doing something I do not
expect.
I'm using Exim 4.71 and with the following stanza in the message filter

if "${if def:header_X-Attachment: {there}}" is there
then
        mail to $recipients
             from "postmaster@???"
             subject "Small attachment detected"
             text "A message from $sender_address with subject $h_subject: 
contained a small attachment"
       logwrite "Detected: Small attachment detected for $recipients"
       seen finish
endif


fails with an error message containing
 mail to Tucker@???
    generated by system-filter
    SMTP error from remote mail server after RCPT 
TO:<>Tucker@???>:


The log entry is

2010-08-11 10:48:34 1Oj7vE-0004Ce-G9 <= Tucker@??? 
H=daitonix.insrv.cf.ac.uk [10.224.1.209] P=esmtp S=1456 
id=1281548914.13596.26.camel@ubuntu T="Attachment test"
Detected: Small attachment detected for Tucker@???       <-- 
logwrite indicates $recipients is correct
2010-08-11 10:48:34 1Oj7vE-0004Ce-G9 original recipients ignored (system 
filter)
2010-08-11 10:48:34 1Oj7vE-0004Ce-G9 ** >Tucker@??? 
<system-filter> T=small_transport: SMTP error from remote mail server 
after RCPT TO:<>Tucker@???>: host mdomsmp01.cf.ac.uk 
[10.255.228.22]: 501 Syntax error, parameters in command "RCPT 
TO:<>Tucker@???>" unrecognized or missing
2010-08-11 10:48:34 1Oj7vE-0004Ce-G9 Completed QT=2s


The recipient address appears to be correct ($recipients output to the log
correctly), but the RCPT TO has an extra > in front of the address.
So where is that extra > coming from?

Ken
----------------------------------------------------------------
Ken Tucker BA MBCS CITP
Senior Engineer - Mail Team
Information Services
Cardiff University
----------------------------------------------------------------From jj33@??? Wed Aug 11 13:55:06 2010
Envelope-to: exim-users@???
Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:57436
    helo=sasl.smtp.pobox.com)
    by tahini.csx.cam.ac.uk with esmtp (Exim 4.72)
    (envelope-from <jj33@???>) id 1OjApg-0006dK-FZ
    for exim-users@???; Wed, 11 Aug 2010 13:55:05 +0100
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1])
    by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id E00F1CC625
    for <exim-users@???>; Wed, 11 Aug 2010 08:54:57 -0400 (EDT)
Received: from a-pb-sasl-quonix. (unknown [127.0.0.1])
    by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id DB5BCCC624
    for <exim-users@???>; Wed, 11 Aug 2010 08:54:57 -0400 (EDT)
Received: from mail-yw0-f49.google.com (unknown [209.85.213.49]) (using TLSv1
    with cipher RC4-MD5 (128/128 bits)) (No client certificate
    requested) by
    a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id AFDD7CC622 for
    <exim-users@???>; Wed, 11 Aug 2010 08:54:57 -0400 (EDT)
Received: by ywe9 with SMTP id 9so12833ywe.8 for <exim-users@???>; Wed,
    11 Aug 2010 05:54:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.101.180.20 with SMTP id h20mr21447844anp.223.1281531297193; 
    Wed, 11 Aug 2010 05:54:57 -0700 (PDT)
Received: by 10.100.48.17 with HTTP; Wed, 11 Aug 2010 05:54:57 -0700 (PDT)
In-Reply-To: <22cd336670f27a523076399286661080@???>
References: <22cd336670f27a523076399286661080@???>
Date: Wed, 11 Aug 2010 08:54:57 -0400
Message-ID: <AANLkTimmNjSLtk4ZozPmnT28fCMdy8apZUh9TqoH-=f9@???>
From: John Jetmore <jj33@???>
To: Edward Harvey <eharvey@???>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Pobox-Relay-ID: A54937A2-A547-11DF-BB10-9056EE7EF46B-37994384!a-pb-sasl-quonix.pobox.com
X-Spam-Score: -1.6 (-) 
X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL=-0.106,
    BAYES_00=-1.5 autolearn=no version=3.1.8
Cc: exim-users@???
Subject: Re: [exim] Authenticate against another server
X-BeenThere: exim-users@???
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: A user list for the exim MTA <exim-users.exim.org>
List-Unsubscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject=unsubscribe>
List-Archive: <http://lists.exim.org/lurker/list/exim-users.html>
List-Post: <mailto:exim-users@exim.org>
List-Help: <mailto:exim-users-request@exim.org?subject=help>
List-Subscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 12:55:06 -0000


On Tue, Aug 10, 2010 at 7:17 PM, Edward Harvey
<eharvey@???> wrote:
> I'm building a mail submission host, TLS & auth on port 587. =A0I would l=

ike
> to authenticate against another SMTP server ... Specifically, smtp.gmail.=

com.
> Is there any way to simply pass-through the submitted credentials to
> authenticate on another smtp server, for authentication only? =A0I don't =

want
> the other SMTP server to send the mail; I want to use it for authenticati=

on
> only.


Check out http://lists.exim.org/lurker/message/20030514.203046.6b05039f.en.=
html.
I once wrote a quick script to do this for the fun of it. You might
have some additional issues w/ TLS, but the basics are there.

--John