Peter Taps wrote:
Folks,
I need to associate an external email address for each user on the OpenSolaris
box. Is there a way to create additional properties for a user?
One option if you want the email address to actually work and your box
is configured for email, is to use /etc/mail/aliases:
% cat >> /etc/mail/aliases
user1: ema...@domain1.com
user2: ema...@domain2.com
^D
Then type "newaliases" to update the DB.
Unfortunately you can't then use "getent aliases user1" to do lookups
because this is not supported. Instead you'd need to do the DB accesses
manually (or via something like Mail::ExpandAliases in Perl or the
associated expand-alias command).
The bonus, though, is that if you have email configured then mail to
local users from things like cron jobs will get delivered correctly.
Hugh.
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code