Você está na página 1de 6

comando para entregar mensagens retidas devido a cota

zmprov mcf zimbraLmtpPermanentFailureWhenOverQuota TRUE


################################################################################
################################
Criar uma conta
zmprov ca conta@dominio.com
################################################################################
################################
Alterar um senha
zmprov sp conta@domino.com senha
################################################################################
################################
Limpar uma pasta
zmprov sm user1@macpro.local emptyFoldefsr /contacts
################################################################################
################################
Listar todas as pastas de um usurio
zmmailbox -z -m user@dominio.com.br gaf
################################################################################
################################
Deletar uma pasta
zmmailbox -z -m marcelo@netsol.com.br df <pasta
################################################################################
################################
Configurar o usurio como ADMIN
zmprov ma futur-admin@domain.com zimbraIsAdminAccount TRUE
################################################################################
################################
Desbloquear conta
zmprov ma user@dominio zimbraAccountStatus active
################################################################################
################################
zmprov ma rcarvalho@limnos.com.br zimbraAccountStatus active
################################################################################
################################
Bloquear conta
zmprov ma user@dominio zimbraAccountStatus locked
################################################################################
################################
Criar encaminhamento
zmprov ma a@example.com +zimbraMailForwardingAddress x@domain.com
################################################################################
################################
Limpa todas as filas
/opt/zimbra/postfix/sbin/postsuper -c /opt/zimbra/postfix/conf -d ALL
################################################################################
################################
Limpa fila de emails adiados
/opt/zimbra/postfix/sbin/postsuper -c /opt/zimbra/postfix/conf -d ALL deferred
################################################################################
################################
Criar alias
zmprov aaa conta@dominio.com.br alias@dominio.com.br
################################################################################
################################
Criar lista de distribuio
zmprov cdl lista@dominio.com.br
################################################################################

################################
Listar todas as contas
zmaccts
################################################################################
################################
Adicionar membro a lista de distribuio
zmprov adlm lista@dominio.com.br usuario@lista.com.br
################################################################################
################################
apagar remetente que nao some, demora dois dias
zmprov ma comercialita@itatiaia.com.br zimbraContactRankingTableSize 0
################################################################################
####################################
Unificar a lista global de endereos de vrios domnios
zmprov modifyConfig zimbraGalInternalSearchBase ROOT
# Exportar contatos
zmprov sm user@dominio.com.br gru /contacts > /tmp/contacts.csv
# Importar contatos
/zmprov sm user@dominio.com.br pru /contacts /tmp/contacts.csv
# Exportar Agenda
zmprov sm user@dominio.com.br gru /Calendar > /tmp/calendar.ics
# Importar contatos
/zmprov sm user@dominio.com.br pru /Calendar /tmp/calendar.ics
Lista tamanho das caixa de correio no zimbra
#!/bin/bash
rm -fr /root/test.txt
echo "Account MailQuota QuotaUsed AccountStaus">>/root/test.txt
/opt/zimbra/bin/zmprov -l gaa mca.srv.br | while read ACCOUNT
do
QUOTA=`/opt/zimbra/bin/zmprov ga ${ACCOUNT} | grep "zimbraMailQuota" | awk -F\:
'{ print $2 }'`
QUOTA=`expr ${QUOTA} / 1024`
QUOTA=`expr ${QUOTA} / 1024`
QUOTA="${QUOTA}MB"
U=`/opt/zimbra/bin/zmmailbox -z -m ${ACCOUNT} gms`
AS=`/opt/zimbra/bin/zmprov ga ${ACCOUNT} | grep zimbraAccountStatus |awk -F\: '{
print $2 }'`
echo "${ACCOUNT} ${QUOTA} ${USAGE} ${AS}">>/root/test.txt
done

Relao de comandos utilizado para gerenciamento do servidor de backup zimbra.


2)Backup Geral do Servidor Zimbra
a) Parar Zimbra: zmcontrol stop
b) Compactar todo o diretrio zimbra
tar czvf zimbra.tgz zimbra/*.*-Imprime as Contas Ativas que j logaram, exceto
os usurios que o ltimo acesso foi anterior ao dia 31/12/2011.

$ zmaccts | grep active| grep -v never | awk '{print $5,$1}' | grep -v "maintena
nce domain" | sed 's/\// /g'| awk '{print "20"$3"-"$1"-"$2,"\t"$4}' | sort | gre
p -v "2012"
-Bloqueia as Contas Ativas que j logaram, exceto os usurios que o ltimo acesso foi
anterior ao dia 31/12/2011.
for i in $(zmaccts | grep active| grep -v never | awk '{print $5,$1}' | grep -v
"maintenance domain" | sed 's/\// /g'| awk '{print "20"$3"-"$1"-"$2,"\t"$4}' | s
ort | grep -v "2012" | awk '{print $2}'); do echo zmprov ma $i zimbraAccountStat
us locked; sleep 1; done
3) Lista Relacao de usuarios do zimbra
zmprov -l gaa ipatinga.mg.gov.br
1) Limpar mensagens(cx de entrada) de conta especifica
zmmailbox -z -m admin@dominio emptyFolder /Inbox
# Inbox/Sent/
zmmailbox -z -m admin@dominio emptyFolder /Inbox
Backup Geral do Servidor Zimbra
1) Parar Zimbra: zmcontrol stop
2) Compactar todo o diretrio zimbra
tar czvf zimbra.tgz zimbra/*.*
Lista Conta e Nome de Exibicao
zmprov -l gaa -v | egrep -i (sn:|cn)
Lista conta dos usuarios
zmprov -l gaa ipatinga.mg.gov.br
Tamanho do mailbox
zmmailbox -z -m us usuario@dominio gms
Tamanho de todos as Caixas em MB
zmprov gqu zimbra | awk {print $3/1048576 $2 $1}
Criar a pasta Informativo Interno
zmmailbox -z -m usuario@dominio cm /Informativo Interno if@dominio /Inbox
Elimanando Pastas
zmmailbox -z -m usuario@dominio gaf | awk {print zmmailbox -z -m usuario@dominio
df $5} | grep -v Briefcase\|Calendar\|Chats\|Inbox\|Junk\|Sent
zmmailbox -z -m usuario@dominio gaf | awk {print zmmailbox -z -m usuario@dominio
df $5} | grep -v Briefcase\|Calendar\|Chats\|Drafts\|Emailed\|Inbox\|Junk\|Sent\|
Contacts\|Notebook\|Tasks\|Trash
zmaccts Verifica o Status de todos os Mailbox, como: status da conta e data do u
ltimo logon
]$zmaccts
Limpar Conteudo de Mailbox que nunca efetuou logon
zmaccts | grep never | awk {print zmmailbox -z -m $1 emptyFolder /Inbox} | cat -n
-Imprime as Contas Ativas que j logaram, exceto os usurios que o ltimo acesso foi a
nterior ao dia 31/12/2011.
$ zmaccts | grep active| grep -v never | awk {print $5,$1} | grep -v "maintena
nce domain" | sed s/\// /g | awk {print "20"$3"-"$1"-"$2,"\t"$4} | sort | gre
p -v "2012"
-Bloqueia as Contas Ativas que j logaram, exceto os usurios que o ltimo acesso foi
anterior ao dia 31/12/2011.

for i in $(zmaccts | grep active| grep -v never | awk {print $5,$1} | grep -v
"maintenance domain" | sed s/\// /g | awk {print "20"$3"-"$1"-"$2,"\t"$4} | s
ort | grep -v "2012" | awk {print $2} ); do echo zmprov ma $i zimbraAccountStat
us locked; sleep 1; done
para sincronizar uma conta apenas na arg3.
imapsync --nosyncacls --syncinternaldates --buffersize 8192000 --subscribe --hos
t1 externo.grupoarg.com.br --authmech1 PLAIN --authuser1 netsol --password1 Isi
d25!s --user1 cassia.perreira.externo@grupoarg.com.br --host2 127.0.0.1 --auth
mech2 PLAIN --authuser2 netsol --password2 Isid25!s --user2 luiz.macedo.tempor
ario@grupoarg.com.br --noauthmd5
187.20.121.205
################################################################################
################################
lista de contas de listas de distribuio
#!/bin/bash
dominio=gtechnology.com.br
myPath=$(pwd)
> $myPath/listas.txt
/opt/zimbra/bin/zmprov gadl $dominio | while read listname;
do
echo "-------------------------------------- " >> $myPath/listas.txt
echo "Nome da lista: $listname" >> $myPath/listas.txt
echo " " >> $myPath/listas.txt
/opt/zimbra/bin/zmprov gdl $listname | grep zimbraMailForwardingAddress > $m
yPath/$listname.tmp
cat $myPath/$listname.tmp | sed s/zimbraMailForwardingAddress: //g |
while read member; do
echo $member >> $myPath/listas.txt
done
/bin/rm $myPath/$listname.tmp
done
################################################################################
################################
Active. Active is the normal status for domains. Accounts can be created
and mail can be delivered. Note: If an account has a different status
setting than the domain setting, the account status overrides the domain
status.
Closed. When a domain status is marked as closed, Login for accounts
on the domain is disabled and messages are bounced. The closed
status overrides an individual accounts status setting.
Locked. When a domain status is marked as locked, users cannot log in
to check their email, but email is still delivered to the accounts. If an
accounts status setting is marked as maintenance or closed, the
accounts status overrides the domain status setting.
Maintenance. When the domain status is marked as maintenance, users
cannot log in and their email is queued at the MTA. If an account status

setting is marked as closed, the accounts status overrides the domain


status setting.
Suspended. When the domain status is marked as suspended, users
cannot log in, their email is queued at the MTA, and accounts and
distribution lists cannot be created, deleted, or modified. If an accounts
status setting is marked as closed, the accounts status overrides the
domain status setting.
Shutdown. When the domain status is changed to Shutdown, the
server is doing major and lengthy maintenance work on the domain. For
example, renaming the domain or moving LDAP entries. Modification
and deletion of the domain can only be done internally by the server
when it is safe to release the domain, they cannot be done in the admin
console or using zmprov.

################################################################################
################################
Alterando o status de uma conta
Estado da conta determina se um usurio pode efetuar login e receber e-mail. O est
ado da conta exibido quando os nomes de conta esto listados no painel de contedo C
ontas.
Os estados de contas a seguir podem ser definidas:

Ativo . Ativo o estado normal para uma conta de caixa de correio. Correspondncia
entregue e os usurios podem entrar no interface do cliente.

Manuteno . Quando o estatuto de caixa de correio est definido para manuteno, login es
t desativado, e-mail endereado para a conta est na fila no MTA. Uma conta pode ser
definido para o modo de manuteno para fazer backup, importao ou restaurar a caixa de
correio.

Bloqueado . Quando o estatuto de caixa de correio est bloqueado, o usurio no pode e


ntrar, mas o correio ainda entregue conta. O estado bloqueado pode ser definido,
se voc suspeitar que uma conta de e-mail foi invadido ou est sendo usado de forma
no autorizada.

Fechado . Quando o estatuto de caixa fechada, o login desativado, e as mensagens


so enviadas. Este status usado para soft-excluir uma conta antes de apag-lo do se
rvidor.
################################################################################
################################
2127 adilson
################################################################################
################################
Importar emailbackup
/opt/zimbra/bin/zmmailbox -z -m jose@domain.com.br postRestURL "//?fmt=tgz&resol
ve=modify" /opt2/jose.tgz
Gerar backup
/opt/zimbra/bin/zmmailbox -z -m usurio@dominio.com.br getRestURL
usuario.tgz

//?fmt=tgz >

################################################################################
################################
time zone horario de verao
editar
/opt/zimbra/conf/timezones.ics
TZID:America/Sao_Paulo
LAST-MODIFIED:20120404T184026Z
X-ZIMBRA-TZ-PRIMARY:TRUE
X-ZIMBRA-TZ-MATCH-SCORE:100
X-ZIMBRA-TZ-ALIAS:(GMT-03.00) Brasilia
X-ZIMBRA-TZ-ALIAS:(UTC-03.00) Brasilia
X-ZIMBRA-TZ-ALIAS:Brazil/East
BEGIN:STANDARD
TZNAME:BRT
DTSTART:19710101T000000
TZOFFSETTO:-0300
TZOFFSETFROM:-0200
RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=2;BYDAY=3SU
END:STANDARD
BEGIN:DAYLIGHT
TZNAME:BRST
DTSTART:19710101T000000
TZOFFSETTO:-0200
TZOFFSETFROM:-0300
RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=10;BYDAY=3SU
zmmailboxdctl restart
quando eu vim para este mundo
o chalita dava mais q v
aca
hoje ele ta mais espeto
################################################################################
#######################################
Limpar history no zimbra
zmsoap -z -m marconescaixeta@pifpaf.com.br RankingActionRequest/action @op=reset

Liberar prprio domnio.


zmlocalconfig -e amavis_originating_bypass_sa=true