Here is what I want to do:
I have a group of users whose user names have certain patterns. For
example, all their names start with "john", like "john1234", "john
4567", etc. Those users do not exist on my system (Linux), but they
exist in a different database, along with their real email addresses.
I want to be able to handle emails for such users, like
this user's real email and forward the mail to that address.
I want to use a mail forward program to handle it, but I need to trigger
this program. Normally one can put a line in .forward file under the
home directory of the user, or add an alias line in /etc/aliases file.
Since the number of such users are quite large, I do not want to create
all such users in my local system (so no home directory), nor do I want
to create aliases in /etc/aliases file for all of them (too long).
I wonder if there is a way to specify a group of users based on certain
pattern matching with regular expression in /etc/aliases file to achieve
This is for a Linux, RedHat 6.1, kernel 2.2.12-20smp, sendmail 8.9.3.
Sent via Deja.com http://www.deja.com/
Before you buy.