Mudanças entre as edições de "Iredmail"

De MochilaWiki
Ir para navegaçãoIr para pesquisar
Linha 7: Linha 7:
  
 
hostname
 
hostname
echo mail > /etc/hostname
+
<source lang="bash">
hostname -F /etc/hostname
+
echo mail > /etc/hostname
 
+
hostname -F /etc/hostname
 +
</source>
 
em /etc/hosts
 
em /etc/hosts
 
  127.0.0.1  mail.quijaua.net mail localhost localhost.localdomain
 
  127.0.0.1  mail.quijaua.net mail localhost localhost.localdomain
Linha 15: Linha 16:
  
 
== instalando ==
 
== instalando ==
cd /usr/src
+
<source lang="bash">
apt-get update
+
cd /usr/src
apt-get upgrade
+
apt-get update
apt-get install -y dialog bzip2
+
apt-get upgrade
wget http://iredmail.googlecode.com/files/iRedMail-0.6.1.tar.bz2
+
apt-get install -y dialog bzip2
tar jxvf iRedMail-0.6.1.tar.bz2
+
wget http://iredmail.googlecode.com/files/iRedMail-0.6.1.tar.bz2
cd iRedMail-0.6.1/pkgs/
+
tar jxvf iRedMail-0.6.1.tar.bz2
sh get_all.sh
+
cd iRedMail-0.6.1/pkgs/
cd ..
+
sh get_all.sh
sh iRedMail.sh
+
cd ..
apt-get install postgrey
+
sh iRedMail.sh
 +
apt-get install postgrey
 +
</source>
  
 
== com roundcubemail-0.4.2 ==
 
== com roundcubemail-0.4.2 ==
wget -c http://ufpr.dl.sourceforge.net/project/roundcubemail/roundcubemail/0.4.2/roundcubemail-0.4.2.tar.gz
+
<source lang="bash">
tar zxvf roundcubemail-0.4.2.tar.gz
+
wget -c http://ufpr.dl.sourceforge.net/project/roundcubemail/roundcubemail/0.4.2/roundcubemail-0.4.2.tar.gz
mv roundcubemail-0.4.2 /usr/share/apache2/
+
tar zxvf roundcubemail-0.4.2.tar.gz
cd /usr/share/apache2/
+
mv roundcubemail-0.4.2 /usr/share/apache2/
cp roundcubemail/config/* roundcubemail-0.4.2/config/
+
cd /usr/share/apache2/
chown -R www-data\: roundcubemail-0.4.2/
+
cp roundcubemail/config/* roundcubemail-0.4.2/config/
sed -i 's/roundcubemail/roundcube/g' roundcubemail-0.4.2/config/db.inc.php
+
chown -R www-data\: roundcubemail-0.4.2/
sed -i "1s/^/use roundcube;\n/" roundcubemail-0.4.2/SQL/mysql.initial.sql
+
sed -i 's/roundcubemail/roundcube/g' roundcubemail-0.4.2/config/db.inc.php
sed -i "1s/^/grant all on roundcube.* to roundcube@localhost; \n/" roundcubemail-0.4.2/SQL/mysql.initial.sql
+
sed -i "1s/^/use roundcube;\n/" roundcubemail-0.4.2/SQL/mysql.initial.sql
sed -i "1s/^/create database roundcube;\n/" roundcubemail-0.4.2/SQL/mysql.initial.sql
+
sed -i "1s/^/grant all on roundcube.* to roundcube@localhost; \n/" roundcubemail-0.4.2/SQL/mysql.initial.sql
 +
sed -i "1s/^/create database roundcube;\n/" roundcubemail-0.4.2/SQL/mysql.initial.sql
 +
</source>
  
 
no mysql
 
no mysql
Linha 59: Linha 64:
  
 
== removendo iredmail ==
 
== removendo iredmail ==
wget http://iredmail.googlecode.com/hg/extra/clear_iredmail.sh
+
<source lang="bash">
mv clear_iredmail.sh tools/ && cd tools/
+
wget http://iredmail.googlecode.com/hg/extra/clear_iredmail.sh
bash clear_iredmail.sh
+
mv clear_iredmail.sh tools/ && cd tools/
rm -f /usr/src/iRedMail-0.6.1/./.iRedMail.installation.status
+
bash clear_iredmail.sh
 +
rm -f /usr/src/iRedMail-0.6.1/./.iRedMail.installation.status
 +
</source>
  
 
== testar antivirus ==
 
== testar antivirus ==
Linha 74: Linha 81:
 
* http://www.myiptest.com/staticpages/index.php/DomainKeys-DKIM-SPF-Validator-test
 
* http://www.myiptest.com/staticpages/index.php/DomainKeys-DKIM-SPF-Validator-test
 
* http://code.google.com/p/iredmail/wiki/DNS_DKIM
 
* http://code.google.com/p/iredmail/wiki/DNS_DKIM
 +
 +
== reiniciar os serviços ==
 +
<source lang="bash">
 +
/etc/init.d/amavis restart
 +
/etc/init.d/clamav-daemon restart
 +
/etc/init.d/postfix restart
 +
/etc/init.d/postfix-policyd restart
 +
/etc/init.d/dovecot restart
 +
</source>
  
 
[[Categoria:server mail]]
 
[[Categoria:server mail]]

Edição das 18h37min de 6 de abril de 2012

página do projeto

pré-configuração

em /etc/apt/sources.list adicione

deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

hostname

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

em /etc/hosts

127.0.0.1   mail.quijaua.net 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.6.1.tar.bz2
tar jxvf iRedMail-0.6.1.tar.bz2
cd iRedMail-0.6.1/pkgs/
sh get_all.sh
cd ..
sh iRedMail.sh
apt-get install postgrey

com roundcubemail-0.4.2

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

no mysql

mysql -u root -p
create database roundcube;
use roundcube;
source roundcubemail-0.4.2/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.4.2/"
<Directory "/usr/share/apache2/roundcubemail-0.4.2/">
    Options -Indexes
</Directory>

e comente a linha 12

reinicie as configurações

/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.6.1/./.iRedMail.installation.status

testar antivirus

permissões

dkim

reiniciar os serviços

/etc/init.d/amavis restart
/etc/init.d/clamav-daemon restart
/etc/init.d/postfix restart
/etc/init.d/postfix-policyd restart
/etc/init.d/dovecot restart