[exim] tricky pipe transport options

Etusivu
Poista viesti
Vastaa
Lähettäjä: Steffen Heil
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] tricky pipe transport options
Hi

I want to use pipetransport to pass a mail to a web formular.
(Our CMS system shall interpret that mails.)

How what I have working is the following:

I have a router, which correctly selects these mails.
I have a transport, which uses use_shell to invoke a script which calls curl
with parameters.

The file IS uploaded correctly.
My problem is that I have no control over problems that may arise.
I want to archieve the following:

If curl itself fails, delivery should be defered (CMS may be down, http
proxy may be down, ...)
If curl itself fails for a longer period, delivery should be threaten as
"failed".
If curl returns an error message from our CMS, delivery should be threaten
as "failed".

Threaten as failed should make exim deliver that mail into a special support
mailbox for human inspection.

Currently exim bounces on failure. And I don't even know what happens to the
response of our CMS system. (http response).

I think the destinction between correct and incorrect answers of your CMS
system should be handable by the script that calls exim. I will need to
learn more shell scripting for that one.

However I have no glue, how to tell exim to deliver a "failed" mail to
another mailbox.

Anyone any clue?

Regards,
Steffen