[exim] re-injecting an e-mail into exim withing a transport …

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Odhiambo G. Washington
Datum:  
To: exim-users
Betreff: [exim] re-injecting an e-mail into exim withing a transport filter

Hello big boys ;)

["Wapende wasipende" is a _swahili_ saying that translates into whether
or not one agrees!]

So I am still in that situation of stupid disclaimers.

I am working on a transport filter but there is something that I still
cannot clearly figure out even after looking at spec.txt.

A shell script I am testing should take the mail in stdin, do some
witchcraft with it and reinject it back into exim for delivery. Here is
the final bit of the concoction being used:

sendmail -f "$@" < ${pssmail};
 {
  if
     [ "$?" = "0" ]
   then
     rm ${pssmail};
   else
     exit 75;
  fi
 }


${pssmail} is the temporary file representing the e-mail that has
been modified, and sendmail == exim.

I need to get the pipe transport to pass the following information
to the script, in the following order, (syntax probably not correct):
will need to check this bit against the pipe|transport docs:

${sender} ${recipient}

Sendmail will then use the -f option for the sender address, with all
remaining addresses being recipient(s).

sendmail -f "$@" < ${pssmail}


I'm not sure about the options I need to use for the re-injection. I
need help.


        cheers
       - wash 
+----------------------------------+-----------------------------------------+
Odhiambo Washington                    . WANANCHI ONLINE LTD (Nairobi, KE)  |
wash _at_ wananchi _ dot _ com        . 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223            . # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121            . (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"  
                         --from a /. post