[prev in list] [next in list] [prev in thread] [next in thread] 

List:       exim-users
Subject:    Re: [exim] ACL for certain aliases
From:       "Linux Solutions" <linuxbsd2004 () gmail ! com>
Date:       2008-03-28 18:20:43
Message-ID: 2411f6b20803281120q627e36fay93dc4efad029741c () mail ! gmail ! com
[Download RAW message or body]

Resend .. this didn't make it the first time ....

On Wed, Mar 26, 2008 at 10:52 AM, Linux Solutions <linuxbsd2004@gmail.com>
wrote:

>
> > I'm absolutely new to Exim.
> >
> > Welcome :-)
>
>
>
> It's been interesting so far.  I come from Postfix and inherited a EXIM
> server ;-).
>
>
>
> >
> > > I'd like to write a ACL to send email to certain alias addresses from
> > the
> > > senders on the same domain.
> > >
> > > For example,
> > >
> > > I'd like only users from example.com  to send emails to
> > all@example.com and
> > > info@example which are aliases in /etc/aliases
> >
> > There will be many ways to do this, depending on your exact
> > requirements.  For
> > example, you could have a second lookup file which names the accounts
> > which
> > are restricted:
> >
> >  # in /etc/exim/restricted-aliases :
> >  all
> >  example
> >
> > then have an ACL which disallows non-local access to those accounts:
> >
> >  deny
> >    domains = example.com
> >    local_parts = /etc/exim/restricted-aliases
> >    hosts = !+local_hosts
> >    message = Some message here ...
> >
> > where the +local_hosts hostlist defines which hosts are allowed to
> > address the
> > restricted accounts.
> >
> > On the other hand, if you want more flexibility (multiple domains,
> > multiple
> > definitions of who can bypass the restriction, etc), that'll almost
> > certainly
> > be possible too, as long as you can define what it is exactly that you
> > want.
> >
> > More info:
> >
> > http://www.exim.org/exim-html-current/doc/html/spec_html/ch40.html#SECTaclconditions
>
>
>
> Thanks for all the info.   The above example doesn't work for some reason.
> Here's more info ...
>
> In exim.conf
>
> qualify_domain is set to example.com.  This is the only domain on the
> server. The above rule as-is, disallows even users from example.com from
> sending emails to the all@example.com and info@example.com.
>
> I modified the above ACL to,
>
>  deny message = You should not be sending me emails. Go away..
>    domains = example.com
>    local_parts = /etc/exim/restricted-aliases
>
> I want user1@example.com, user2@example.com ..and so on to send emails to
> all@example.com and info@example.com.  user1@someotherexample.com should
> get the deny message.
>
> In /etc/exim/restricted-aliases i have,
> all
> info
>
> My /etc/aliases has
>
> all: user1, user2, user3, user4
> info: user1. user4
>
>
> Is local_hosts line necessary? I'm sure I'm missing something or have
> misunderstood :-)
>
> Joey
>
-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic