Re: [exim] Redirect Router: forced to fail, with a custom e…

Pàgina inicial
Delete this message
Reply to this message
Autor: Chris Wilson
Data:  
A: Ron White
CC: exim users
Assumpte: Re: [exim] Redirect Router: forced to fail, with a custom error message?
On Tue, 27 Apr 2010, Ron White wrote:

> Reading through the docs:
> http://exim.org/exim-html-4.50/doc/html/spec_22.html#CHAP22
> I was really interested to read this:
>
> The incoming address can be redirected in several different ways:... It
> can be forced to fail, with a custom error message.
>
> This would be really handy for 'noreply' and 'goneaway' type users so I
> thought I'd give it a try. I can get it to match OK with this router:
> #RARE CASE ROUTER - USER IS NOT ALLOWED INBOUND MAIL
> reject_noreply:
> driver          = redirect
> data            = noreply@???,:fail: Gone away, no forwarding
> address
> allow_fail      = true

>
> My objective would be to give a 550 'Gone away, no forwarding address'
> with a connection drop at this point.
> However, I'm not sure I'm on the right track because I get a 250
> Accepted after the rcpt to for the address:


I think this is because delivery happens after the message has been
accepted, so routers and transports can't affect SMTP-time behaviour. I'd
recommend doing this in an ACL instead, with e.g.

deny
     recipients = noreply@???
     message = Gone away, no forwarding address


Cheers, Chris.
-- 
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |