no interactive during postfix install

I try to make the postfix install no need interactive.

I have setting the /var/db/ports/postfix/options

but when I run make install clean

still would ask two question

Code:
You need user "postfix" added to group "mail".
Would you like me to add it [y]? y

and

Code:
Would you like to activate Postfix in /etc/mail/mailer.conf [n]? y
where to setting, let the install no need answer.
 
Define the variable BATCH. Either in your environment, on the make commandline or in /etc/make.conf. See ports(7).
 
Hi SirDice

I have try

Code:
cd /usr/ports/mail/postfix26
make clean
make batch=yes install clean

but still ask me the two question, how to deal with?
 
BATCH, not batch. Everything's case-sensitive in Unix(-like) systems.
 
Back
Top