Email Server

If building a new machine see these notes before setup

Installed FC4 with vim-x11, development tools, development libraries, web server, and system tools enabled.

Rebooted machine and ran first boot program which is automatic. Set the firewall to accept SSH, HTTP, HTTPS, 389, 139.

Email Server Upgrading

Reboot machine again and edit the following files:

( Click on the file to see the edit changes )

/etc/inittab
/etc/profile.d/vim.sh
/etc/bashrc

Log out and log back in

Configure unneeded daemons


cd /usr/local/src 
rpm --import /usr/share/doc/fedora-release-4/RPM-GPG-KEY 
rpm -e sendmail fetchmail mdadm mutt redhat-lsb 
yum groupinstall "Development Tools"
yum install openssl openssl-devel mysql mysql-server mysql-devel httpd httpd-devel mod_ssl cyrus-imapd \
cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5 cyrus-sasl-gssapi cyrus-imapd-utils cyrus-sasl-devel cyrus-imapd-devel \
perl-Cyrus db4 db4-devel pam pam-devel perl-Date-Calc mailman spamassassin openldap openldap-servers geoip-devel \
file-devel pcre-devel pam_mysql


MySQL Config

Install PHP

PEAR

Configure Apache & PHP

phpMyAdmin

apt-get source postfix 
cd /usr/src/redhat 
edit MYSQL 0 to MYSQL 1 in /usr/src/redhat/SPECS/postfix.spec 
rpmbuild -ba SPECS/postfix.spec 
cd RPMS/i386 
rpm -Uvh postfix-2.2.2-2.i386.rpm --replacefiles 
rpm -Uvh postfix-debuginfo-2.2.2-2.i386.rpm --replacefiles 
rpm -Uvh postfix-pflogsumm-2.2.2-2.i386.rpm --replacefiles 

Pam_MySQL

Imap and Postfix config

cd /var/www/html/
wget http://www.web-cyradm.org/web-cyradm-0.5.4-1.tar.gz 
tar -zxvf web-cyradm-0.5.4-1.tar.gz
mv web-cyradm-0.5.4-1 webcyradm

Webcyradm Config


vi /etc/sysconfig/saslauthd

See that this line is there

Mech=pam

ln -s /usr/lib/security/pam_mysql.so /lib/security/pam_mysql.so
cc cyrus-imapd on
cc saslauthd on

At this point test the mail system. Do a reboot and test

Amavisd

Razor Pyzor DCC

ClamAV

Squirrelmail

Mailman

Webmin

Managing Imap...Shared Folders

Horde Imp

Scope!