[Postfix-br] Fila postfix
Julio Cesar Covolato
julio em psi.com.br
Sexta Maio 24 13:38:44 BRT 2013
Olá Wilson.
Crie o shell script "rmqueue", chmod +x /usr/local/sbin/rmqueue
Cuidado, pois ele remove da fila qqr regex que casar com o $1!
ex.: rmqueue @xyz.com.br (remove todos *@xyz.com.br)
rmqueue fulano@ (remove todos *fulano@*)
rmqueue full (remove todos com "mailbox full" e todos fullano.*@ .*)
~# cat /usr/local/sbin/rmqueue
#!/bin/sh
if [ -z $1 ]; then
echo ""
echo " USO: $0 regex_string "
exit 1
fi
/bin/echo -e "mailq |grep -v Arrival.Time|awk 'BEGIN { RS = \"\" } /$1/
{print \$1}'|\
tr -d '*!'|postsuper -d -" > /tmp/rmqueue
sh /tmp/rmqueue
rm -f /tmp/rmqueue
postfix reload
-----------------------------
_ Julio Cesar Covolato
0v0 <julio at psi.com.br>
/(_)\ F: 55-11-3129-3366
^ ^ PSI INTERNET
-----------------------------
Em 24/05/2013 13:13, Wilson Paolini escreveu:
> Este comando irá apagar todos os e-mails onde usuario at dominio.com seja
> o remetente:
>
> postqueue -p | grep -B2 usuario at dominio.com | grep May | awk {'print
> $1'} | postsuper -d -
>
>
>
>
> Em 24 de maio de 2013 13:00, Itamar S. <immaggoo at gmail.com> escreveu:
>> Prezados,
>>
>> Preciso deletar e-mails (centenas) de um usuário especifico da fila do
>> postfix.
>>
>> Alguém tem ideia do comando?
>>
>>
>>
>> _______________________________________________
>> Postfix-br mailing list
>> Postfix-br at listas.softwarelivre.org
>> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/postfix-br
>>
> _______________________________________________
> Postfix-br mailing list
> Postfix-br at listas.softwarelivre.org
> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/postfix-br
More information about the Postfix-br
mailing list