[Exim] I'm having a senior moment...

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Bruce Bowler
Fecha:  
A: exim-users
Asunto: [Exim] I'm having a senior moment...
...and I'm not _that_ senior...

I get a message that, because of it's subject, I want to send off to
another system for processing...

What shows up in the logs follows (more relevant info after the log entries)...

2000-06-14 00:47:46 13255e-0004dl-00 <= daac@???
H=eosdata.gsfc.nasa.gov [192.107.190.139] P=esmtp S=2243
id=200006140447.AAA59197@???

2000-06-14 00:47:46 13255e-0004dl-00 => bcb <bbowler@???>
D=localuser T=local_delivery

2000-06-14 00:47:46 13255e-0004du-00 <= bcb@??? U=bcb P=local
S=2435 id=200006140447.AAA59197@???

2000-06-14 00:47:48 13255e-0004du-00 => bowler@???
R=lookuphost T=remote_smtp H=seadas.bigelow.org [198.116.72.74]

2000-06-14 00:47:48 13255e-0004du-00 Completed

2000-06-14 00:47:48 13255e-0004dl-00 => |/usr/exim/bin/exim
bowler@??? (bcb@???) <bbowler@???>
D=userforward T=address_pipe

2000-06-14 00:47:48 13255g-0004eA-00 <= bcb@??? U=bcb P=local
S=2435 id=200006140447.AAA59197@???

2000-06-14 00:47:49 13255g-0004eA-00 => bowler@???
R=lookuphost T=remote_smtp H=seadas.bigelow.org [198.116.72.74]

2000-06-14 00:47:49 13255g-0004eA-00 Completed

2000-06-14 00:47:49 13255e-0004dl-00 => |/usr/exim/bin/exim
bowler@??? (bcb@???) <bbowler@???>
D=userforward T=address_pipe

2000-06-14 00:47:49 13255e-0004dl-00 Completed


On the system that originally received the message (alpha1.bigelow.org,
running exim 3.13, redhat 6.1, user=bcb) my .forward file looks like

    # exim filter <<<< ------ Do not delete
    if $header_subject: contains "Data Ready for FTP--Sub"
    then
            pipe "/usr/exim/bin/exim bowler@???"
    endif
    deliver bcb@???


I use the pipe to deliver to the other node so errors come to me, rather
than the original sender. I want a copy delivered locally as confirmation
that the message did come in, hence the final deliver.

On the "ultimate destination" (seadas.bigelow.org, running exim 3.03,
solaris 7, user=bowler) my .forward file looks like

    # exim filter <<<< ----- Do not delete...
    if $header_subject: contains "Data ready for FTP--Sub"
    then
            pipe "/usr/bowler/seawifs_get.pl"
    endif


It all works more or less OK but why does alpha1 deliver it twice (or, what
is causing the second message to come in?)

Bruce
+---------------------------------------------------------------------+
Bruce Bowler            +1.207.633.9600            BBowler@???


Eggheads, unite! You have nothing to lose but your yolks.
- Adlai Stevenson
+---------------------------------------------------------------------+