Re: [EXIM] Rejecting local addresses from remote hosts

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Craig Foster
Cc: exim-users
Asunto: Re: [EXIM] Rejecting local addresses from remote hosts
On Mon, 30 Mar 1998, Craig Foster wrote:

> Forgive me if I've missed something obvious in the docs, but here's
> my query. I'd like to be able to reject messages with an envelope
> sender of user@??? which come from hosts that are not in
> my.domain. I see that sender_verify works if "user" is not a
> genuine local user, but I don't know how to deal with, say, "mail from:
> postmaster@???" that's from outside my network. This is for
> a campus mail hub that does controlled relaying.


I would not advise you to do this. What if user@??? sends mail out
to other.user@???, but other.user@??? is away
visiting, and has set up a .forward file, and it just so happens that he
is visiting your part of the world, so the message gets forwarded back
to your host from outside...

This can be quite common in academic institutions.

Another case is a mailing list that doesn't rewrite the envelope sender
(a bad idea, but some do exist). Yet another case is the possibility of
a remote recipient "forwarding" the message to someone else on your host
in such a way as to preserve the original sender ("bounce" in Pine).
This also happens.

If you really want to do it, the only way is via a system filter with a
construction such as

if $sender_host_address does not begin 123.123 and
$sender_address ends @my.domain
then
...

(note that "begin" and "end" are new features in 1.90, released today).     


> Very impressed with Exim and the docs, esp. compared with PP manual...


Thanks.

-- 
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714



--
*** Exim information can be found at http://www.exim.org/ ***