This example shows how to update the aliases path so we have this standard across all machines in a datacentre, this is a quick hack method. The correct way to fix this in a production would be to use a configuration management system like chef/puppet or cfengine.
PATH=$PATH:/opt/csw/bin:/opt/csw/sbin:/usr/local/bin:/usr/local/postfix/sbin
export PATH
postconf | grep '^alias'
postconf -e alias_maps='dbm:/etc/mail/aliases'
postconf -e alias_database='dbm:/etc/mail/aliases'
newaliases
postconf | grep '^alias'
uname -a | mailx -s "`uname -n`" pcanham@`uname -n`