Re: [Exim] Exim 4.24 final catch router config

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Edgar Lovecraft
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] Exim 4.24 final catch router config
Peter Simmons wrote:
> We have Exim 4.24 setup here as our MTA it works great except for one
> thing.
> We want to have a final router setup that catches anything that was
> missed by the other routers that then uses a transport we have defined
> to take care of that.
>
> We have tried the following router config but it doesn't make a match on
> anything for some reason. We have looked through the documentation (it's
> pretty good so well done) and will keep going through but haven't found
> anything as yet.
>
> ---------------router config snippet ----------------------
>
> non_exist:
>    driver = accept
>    transport = non_exist_reply
>    no_verify

>
> -------------------end snippet-----------------------------
>
> ----------------transport snippet -------------------------
>
> non_exist_reply:
>    driver = autoreply
>    user = mail
>    to = $sender_address
>    subject = User does not exist
>    text = You sent mail to $local_part. That's not a valid user here.
> \           The subject was: $subject.

>
> ---------------------end snippet---------------------------
>
> The router is placed last out of the routers and the transport is last
> as well.
>
> Any help or insight much appreciated.
>

--
This is what I use, the 'fail text' is inline, so you do not need to accept
the message at all, and then send it to a seperate transport...
Why did you set it up that way??

::Start of this router
##########################################################################
# Router for Rejecting undeliverable (failed) messages
##########################################################################
    #userRoutingFailed is used to send the 'Reject Message' back to a
    #    sender when a message has come this far, should never happen,
    #    but who knows :)
userRoutingFailed:
    #Redirect driver is used here so that we can :FAIL: the message.
  driver                         = redirect
    #We do not want to use the router for any sender/rcpt verification
  verify                         = no
    #The data is :FAIL: so that a 'bounce' message is sent to the
    #    originator of the message.
  data                           = :fail: \
    Undeliverable Message Delivery: \"$local_part@$domain\"
    #ALLOW_FAIL so that we can 'Reject' the unwanted message
  allow_fail
    #The NO_MORE statement insures that we do not look to any other routers
    #    when a message is successfully found to use this router.
  no_more
::End of this router


--EAL--