4077N/A# The contents of this file are subject to the terms of the 4077N/A# Common Development and Distribution License (the "License"). 4077N/A# You may not use this file except in compliance with the License. 4077N/A# See the License for the specific language governing permissions 4077N/A# and limitations under the License. 4077N/A# When distributing Covered Code, include this CDDL HEADER in each 4077N/A# If applicable, add the following below this CDDL HEADER, with the 4077N/A# fields enclosed by brackets "[]" replaced with your own identifying 4077N/A# information: Portions Copyright [yyyy] [name of copyright owner] 4077N/A# Copyright (c) 1991, 2015, Oracle and/or its affiliates. All rights reserved. 4077N/A # Check the alias configuration. Per 4077N/A # On systems with NIS, the default is to search the local alias 4077N/A # database, then the NIS alias database. 4077N/A # All Solaris systems ship "with NIS", but unless NIS is configured for 4077N/A # aliases, this will cause problems, so check and tweak the default if 4077N/A # We have the default Postfix setting. 4077N/A # NIS is not configured, so change the Postfix setting. 4077N/A # Check for LDAP: if configured via the switch, then (if needed) 4077N/A # create $LDAP_ALIASES and configure in alias_maps. 4077N/A # LDAP is configured for aliases. 4077N/A # $LDAP_ALIASES does not exist yet, so create it. 4077N/A echo "result_attribute = mgrpRFC822MailMember" >> \ 4077N/A # No "ldap:" entry yet in alias_maps, so add one. 4077N/A# First, make sure we have a valid domain name. 4077N/A # Fully qualified: we're set. 4077N/A # Unqualified; fall back to postconf. 4077N/A # Fully qualified: we're set. 4077N/A echo "Domain name cannot be determined." 4077N/A echo "Either set hostname to a fully-qualified value," 4077N/A# Second, tweak aliases for NIS and LDAP as needed. 4077N/A# Finally, start the daemon.