Ville Walveranta wrote:
On Tue, Nov 18, 2008 at 1:25 PM, mouss <[EMAIL PROTECTED]> wrote:
after some time, a script will save more...
# cat alias-target.users
user1
user2
...
# cat myscript
#!/bin/sh
grep -v "^#" alias-target.users | while read _user; do
echo "[EMAIL PROTECTED] [EMAIL PROTECTED]"
done
From the looks of that the "myscript" can be then referenced from
virtual_alias_maps in main.cf. Yes, having to enter the user list just
once would be even better (easier to maintain, etc.). I'll give it a
try in the morning.
Ville
No, "myscript" is outside of postfix and run as needed.
Shell syntax is not valid inside virtual_alias_maps (or any
postfix map).
I would put this in a Makefile so I could just run "make" and
have it rebuild what needs rebuilding. Here's an example:
http://www.postfix.org/DATABASE_README.html#safe_db
--
Noel Jones