Re: [Exim] Group Mailing

Top Page
Delete this message
Reply to this message
Author: David Woodhouse
Date:  
To: Suresh Ramasubramanian
CC: Martin Ritchie, exim-users
Subject: Re: [Exim] Group Mailing
On Wed, 2004-02-04 at 21:17 +0530, Suresh Ramasubramanian wrote:
> Martin Ritchie [2/4/2004 8:47 PM] :
>
> > Hi all,
> > Forgive me if I've over looked this in the Docs.
> >
> > I was looking for a way to send mail to all members of a unix group.
> > i.e. team1, staff, etc. Is there a simple tweak to the local delivery
> > rules that I'm missing or is it not possible?
>
> /etc/aliases


You're either too sober or not bored enough by the meeting you're in. Or
both. Untested....

unix_group_aliases:
driver = redirect
domains = +local_domains
local_parts = lsearch;/etc/group
qualify_preserve_domain
data = ${sg{${lookup{$local_part}lsearch{/etc/group}}}{:[^:]*:[0-9]:(.*)}{\1}}
redirect_router = local_delivery

Don't try it without a redirect_router :)

--
dwmw2