03 - Install Dovecot, Postfix and Apache

### Install Dovecot 2
# cd /usr/ports/mail/dovecot2
# make config;
[ SELECT MYSQL, SSL ] Other options may be selected, to taste
# portupgrade -Np
# echo 'dovecot_enable="YES"' >> /etc/rc.conf
[ do not start dovecot now ]


### Install Postfix
# cd /usr/ports/mail/postfix28/; make config;
[ SELECT PCRE, DOVECOT2, TLS, MYSQL, SPF ] Other options may be selected, to taste. Avoid conflicts. VDA is not required if the delivery agent will be Dovecot-LDA
[ when compiling pcre, un-select JIT compiler support if you have problems with it ]
[ let installer add postfix to mailer.conf when asked ]

### fix Sendmail/Postfix MTA startup and periodic scripts
# cat << DELIMITER >> /etc/rc.conf
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
DELIMITER

# cat < DELIMITER >> /etc/periodic.conf

daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"
DELIMITER

### enable postfix automatic startup
# echo 'postfix_enable="YES"' >> /etc/rc.conf
[ do not start postfix now ]

### Install apache
# cd /usr/ports/www/apache22; make config
[ Uncheck SSL only if you DON'T want to use https on this server ]
/usr/ports/www/apache22# portupgrade -Np
[ when python27 package is compiled, uncheck EXAMPLES if not needed ]
[ when ndbm package is compiled, leave COMPAT unchecked if not needed ]
[ when apr-ipv6-devrandom-gdbm-db42 package is compiled, uncheck what you don't desire from THREADS, DEVRANDOM, BDB, GDBM ]
[ enable automatic startup for apache22 ]
# echo 'apache22_enable="YES"' >> /etc/rc.conf


Prev: Install the database server, MySQL
Next: Install PHP, Postfixadmin, perform initial configuration for PHP and apache
Comments