New System Installation

yum -y install git subversion vim multitail git clone git@git.mattrude.com:secure/bin-scripts /home/matt/bin chown -R matt:matt /home/matt yum -y update reboot

Nginx Web Server
See: Installing Nginx on Fedora from Source yum -y install gcc libxslt-devel gd-devel GeoIP-devel openssl openssl-devel php php-fpm php-gd mkdir -p /var/src cd /var/src svn checkout svn://svn.nginx.org/nginx/trunk nginx cd nginx/ ln auto/configure configure

./configure --user=nginx --group=nginx --prefix=/usr/local --conf-path=/etc/nginx/nginx.conf \ --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid \ --with-http_gzip_static_module --with-http_ssl_module --with-http_stub_status_module && make && make install After you have installed Nginx, you need to start it. To do this on Fedora, create the Nginx INIT script into /etc/init.d named as nginx. chmod 755 /etc/init.d/nginx chkconfig --add nginx chkconfig nginx on chkconfig php-fpm adduser nginx groups nginx service nginx start service php-fpm start

Postfix Server
yum -y install git subversion vim multitail httpd php mod_ssl gcc gnupg make db4-devel db4-devel sqlite \ sqlite-devel mysql-devel pcre pcre-static pcre-devel mercurial gcc autoconf automake libtool perl-Text-Iconv \ gettext gettext-devel gettext-libs openssl openssl-devel sqlite sqlite-devel zlib zlib-devel cyrus-sasl-devel \ cyrus-sasl cyrus-sasl-lib mod_wsgi php-gd php-mysql mysql-server mkdir /var/spool/virtualmailboxes/ echo "virtualmail:x:1000:1000::/var/spool/virtualmailboxes:/sbin/nologin" >> /etc/passwd echo "virtualmail:x:1000:" >> /etc/group adduser -u 500 matt git clone git@git.mattrude.com:secure/bin-scripts /home/matt/bin chown -R matt:matt /home/matt passwd matt

yum -y update reboot

/home/matt/bin/email/build-postfix.sh

chmod 700 /var/spool/virtualmailboxes/ chown -R virtualmail:virtualmail /var/spool/virtualmailboxes/ mkdir -p /usr/local/var/run/dovecot mkdir -p /usr/var/run/dovecot/dict touch /usr/local/var/run/dovecot/dict echo "dovenull:x:87:87::/dev/null:/sbin/nologin" >> /etc/passwd echo "dovecot:x:88:88::/etc/dovecot:/sbin/nologin" >> /etc/passwd /home/matt/bin/email/dovecot-install.sh service postfix start service dovecot start service mysqld start chkconfig postfix on chkconfig dovecot on chkconfig mysqld on