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 [EMAIL PROTECTED] and
> [EMAIL PROTECTED] 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

Attachment: signature.asc
Description: Digital signature

-- 
## 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/

Reply via email to