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