PATH=/usr/bin:/local/usr/bin:/usr/local/bin:/usr/sbin:/sbin export PATH # check, whether the original sendmail packages are installed pkginfo -q SUNWsndmr if [ $? -eq 0 ]; then SUNSMR="true" fi pkginfo -q SUNWsndmu if [ $? -eq 0 ]; then SUNSMU="true" fi BREAK= if [ -n "$SUNSMR" -o -n "$SUNSMU" ]; then echo " " echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' echo "WARNING:" echo " This package interferes with the original SUN packages SUNWsndmu" echo " and SUNWsndmr. You should remove them, since this is a complete" echo " replacement of these packages. Otherwise you will overwrite some" echo " original stuff and future Sun patches may overwrite parts of the" echo " new package without any notice or patching may even fail!" echo " " echo "NOTE:" echo " When you 'pkgrm SUNWsndmr', the following files are removed as well:" echo " - /etc/aliases" echo " - /etc/mail/aliases" echo " - /etc/mail/local-host-names" echo " - /etc/mail/trusted-users" echo " In case you have modified them, you should make a copy, before" echo " you remove the SUNWsndmr package!" echo " " echo "Please remove the original packages (SUNWsndmu, SUNWsndmr) and try it again." echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' echo " " BREAK="true" fi ETCDIR=${PKG_INSTALL_ROOT}/etc # check, whether the group smmsp exists egrep -s '^smmsp:' ${ETCDIR}/group if [ $? -ne 0 ]; then echo " " echo "WARNING:" echo " The new security system for sendmail requires a group 'smmsp'." echo " This group is not part of your ${ETCDIR}/group ! Please setup" echo " such an group! E.g. by adding the following to ${ETCDIR}/group:" echo " smmsp::25:" echo " " BREAK="true" fi # check, whether a user smmsp exists egrep -s '^smmsp:' ${ETCDIR}/passwd 2>/dev/null if [ $? -ne 0 ]; then echo " " echo "WARNING:" echo " The new security system for sendmail requires a user 'smmsp'." echo " This user is not part of your ${ETCDIR}/passwd ! Please setup" echo " such an account! E.g.:" echo " smmsp:x:25:25:SendMail Mail Submission Program:/:" echo " " BREAK="true" fi if [ "$BREAK" = "true" ]; then exit 3 fi exit 0