Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2003 01:45:07 -0400
From:      Doug Lee <dgl@dlee.org>
To:        freebsd-questions@freebsd.org
Subject:   dynamic mail alias lists?
Message-ID:  <20030923054507.GX29084@kirk.dlee.org>

next in thread | raw e-mail | index | archive | help
Is there a way to make sendmail (or any other MTA for that matter, but
I use sendmail) map an alias to the run of a process that returns the
addresses for it?  I know /etc/[mail/]aliases can forward through a
program, but that's different.  I also know it can read aliases from a
file, but to use that for this, I'd have to make the file a named
pipe.  Named pipes are interesting, but I like to avoid them unless
necessary because accidents can cause infinite program stalls.
Finally, I know some of sendmail's tables (virtual user??) can be used
in place of or in addition to aliases, but I still don't see a way to
use that for this.

What I want to do is to make some of my aliases retrieve their address
lists at run time from a database of my own design that also may be
used for other things.  Example:  A database of users in different
categories, where there are mail aliases for the categories and a way
to get the users in a particular category at run time from the
database.

Please let me know if this is possible--or, for that matter, if I'm
missing an obvious and less bizarre solution.

Please Cc me on all responses.  I subscribe to this list, but a Cc
will get me to notice the reply in hours instead of days or weeks. :)


-- 
Doug Lee           dgl@dlee.org        http://www.dlee.org
Bartimaeus Group   doug@bartsite.com   http://www.bartsite.com
"It is difficult to produce a television documentary that is both
incisive and probing when every twelve minutes one is interrupted by
dancing rabbits singing about toilet paper."  --Rod Serling



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030923054507.GX29084>