Você está na página 1de 4

Zimbra 8

TROQUE OS EMAILS E PARAMETROS PARA SEU ATUAL AMBIENTE.


NO NECESSARIO CONTA DE ADMINISTRADOR PARA AUTENTICAR NO PROVEDOR.
A LOGICA DO DNS SIMPLES:
QUANDO ALGUEM ENVIA UM EMAIL, O PROVEDOR DE ENVIO PROCURA O "MX" DO SEU DOMINIO
PARA PODER ENTREGAR A MENSAGEM.
POR ESTE RAZAO SEU DNS "BIND" DEVE ESTAR CONFIGURADO CORRETAMENTE. MESMO QUE A
ENTREGA DA MSG SEJA INTERNA, O DNS PRECISA AUXILIAR O ZIMBRA A
ENTREGAR A MSG.
FETCHMAIL
FETCHMAIL APENAS O "SUGADOR" DE EMAILS.
NELE VC CONFIGURA AS CONTAS QUE QUER SUGAR E PRONTO. ELE ENTREGA LOCALMENTE EM
SUAS MAILBOXES.
ELE NAO SE LIMITA AO SEU PROVEDOR, PODE ADICIONAR QUALQUER UM.
UMA OTIMA FERRAMENTA DE BACKUP DE EMAILS TAMBEM.
SENDER_BCC E RECIPIENT_BCC
SENDER_BCC O ENVIO DE COPIA OCULTA, MESMO QUE ALGUEM COM CONHECIMENTOS
TECNICOS TENTE VER QUEM ESTA RECEBENDO ESSA MSG, ELE NAO SABERA POIS
O ENVIO DA MSG FEITO DIRETO NO "CORAO" DO SISTEMA.
RECIPIENT_BCC A MESMA COISA, S QUE PRA RECEBIMENTO.
AMARELO = Arquivos de sistema
VERMELHO = Comando do sistema
=====================================================================================
============================================================
Instalar ubuntu 12.4 LTS
Efetuar update de pacotes
apt-get update
apt-get upgrade
################################################################################################
definir ip fixo
-----------------------------------------------------------------------------# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.136
netmask 255.255.255.0
gateway 192.168.1.1
################################################################################################
instalar bind
------------------------------------------------

Zimbra 8
apt-get install bind9
################################################################################################
Alterar arquivo nano /etc/bind/named.conf.options
---------------------------------------------------------------------------options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multip$
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses repl$
// the all-0's placeholder.
forwarders {
8.8.8.8;
};
hostna
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
zone "caleiros.com.br" {
type master;
file "db.caleiros.com.br";
};
################################################################################################
Criar arquivo nano /var/cache/bind/db.caleiros.com.br
--------------------------------------------------------------------------------------------$ttl 38400
@
IN SOA zimbra.caleiros.com.br. zimbra.caleiros.com.br. (
2011091202
10800
3600
604800
38400 )
IN NS
ns1.caleiros.com.br.
IN NS
ns2.caleiros.com.br.
IN A
192.168.1.136
IN MX
10 zimbra.caleiros.com.br.
@
A
192.168.1.136
ns1 A
192.168.1.136
ns2 A
192.168.1.136
zimbra A
192.168.1.136
################################################################################################
Alterar arquivo /etc/hosts
-------------------------------------------------------------------------------------------------------GNU nano 2.2.6

File: /etc/hosts

127.0.0.1
localhost
127.0.1.1
zimbra.caleiros.com.br zimbra
192.168.1.136 zimbra.caleiros.com.br zimbra
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback

Zimbra 8
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
################################################################################################
Alterar arquivo /etc/hostname
------------------------------------------------------------zimbra.caleiros.com.br
################################################################################################
Instalar pacotes
---------------------------------------------------------------apt-get install pax libperl5.14 sysstat sqlite3
################################################################################################
Entrar na pasta descompactada do zimbra e instalar
-----------------------------------------------------------------------------------./install
################################################################################################
Seguir instalando com os padres do zimbra
Entrar como usuario zimbra
-----------------------------------------------------------------------------------su zimbra
################################################################################################
Configurar para enviar email externo
------------------------------------------------------------------------------------------------------------------zmprov ms zimbra.caleiros.com.br zimbraMtaRelayHost mail.voip4all.com.br:587
echo smtp.poa.terra.com.br:587 andre@voip4all.com.br:senha > /opt/zimbra/conf/relay_password
postmap hash:/opt/zimbra/conf/relay_password
zmlocalconfig -e postfix_smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password
zmlocalconfig -e postfix_smtp_sasl_auth_enable=yes
zmlocalconfig -e postfix_smtp_cname_overrides_servername=no
postfix reload
zmlocalconfig -e postfix_smtp_tls_security_level=may
zmlocalconfig -e postfix_smtp_sasl_security_options=noanonymous
postfix reload
###############################################################################################
Recuperar msgs no server
---------------------------------------------------------------------------------------------------------------------------set logfile "/var/log/fetchmail.log"
set postmaster "admin@zimbra.caleiros.com.br"
set daemon 60 # TEMPO PARA IR BUSCAR OS EMAILS EM SEGUNDOS!!!!
set bouncemail
poll mail.voip4all.com.br port 995 proto POP3 no dns

Zimbra 8
user andre@voip4all.com.br password "senha" is andre@voip4all.com.br here fetchall
ssl
#--- fim do arquivo ------------------------------------------################################################################################################
Sender_bcc(monitoramento envio)
-----------------------------------------------------------------------------------------nano /opt/zimbra/postfix/conf/main.cl
sender_bcc_maps = hash:/opt/zimbra/postfix/conf/sender_bcc
################################################################################################
Crie o arquivo com o usurio a ser monitorado e seu monitor respectivamente:
-----------------------------------------------------------------------------------------------------------------# vim /opt/zimbra/postfix/conf/sender_bcc
conta@dominioX.com.br monitor@dominioX.com.br
################################################################################################
Ative as configuraes:
postmap /opt/zimbra/postfix/conf/sender_bcc
postfix reload
################################################################################################
Para monitorar os emails recebidos por um usurio, adicione no final do arquivo a seguir:
-----------------------------------------------------------------------------------------------------------------------------------# vim /opt/zimbra/postfix/conf/main.cl
recipient_bcc_maps = hash:/opt/zimbra/postfix/conf/recipient_bcc
################################################################################################
Crie o arquivo com o usurio a ser monitorado e seu monitor respectivamente:
--------------------------------------------------------------------------------------------------------------------------vim /opt/zimbra/postfix/conf/recipient_bcc
conta@dominioX.com.br monitor@dominioX.com.br
################################################################################################
Ative as configuraes:
----------------------------------------------------------------------------------------------------------------------------------------postmap /opt/zimbra/postfix/conf/recipient_bcc
postfix reload