Re: [Exim] reject a recipient after DATA

Etusivu
Poista viesti
Vastaa
Lähettäjä: Derrick 'dman' Hudson
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [Exim] reject a recipient after DATA
--
On Thu, Jun 06, 2002 at 12:12:27PM -0400, Greg Ward wrote:
| On 06 June 2002, Derrick 'dman' Hudson said:
| > I want to reject all mesasges to "bounceme@???", but I want
| > to do it _after_ the local_scan() has been run (to give it a chance to
| > reject first). I want to do this to allow people to experiment with
| > sa-exim before they install it themself by running the mail through my
| > system. The purpose of the failure (with suitable message) is to
| > notify them that the message got past SA. (the "Dave.Null" address
| > works satisfactorily, though :-)).

|
| Do you insist that the message be rejected at SMTP-time? If not, maybe
| something like this:

|
| begin routers

|
| [...]

|
|   bounceme_real:
|     driver = accept
|     local_part = bounceme
|     no_verify
|     transport = bounceme_autoreply

|
|   bounceme_verify:
|     driver = accept
|     local_part = bounceme
|     new_address = dman@???


Starting with this (which doesn't quite work as-is, btw) and
experimenting, I came up with the following :

1) in the RCPT ACL :

    # bounceme request from <> -- bounce would freeze
    deny    local_parts = ^.*bounceme.*
            senders     = :
            log_message = "bounceme request from <>"
            message     = "can't \"bounceme\" from <>"


    # accept now, bounce later :-)
    accept  recipients  = bounceme



2) in the DATA ACL :

    deny    condition   = ${if match {$recipients} {"bounceme"} {1}{0}}
            log_message = "bounceme request"
            message     = "You asked for a bounce :-)."



However, in doing this, I discovered that 'deny' commands in the DATA
ACL don't result in a 5xx response, but rather result in a new bounce
message being generated. That occurs for both this deny command and
the other one I tested. I re-scanned the spec and didn't see any
mention of that behavior. The result of that is that the data ACL is
no better for rejecting mail than the system filter is (both generate
new bounce messages), and the system filter is easier to work with. I
wonder if I did something wrong (again :-)) or if that's an oops in
exim.

-D

--

The heart is deceitful above all things
    and beyond cure.
    Who can understand it?


I the Lord search the heart
    and examine the mind,
to reward a man according to his conduct,
    according to what his deeds deserve.


        Jeremiah 17:9-10


GnuPG key : http://dman.ddts.net/~dman/public_key.gpg

--
[ Content of type application/pgp-signature deleted ]
--