Hi, In pkg-install.in it's said if POSTFIX_DEFAULT_MTA=YES then postfix will be set as default mailer in /etc/mail/mailer.conf
So, I do export POSTFIX_DEFAULT_MTA=YES but the only thing it does is setting the default answer to yes. So is it possible to make the installation fully automated, without any ask ? Should we do yes | pkg install postfix ? I think it should be possible to have a non-interactive installation, via an environment variable. This *should* work: --- pkg-install.in 2013-05-09 18:01:41.802404861 +0200 +++ pkg-install.in 2013-05-09 18:06:04.858404947 +0200 @@ -83,7 +83,13 @@ egrep -q "^newaliases.*${PREFIX}/sbin/sendmail" ${MC} ret=$? if [ ${ret} -ne 0 ]; then - if yesno "Would you like to activate Postfix in ${MC}" ${DEFAULT_REPLACE_MAILERCONF}; then + local postfix_ret + if [ -z ${POSTFIX_DEFAULT_MTA_FORCE} ]; then + postfix_ret=$(yesno "Would you like to activate Postfix in ${MC}" ${DEFAULT_REPLACE_MAILERCONF}) + else + postfix_ret=0 + fi + if ${postfix_ret}; then /bin/mv -f ${MC} ${MC}.old echo "#" > ${MC} echo -n "# Execute the Postfix sendmail program" >> ${MC} -- Florent Peterschmitt +33 (0)6 64 33 97 92 flor...@peterschmitt.fr ------------------------ O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
signature.asc
Description: OpenPGP digital signature