delete queue mailer-daemon dengan mailq

| Posted in Postfix

Jika ingin mendelete semua Mailer-Daemon mails dari Postfix queue :

mail-server:/home/gtoms# mailq | perl lne ‘m/^([AZ0-9]+).*MAILER-DAEMON/ && `postsuper -d $1`;’
postsuper: 1E2D297203: removed
postsuper: Deleted: 1 message
postsuper: 8F42997200: removed
postsuper: Deleted: 1 message
postsuper: 8FF71971C8: removed
postsuper: Deleted: 1 message
postsuper: 902AE97210: removed
postsuper: Deleted: 1 message
postsuper: B1BC197201: removed
postsuper: Deleted: 1 message
postsuper: C2BC9971C7: removed
postsuper: Deleted: 1 message
postsuper: 427C497213: removed
postsuper: Deleted: 1 message
postsuper: 2FC2097215: removed
postsuper: Deleted: 1 message
postsuper: 648A097204: removed
postsuper: Deleted: 1 message
postsuper: 5BD799720F: removed
postsuper: Deleted: 1 message
postsuper: 74B5597202: removed
postsuper: Deleted: 1 message
postsuper: F07A597214: removed
postsuper: Deleted: 1 message
mail-server:/home/gtoms#
cek kembali postfix queue dengan mailq, pasti deh ndak ada queue mailer daemon, jadi ndak cape delete satu-satu pake perintah postsuper -d queue_id

Comments (2)

makasih mas,
berguna sekali

mas. klo ngapus email per domain doank gimana ya???

thx b4

Write a comment