Re: [exim] ACL for certain aliases

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Dave Evans
Datum:  
To: exim-users
Betreff: Re: [exim] ACL for certain aliases
On Mon, Mar 24, 2008 at 10:32:01PM -0700, Linux Solutions wrote:
> Hello,
>
> I'm absolutely new to Exim.


Welcome :-)

> 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@??? 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

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey