[Exim] Question about having a pipe handle ALL received mail

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Doug Fields
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] Question about having a pipe handle ALL received mail
Hello all,

I was hoping someone could point me to a reference for what I want to
do with Exim 4:

I would like to configure Exim 4 to accept e-mail just as one would
configure a normal Internet-accessible SMTP mailer:
    a) Accepts mail for "local" domains without authentication
    b) Accepts mail for relay with authentication
        1) From a table in PostgreSQL of users and passwords


However, once Exim decides to accept a message, we'd like ALL messages
to subsequently be delivered to a local program using the pipe
delivery, rather than handled by Exim in any of the usual ways. For
example, it might call a pipe program like this:

delivermail <SMTP_From> <Auth_User_ID> <Remote_IP> <RCPT_TO_1>
<RCPT_TO_2> ...

for example:

delivermail joe@??? joe 1.2.3.4 jim@??? john@???

(I'm willing to have any additional meta-data that Exim has on the
command line as well, such as which IP address was used to connect to
Exim if there were more than one, and so forth.)

Has anyone ever configured Exim 4 in such a fashion? Would you be so
kind as to point me to references (including the Exim 4 book, the
online site, or any other information) about how to configure Exim 4 in
this fashion?

I've been using Exim 3 for almost three years and smail before that
since 1994, so I'm not at all new at Exim, but I have never tried to do
the above type of thing, nor have I ever used Exim 4 until this
project.

Thanks,

Doug