Re: [exim] Is there a way I can check a file for valid users…

Inizio della pagina
Delete this message
Reply to this message
Autore: Magnus Holmgren
Data:  
To: exim-users
Oggetto: Re: [exim] Is there a way I can check a file for valid users?
On söndagen den 23 mars 2008, Robert Nicholson wrote:
> In my setup I have a file that contains the valid users for my domain
> and any mail to any other user than those should be binned immediately.
>
> Can anybody tell me how in my .forward (note I only control .forward)
> can I setup the construct to check the contents user portion of the
> email address against a file containing valid users.
>
> So $header_to: would have username@domainname


First of all, you don't use $header_to: to decide to whom the message is
addressed; you use $local_part and $domain.

> I want to check username against a file of valid users I don't want to
> have to have that list in both .forward "literally" and the file
> that's already maintained. I'd rather it simply use the file as it's
> defined now.


Unless forbidden, you may be able to use the ${lookup} expansion item
described in chapter 11 of the documentation.

It would still be much preferable if the mail service provider would let you
list valid users in a way that allows Exim to verify the recipients before
accepting them. Otherwise you should neither bounce (causing backscatter) nor
discard bad recipients (in case someone misspells an address), but store
everything and manually sort the misspellings from the spam.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)