[exim] Need help with command-line.

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nino MegaDriver
Fecha:  
A: exim-users
Asunto: [exim] Need help with command-line.
Hi all.

I'm developing a mailing list software in Perl and I need to have more
control and debug information on outgoing email messages. For delivery
I'll be invoking exim using command line arguments, piping the message
to it.

What I want/need:

- I want to force exim to immediate delivery the messages, local or
remote, and not just transfer it to the queue for late delivery. Tried
using "-odf" but it seems to immediate delivery only local messages,
remote ones goes to the queue.
- I want exim to output delivery information to STDOUT ou STDERR. For
example, if it tries to delivery a message to
non-existem@??? and it fails, the error is to be written
to STDOUT ou STDERR so I can process it. I've tried using the "-N"
option but it only report error if the recipient is a local address, if
remote, it just send the message nowhere. So, if a message fails with a
"5xx" error, there's no reason on retrying to send and I can
automatically mark the address as bad.
- If immediate delivery fails, only then, the message goes to the normal
queue for later retry and information is written to STDOUT ou STDERR.

In other words, I'd to have ways to control and know what exim is doing
with the messages I'm piping to it.

I've read over and over exim documentation and I haven't found a way to
do it using the command line options, that's why I'm asking for your help.

Thanks in advance,
Antonio.