From: Craig Sanders (no email)
Date: Wed Oct 01 2003 - 06:17:46 EDT
On Wed, Oct 01, 2003 at 08:18:00PM +1200, Bojan Zdrnja wrote:
> This so far works ok - if I send an e-mail to that user, he receives his
> e-mail on LMTP host.
>
> Problem I have is with aliases. Those are defined in
> /etc/postfix/virtaliases. The problem is that I have *a lot* of them (ie.
> One alias group goes to like 4000 users, split among several aliases). This
> is an example:
>
> Group userid1,userid2,userid3.....userid400,group1
>
> Group1 userid401,userid402,userid403....userid800,group2
>
> Group2 ... And so on till lets say group8
why not just have an /etc/aliases entry like:
group: :include:/path/to/group.txt
then list all of the members of group in that group.txt file?
you may also need virtual table entries like "group at domain1 group at localhost"
if you need different groups with the same name in different domains then use
different aliases. e.g. group at domain1 and group at domain2 might be defined as follows...
in /etc/postfix/virtual:
group at domain1 group_domain1 at localhost
group at domain2 group_domain2 at localhost
and in /etc/aliases:
group_domain1: :include:/path/to/group_domain1.txt
group_domain2: :include:/path/to/group_domain2.txt
see the man pages for virtual(5) and aliases(5) for more details and related
ideas.
Note that you can (and probably should) also use a mailing list manager (there
are several to choose from - e.g. mailman, majordomo, ecartis, and others) to
manage subscription and unsubscription to these groups. using a real list
manager also allows you to define the list to be a discussion group (anyone/any
member can post) or an announcement-only group (only the moderator or
authorised people can post). list managers also offer optional archiving and
web-based searching and browsing of the archives, and lots of other useful
features.
craig
|
|
|