[exim] using aliase file piped command, can it work?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Andy Smith
Fecha:  
A: Exim-users
Asunto: [exim] using aliase file piped command, can it work?
Hi

Im trying to configure RT (request tracker ticket system) with Exim to automatically generate tickets when mail
is sent to a given email address. The suggested configuration is to create a special entry in the system alias file
with a piped command to an RT binary that does all the RT clever bits, this looks something like:

rt-general: "|/usr/local/rt3/bin/rt-mailgate --queue general --action correspond --url http://rt3.ukgrid.net/"

Should this work with Exim? Ive tried using this by sending mail from a remote system via my normal mail client
which results in a "unrouteable address" error in the exim mainlog and also sending by piping some text into the
mail command on the command line which results in the same error.
I have an idea that Ill need to make changes to the exim main config file to make this work, which I dont want to
have to do simply to make RT work (ie I dont want to have to modify my live SMTP server config every time I add
something new to application X),

can anyone comment on this? Any help gratefully recieved,


thanks Andy.From peeebeee@??? Wed May 28 20:15:14 2008
Envelope-to: exim-users@???
Received: from wr-out-0506.google.com ([64.233.184.225]:44492)
    by tahini.csx.cam.ac.uk with esmtp (Exim 4.69)
    (envelope-from <peeebeee@???>) id 1K1R79-0004yy-88
    for exim-users@???; Wed, 28 May 2008 20:15:14 +0100
Received: by wr-out-0506.google.com with SMTP id c30so1908529wra.14
    for <exim-users@???>; Wed, 28 May 2008 12:15:10 -0700 (PDT)
Received: by 10.114.26.18 with SMTP id 18mr3165883waz.162.1212002109148;
    Wed, 28 May 2008 12:15:09 -0700 (PDT)
Received: by 10.114.170.14 with HTTP; Wed, 28 May 2008 12:15:09 -0700 (PDT)
Message-ID: <56152ae90805281215r6f862e1bqda38d56aea6c5615@???>
Date: Wed, 28 May 2008 20:15:09 +0100
From: "Peter Bowyer" <peter@???>
Sender: peeebeee@???
To: exim-user <exim-users@???>
In-Reply-To: <ED436A54-2553-4136-AE35-328C8BC28A48@???>
MIME-Version: 1.0
Content-Type: text/plain; charsetãO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <ED436A54-2553-4136-AE35-328C8BC28A48@???>
X-Google-Sender-Auth: 8f7bef8dfeb2bcb8
X-Spam-Score: -2.3 (--)
X-Spam-Status: No, scoreÒ.3 required~0 tests÷L.447, BAYES_00Ñ.5,
    EXIM_ACLÑ.2 autolearnŠm version^1.8
Subject: Re: [exim] Problems adding a header to a locally-originated message
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¾subscribe>
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Žlp>
List-Subscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject¥bscribe>
X-List-Received-Date: Wed, 28 May 2008 19:15:14 -0000


2008/5/28 Mike Brudenell <pmb1@???>:
> Greetings -
>
> I'm trying to add a header to a locally-originated (ie, not arriving
> over TCP/IP) message but can't seem to get it to work. The relevant
> ACL in my config file is the first one:
>
>   accept  hosts           :
>           add_header      X-Test: VALUE

>


That's almost certainly what you have in an ACL that deals with SMTP
connections. Since the message you're targetting doesn't arrive over
SMTP, you need the logic somewhere else - have a look at
http://www.exim.org/exim-html-current/doc/html/spec_html/ch40.html#SECID189
to find an appropriate ACL slot.

Peter

--
Peter Bowyer
Email: peter@???
Follow me on Twitter: twitter.com/peeebeee