On Wednesday 12 September 2007 09:40, Adrian Chapela wrote:
> I want to know if exists something group or rule to send a message to an
> address and then re-send this message to all users of a domain. I want
> to  make a rule to accept this message only from one IP. Could be this
> possible ??

You mean you want a particular address to be an alias for all addresses in a 
domain, like "[EMAIL PROTECTED] -> [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED], ...", except that [EMAIL PROTECTED] is only recognized 
if the mail comes from a particular IP address?

That can be done, but you need to somehow tell Exim who "all users" are. How 
to do that depends on how you currently define valid users. A simple example 
for a database setup:

everybody_router:
  driver = redirect
  condition = ${if match_ip{$sender_host_address}{127.0.0.1:192.168.42.17}}
  local_parts = everybody
  data = ${lookup mysql{SELECT username FROM user INNER JOIN domain \
                                          ON user.domain = domain.id \
                         WHERE domain.name = '${quote_mysql:$domain}'}}

-- 
Magnus Holmgren        [EMAIL PROTECTED]
                       (No Cc of list mail needed, thanks)

Attachment: pgp8y2UsjC9K6.pgp
Description: PGP 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