Re: Feature request.

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Philip Hazel
日付:  
To: m.hampson
CC: exim-users
題目: Re: Feature request.
On Thu, 31 Oct 1996 m.hampson@??? wrote:

> I'd like to do the following to quickly and easily reject mail from
> certain people....
>
> sender_reject_recipients=lsearch;/usr/local/exim/etc/Spammers
>
> Unfortunately I can't 'cos sender_reject_recipients is a
> string_list. Any chance of this being changed...


Actually, the domain parts are compared in exactly the same way as a
domain in a domain-list. I updated the new 0.57 documentation to say
this. However, that doesn't help when you want to put entire addresses
(including local parts) into a file.

Unfortunately, I did what in retrospect appears to have been a silly
thing when I implemented sender_reject. If there is no @ in a string,
it is taken as a domain-only setting. The idea was that you could say

sender_reject = interramp.com

to reject all mail from there. Of course, this just saves you a bit of
typing, since

sender_reject = *@interramp.com

achieves the same effect. The problem is that an entry like

sender_reject = lsearch;/some/file/or/other

will do a match on the domain only, not on the local part. Thus you
can't have a file of complete addresses.

Question: Do you (collectively) think I should make an incompatible
change to this? The new spec would be

. If the string starts lsearch; (etc.) then do a check on the complete
address. If you want the effect of *@ then you have to put something
like

sender_reject = *@lsearch;/thing/thing

. Otherwise as now, where the lack of @ does a match only on the domain.
Alternatively, the lack of @ could be diagnosed as a configuration
error.

Views, please! I would certainly like to make a change, because we could
use this here.

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