Re: [Exim] Reject mail based on MAIL FROM from envelope

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Arkadiusz Patyk
CC: exim-users
Sujet: Re: [Exim] Reject mail based on MAIL FROM from envelope
On Mon, 29 Apr 2002, Arkadiusz Patyk wrote:

> I want to reject all posts when MAIL FROM contains
> space for example:
> MAIL FROM: <user1@??? >
> MAIL FROM: <user2@??? >
> MAIL FROM: <user3@??? >
>                              ^-this space

            ^
            ^
            ^
            ^
If you want to be as fussy as that, then you should be wanting to reject
this space as well. It is not defined in the RFC.


I'm afraid Exim is generous about leading and trailing spaces when
parsing addresses.

> 550 rejected: administrative prohibition
> instead of 250 <aaa@???> is syntactically correct


You probably can't do that directly. But you should be able to use the
"S" rewriting flag to rewrite such addresses at SMTP time. Then you
can detect the rewritten address and fail it. This is much easier to do
in Exim 4 than in Exim 3.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.