Mudanças entre as edições de "Iredmail"
De MochilaWiki
Ir para navegaçãoIr para pesquisarLinha 7: | Linha 7: | ||
echo deb http://ftp.us.debian.org/debian wheezy main non-free contrib > /etc/apt/sources.list | 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 | echo deb http://security.debian.org/ wheezy/updates main non-free contrib >> /etc/apt/sources.list | ||
+ | echo deb deb http://http.us.debian.org/debian wheezy-updates main non-free contrib >> /etc/apt/sources.list | ||
</source> | </source> | ||
Edição das 13h28min de 25 de maio 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
echo deb deb http://http.us.debian.org/debian 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
criando swap
Se acaso estiver usando DigitalOcean crie uma swap do tamanho da memória ram ou o dobro
dd if=/dev/zero of=/swapfile bs=1024 count=512k
mkswap /swapfile
swapon /swapfile
echo /swapfile none swap sw 0 0 >> /etc/fstab
echo 10 | tee /proc/sys/vm/swappiness
echo vm.swappiness = 10 | tee -a /etc/sysctl.conf
chown root:root /swapfile
chmod 0600 /swapfile
instalando
cd /usr/src
apt-get update
apt-get upgrade
apt-get install -y dialog bzip2 locales
wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.8.7.tar.bz2
tar jxvf iRedMail-0.8.7.tar.bz2
cd iRedMail-0.8.7
bash iRedMail.sh
apt-get install postgrey
implementando SPF
instalando
apt-get install postfix-policyd-spf-perl
acrescente em /etc/postfix/mainf.cf
smtpd_recipient_restrictions = [...], check_policy_service unix:private/policy
acrescente em /etc/postfix/master.cf
policy unix - n n - - spawn user=nobody argv=/usr/bin/perl /usr/sbin/postfix-policyd-spf-perl
reinicie o postfix
/etc/init.d/postfix restart
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.8.6/./.iRedMail.installation.status
testar antivirus
- http://pt.wikipedia.org/wiki/EICAR_%28arquivo_de_teste%29
- http://www.eicar.org/anti_virus_test_file.htm
permissões
dkim
- http://www.myiptest.com/staticpages/index.php/DomainKeys-DKIM-SPF-Validator-test
- http://code.google.com/p/iredmail/wiki/DNS_DKIM
aumentar tamanho de arquivo anexo
o padrão é 10M, nesse caso estou aumentando para 32M
postconf -e 'message_size_limit = 268435456'
sed -i 's/post_max_size\ =\ 12M/post_max_size\ =\ 32M/g' /etc/php5/apache2/php.ini
sed -i 's/upload_max_filesize\ =\ 10M/upload_max_filesize\ =\ 32M/g' /etc/php5/apache2/php.ini
/etc/init.d/apache2 restart
/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
reiniciar todos os serviços
for i in rsyslog apache2 postfix mysql dovecot amavis clamav-daemon clamav-freshclam cron iredapd iptables; do /etc/init.d/${i} restart; done
Referências
- http://sogoth.com/?tag=postfix-message_size_limit
- http://www.iredmail.org/forum/topic778-iredmail-support-error-on-changing-messagesizelimit-how-exactly-does-quota-work.html
- https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04
- http://respirandolinux.wordpress.com/2013/08/06/postfix-bloqueando-spam-com-o-proprio-dominio/
- http://www.debiantutorials.com/implementing-spf-checks-in-postfix/