the build but not released[addons]name=CentOS-$releasever - Addonsmirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=addons#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5#additional packages that may be useful[extras]name=CentOS-$releasever - Extrasmirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=extras#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plusmirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=centosplus#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/gpgcheck=1enabled=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5priority=2#contrib - packages by Centos Users[contrib]name=CentOS-$releasever - Contribmirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=contrib#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/gpgcheck=1enabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5Instalacao dos pacotes Apos os ajustes na configuracao dos repositorios, podemos agora iniciar a instalacao dos pacotes que serao utilizados na solucao, conforme abaixo: # yum install spamassassin postfix clamav mysql-server mysql-devel httpd dovecot mod_ssl mod_php php-mysql php-mbstring php-devel php-xml php-imap make gcc php-pear php-mcrypt Instalando a extensao fileinfo: # pecl install fileinfoAdicione a extensao no /etc/php.ini: extension=fileinfo.so Instalacao PostfixAdmin Fazer o download da ultima versao do Postfix Admin direto da pagina oficial do projeto: # wget http://downloads.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-2.3.3/postfixadmin-2.3.3.tar.gz?r=&ts=1304963538&use_mirror=jaist# tar -xvzf postfixadmin-2.3.3.tar.gz -C /var/www# mv /var/www/postfixadmin-2.3.3 /var/www/postfixadmin Configurando o MySQL para ser iniciado automaticamente:# chkconfig --levels 345 mysqld on Iniciando o MySQL: # /etc/init.d/mysqld start Criando o usuario e a estrutura do Postfix no MySQL: # mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.0.77 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE DATABASE mails; Query OK, 1 row affected (0.00 sec)mysql> GRANT ALL ON mails.* TO postfix@localhost IDENTIFIED BY 'badtux';Query OK, 0 rows affected (0.00 sec) mysql> USE mails;Database changed mysql> CREATE TABLE `alias` ( -> `address` VARCHAR(255) NOT NULL DEFAULT '', -> `goto` text NOT NULL, -> `domain` VARCHAR(255) NOT NULL DEFAULT '', -> `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', -> `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', -> `active` tinyint(1) NOT NULL DEFAULT '1', -> PRIMARY KEY (address) -> ) TYPE=MyISAM COMMENT='Postfix Admin - Virtual Aliases'; Query OK, 0 rows affected, 1 warning (0.04 sec) mysql> CREATE TABLE `domain` ( -> `domain` VARCHAR(255) NOT NULL DEFAULT '', -> `description` VARCHAR(255) NOT NULL DEFAULT '', -> `aliases` INT(10) NOT NULL DEFAULT '0', -> `mailboxes` INT(10) NOT NULL DEFAULT '0', -> `maxquota` INT(10) NOT NULL DEFAULT '0', -> `transport` VARCHAR(255) DEFAULT NULL, -> `backupmx` tinyint(1) NOT NULL DEFAULT '0', -> `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', -> `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', -> `active` tinyint(1) NOT NULL DEFAULT '1', -> PRIMARY KEY (DOMAIN) -> ) TYPE=MyISAM COMMENT='Postfix Admin - Virtual Domains'; Query OK, 0 rows affected, 1 warning (0.04 sec) mysql> CREATE TABLE `mailbox` ( -> `username` VARCHAR(255) NOT NULL DEFAULT '', -> `password` VARCHAR(255) NOT NULL DEFAULT '', -> `name` VARCHAR(255) NOT NULL DEFAULT '', -> `maildir` VARCHAR(255) NOT NULL DEFAULT '', -> `quota` INT(10) NOT NULL DEFAULT '0', -> `domain` VARCHAR(255) NOT NULL DEFAULT '', -> `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', -> `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', -> `active` tinyint(1) NOT NULL DEFAULT '1', -> PRIMARY KEY (`username`) -> ) TYPE=MyISAM COMMENT='Postfix Admin - Virtual Mailboxes'; Query OK, 0 rows affected, 1 warning (0.09 sec) mysql> CREATE TABLE popbsmtp ( -> address varchar(39) not null, -> last_seen datetime default '0000-00-00 00:00:00' not null, -> primary key (address) -> ); Query OK, 0 rows affected (0.01 sec) Configuracao Apache para o PostfixAdmin Acessando o /etc/httpd/conf/httpd.conf, iremos comentar as linhas abaixo:#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so#LoadModule