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

De MochilaWiki
Ir para navegaçãoIr para pesquisar
Linha 4: Linha 4:
 
== pré-configuração ==
 
== pré-configuração ==
 
em /etc/apt/sources.list adicione
 
em /etc/apt/sources.list adicione
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
+
echo deb http://ftp.us.debian.org/debian wheezy main non-free contrib > /etc/apt/sources.list
 +
echo deb http://security.debian.org/ wheezy/updates main non-free contrib >> /etc/apt/sources.list
 +
 
  
 
hostname
 
hostname
Linha 21: Linha 23:
 
apt-get upgrade
 
apt-get upgrade
 
apt-get install -y dialog bzip2
 
apt-get install -y dialog bzip2
wget http://iredmail.googlecode.com/files/iRedMail-0.6.1.tar.bz2
+
wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.8.6.tar.bz2
tar jxvf iRedMail-0.6.1.tar.bz2
+
tar jxvf iRedMail-0.8.6.tar.bz2
cd iRedMail-0.6.1/pkgs/
+
cd iRedMail-0.8.6
sh get_all.sh
+
bash iRedMail.sh
cd ..
 
sh iRedMail.sh
 
 
apt-get install postgrey
 
apt-get install postgrey
 
</source>
 
</source>
 
== com roundcubemail-0.4.2 ==
 
<source lang="bash">
 
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
 
</source>
 
 
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 ==
 
== removendo iredmail ==

Edição das 11h37min de 22 de março de 2014

página do projeto

pré-configuração

em /etc/apt/sources.list adicione echo deb http://ftp.us.debian.org/debian wheezy main non-free contrib > /etc/apt/sources.list echo deb http://security.debian.org/ wheezy/updates main non-free contrib >> /etc/apt/sources.list


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 https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.8.6.tar.bz2
tar jxvf iRedMail-0.8.6.tar.bz2
cd iRedMail-0.8.6
bash iRedMail.sh
apt-get install postgrey

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

aumentar tamanho de arquivo anexo

o padrão é 10M, nesse caso estou aumentando para 32M

postconf -e 'message_size_limit = 268435456'
/etc/init.d/postfix restart

para ver valor atual

# postconf | grep mailbox_size_limit
# postconf | grep message_size_limit

para ver o valor padrão

# postconf -d | grep mailbox_size_limit
# postconf -d | grep message_size_limit

outro ajuste necessário http://docs.nkosi.org/Nginx#tamanho_do_arquivo_para_upload_nginx.2Bphp-fpm

reiniciar todos os serviços

for i in rsyslog nginx postfix mysql postfix-policyd dovecot amavis clamav-daemon clamav-freshclam cron iredapd iptables; do /etc/init.d/${i} restart; done


referencias: