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