# $Id: postinstall,v 1.2 2004/05/29 21:20:29 elkner Exp $ if [ -z "$PKG_INSTALL_ROOT" ]; then BASE="" else BASE=${PKG_INSTALL_ROOT} fi if [ ! -f ${BASE}/etc/mail/milter-regex.conf ]; then if [ -f ${BASE}/etc/mail/milter-regex.conf.default ]; then cp -p ${BASE}/etc/mail/milter-regex.conf.default ${BASE}/etc/mail/milter-regex.conf fi else echo " /etc/mail/milter-regex.conf file found - fine." fi echo " To start and stop the milter-regex filter daemon immediately, use svcadm enable regexmilter " if [ ! -r ${BASE}/var/milter ]; then mkdir -p ${BASE}/var/milter 2>/dev/null chmod 0755 ${BASE}/var/milter 2>/dev/null chown smmsp:daemon ${BASE}/var/milter 2>/dev/null fi echo " To activate the milter-regex filter in sendmail, you should add the following line to your sendmail m4 configuration file (e.g. server.mc), generate a new sendmail.cf and finally restart sendmail: INPUT_MAIL_FILTER(\`milter-regex',\`S=local:/var/milter/milter-regex.sock,T=C:10s;S:10s;R:20s;E:1m')"