Re: [Exim] Recipient Verification

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Ollie Cook
Date:  
À: Philip Hazel
CC: exim-users
Sujet: Re: [Exim] Recipient Verification
On Thu, Oct 18, 2001 at 09:38:51AM +0100, Philip Hazel wrote:
> On Wed, 17 Oct 2001, Ollie Cook wrote:
>
> The remote user knows only the address localpart@???
> and one shouldn't really expose the inner workings of the routing
> externally. That's why the message sent to the remote hosts includes the
> original address and not anything that it's been converted into.


Yeah I see that logic.

The assumption about 'local_parts' might have thrown remote site
admins, though.

> > So, it would seem from an operational point of view, Exim is doing what
> > I think it ought to be doing - it's just that the error message threw
> > me a bit.
>
> You know too much! :-)


;-)

> > Philip, would it be simple to fix-up the 550 message that Exim returns,
> > in this situation, or shall I just wait for Exim 4 and modify the code
> > to just say "No such user here" in the interim?
>
> Wait for Exim 4. And consider how much internal information you do want
> to expose.


I've just patched it so it doesn't confuse [me]. Here it is for completeness'
sake, and in case anyone needs it in the future. It's not the most exciting
of patches though! :)

--- src/smtp_in.c.orig  Thu Oct 18 13:08:44 2001
+++ src/smtp_in.c       Thu Oct 18 13:06:07 2001
@@ -3076,8 +3076,9 @@
           {
           char *at = strrchr(orig_receiver, '@');
           if (at == NULL) at = orig_receiver + (int)strlen(orig_receiver);
-          s = string_sprintf("550 Unknown local part %.*s in <%s>",
-            at - orig_receiver, orig_receiver, orig_receiver);
+          /* s = string_sprintf("550 Unknown local part %.*s in <%s>",
+            at - orig_receiver, orig_receiver, orig_receiver); */
+          s = string_sprintf("550 Unknown recipient %s", orig_receiver);
           }
         else s = string_sprintf("550 Cannot route to <%s>", orig_receiver);


Cheers,

Ollie

-- 
Oliver Cook    Systems Administrator, ClaraNET
ollie@???               020 7903 3065