Re: [exim] how to configure only internal email

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Stephen Gran
Date:  
À: Exim Users
Sujet: Re: [exim] how to configure only internal email
On Mon, Jan 17, 2005 at 07:42:24AM +0100, user therion said:
> hello,
> how can I define an email-addy that is only available
> for internal messaging (means system messages and so
> on...)?
> must I define a filter (exim.filter / user .forward)
> or can it be configured in the exim configuration?
> thx in advance


In your rcpt acl:

deny    !hosts      = :
        domains     = mydomain.com
        local_parts = lsearch;/list/of/internal/addresses
        message     = Sorry, internal address only


Could be much smarter (could use a condition with lc:$local_part and
lc:$domain), but this is just off the top of my head. Also, if you
accept the localhost (hosts = :) earlier, you don't need the hosts
condition in the above. This is totally untested, usual caveats, etc.

HTH,
--
--------------------------------------------------------------------------
|  Stephen Gran                  | You will be successful in love.         |
|  steve@???             |                                         |
|  http://www.lobefin.net/~steve |                                         |

--------------------------------------------------------------------------