You are on page 1of 2

Configuraes do Servidor de E-mail

Pr-Configurao
hostname
echo mail > /etc/hostname hostname -F /etc/hostname

em /etc/hosts
127.0.0.1 mail.exemplo.com mail localhost localhost.localdomain

Instalando
cd /usr/src apt-get update apt-get upgrade apt-get install -y dialog bzip2 wget http://iredmail.googlecode.com/files/iRedMail-0.x.y.tar.bz2 tar jxvf iRedMail-0.x.y.tar.bz2 cd iRedMail-0.x.y/pkgs/ sh get_all.sh cd .. sh iRedMail.sh apt-get install postgrey

Com roundcubemail-0.X.Y
wget -c http://ufpr.dl.sourceforge.net/project/roundcubemail/roundcubemail/0.x.y/roundcubemail-0.x.y.tar.gz tar zxvf roundcubemail-0.x.y.tar.gz mv roundcubemail-0.x.y /usr/share/apache2/ cd /usr/share/apache2/ cp roundcubemail/config/* roundcubemail-0.x.y/config/ chown -R www-data\: roundcubemail-0.x.y/ sed -i 's/roundcubemail/roundcube/g' roundcubemail-0.x.y/config/db.inc.php sed -i "1s/^/use roundcube;\n/" roundcubemail-0.x.y/SQL/mysql.initial.sql sed -i "1s/^/grant all on roundcube.* to roundcube@localhost; \n/" roundcubemail-0.x.y/SQL/mysql.initial.sql sed -i "1s/^/create database roundcube;\n/" roundcubemail-0.x.y/SQL/mysql.initial.sql

No mysql
mysql -u root -p create database roundcube; use roundcube;

source roundcubemail-0.x.y/SQL/mysql.initial.sql grant all on roundcube.* to roundcube@localhost;

no /etc/apache2/conf.d/roundcubemail.conf adicione
Alias /webmail "/usr/share/apache2/roundcubemail-0.x.y/" <Directory "/usr/share/apache2/roundcubemail-0.x.y/"> Options -Indexes </Directory>

e comente a linha 12 reinicie as configuraes


/etc/init.d/apache2 reload

Removendo iredmail
wget http://iredmail.googlecode.com/hg/extra/clear_iredmail.sh mv clear_iredmail.sh tools/ && cd tools/ bash clear_iredmail.sh rm -f /usr/src/iRedMail-0.x.y/./.iRedMail.installation.status

Testar antivirus
http://pt.wikipedia.org/wiki/EICAR_%28arquivo_de_teste%29 http://www.eicar.org/anti_virus_test_file.htm

Permisses
http://www.iredmail.org/wiki/index.php?title=Addition/Protect.Configure.Files

dkim
http://www.myiptest.com/staticpages/index.php/DomainKeys-DKIM-SPF-Validator-test http://code.google.com/p/iredmail/wiki/DNS_DKIM

You might also like