RSS

  • YouTube
  • LinkedIn
  • Google

Cómo borrar mensajes diferidos de cola de Postfix

Hoy estuve viendo el archivo de registro de Postfix (en CentOS 6.X predeterminado es /var/log/maillog) y vi un montón de mensajes está diferida.

Jan 5 15:02:03 vps3 postfix/smtp[27441]: 3187E2180015: to=<undesired@domain.com>, relay=domain.com[167.114.XXX.XXX]:25, delay=254553, delays=254538/0.2/15/0, dsn=
4.4.2, status=deferred (conversation with domain.com[167.114.XXX.XXX] timed out while receiving the initial server greeting)
Jan 5 15:02:03 vps3 postfix/smtp[27442]: CDED02180014: to=<undesired@domain.com.br>, relay=domain.com[167.114.XXX.XXX]:25, delay=258753, delays=258738/0.13/15/0, dsn
=4.4.2, status=deferred (conversation with domain.com[167.114.XXX.XXX] timed out while receiving the initial server greeting)
Jan 5 15:02:03 vps3 postfix/smtp[27443]: C8EE72180012: to=<undesired@domain.com.br>, relay=domain.com[167.114.XXX.XXX]:25, delay=258753, delays=258738/0.14/15/0, dsn
=4.4.2, status=deferred (conversation with domain.com[167.114.XXX.XXX] timed out while receiving the initial server greeting)
Jan 5 15:02:03 vps3 postfix/smtp[27444]: CDCE32180013: to=<undesired@domain.com.br>, relay=domain.com[167.114.XXX.XXX]:25, delay=258753, delays=258738/0.15/15/0, dsn
=4.4.2, status=deferred (conversation with domain.com[167.114.XXX.XXX] timed out while receiving the initial server greeting)

y estos mensajes repiten de vez en cuando.

Esto era porque estaba configurando el servidor de correo para retransmitir mensajes de una cuenta específica a una cuenta de Gmail y algunos mensajes que han sido bloqueados deben finalmente fueron entregados. Cuando finalmente termine volviendo a configurar todo, Postfix ya no podría entregar estos mensajes debido a una regla de verificación de dominio remitente y siempre marcado este mensaje como diferidos.
Aquí, el mensaje es lo menos importante. Lo que necesitaba era para estas líneas desapareció de los registros.
So here’;s una punta para conseguir presa limpia colas de mensajes y que va por cualquier razón.

Para ver lo que tienes en tu tipo de cola de correo:

# mailq

o

# postqueue -p

Puedes ver resultados así:

-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
2CFD22180017 6361 Mon Jan 4 16:27:13 root@as8.producoesvsrevolucao.com.br
(host alt1.gmail-smtp-in.l.google.com[64.233.190.27] said: 421-4.7.0 [192.99.43.88 15] Our system has detected an unusual rate of 421-4.7.0 unsolicited mail originating from your IP address. To protect our 421-4.7.0 users from spam, mail sent from your IP address has been temporarily 421-4.7.0 rate limited. Please visit 421-4.7.0 https://support.google.com/mail/answer/81126 to review our Bulk Email 421 4.7.0 Senders Guidelines. 66si4725003qhp.11 - gsmtp (in reply to end of DATA command))
xxxnononoxxx@gmail.com

AB6302180016 1062 Sat Jan 2 17:43:22 advertise.bz222yiaku@gmail.com
(host alt1.gmail-smtp-in.l.google.com[64.233.190.27] said: 421-4.7.0 [192.99.43.88 15] Our system has detected an unusual rate of 421-4.7.0 unsolicited mail originating from your IP address. To protect our 421-4.7.0 users from spam, mail sent from your IP address has been temporarily 421-4.7.0 rate limited. Please visit 421-4.7.0 https://support.google.com/mail/answer/81126 to review our Bulk Email 421 4.7.0 Senders Guidelines. j133si42716128qhj.106 - gsmtp (in reply to end of DATA command))
xxxnononoxxx@gmail.com

849F02180010 3677 Thu Dec 31 20:22:07 gtve5x@gmail.com
(host alt1.gmail-smtp-in.l.google.com[64.233.190.27] said: 421-4.7.0 [192.99.43.88 15] Our system has detected an unusual rate of 421-4.7.0 unsolicited mail originating from your IP address. To protect our 421-4.7.0 users from spam, mail sent from your IP address has been temporarily 421-4.7.0 rate limited. Please visit 421-4.7.0 https://support.google.com/mail/answer/81126 to review our Bulk Email 421 4.7.0 Senders Guidelines. g70si65400626qkh.92 - gsmtp (in reply to end of DATA command))
xxxnononoxxx@gmail.com

-- 12 Kbytes in 3 Requests.

Cada línea es un mensaje en cola. El primer bloque es el identificador de cola.

Para eliminar un mensaje del tipo cola de:

# postsuper -d AB6302180016
postsuper: AB6302180016: removed
postsuper: Deleted: 1 message

Esto borrará el mensaje 849F02180010 de cola.

Otros comandos útiles:

# postfix flush

o

# postfix -f

Descarga todos los mensajes de cola de Postfix.

# postsuper -d todos

Eliminar todos los mensajes de cola.

# postsuper -d todo diferidos

Eliminar todos los mensajes de diferidos de cola.

Contesta

Su dirección de correo electrónico no se publicará. Los campos obligatorios están marcados *

Este sitio utiliza Akismet para reducir el spam. Aprender cómo se procesaron los datos de comentario.