{"id":1190,"date":"2016-05-12T15:00:33","date_gmt":"2016-05-12T07:00:33","guid":{"rendered":"https:\/\/umarzuki.org\/blogku\/?p=1190"},"modified":"2016-05-12T15:00:33","modified_gmt":"2016-05-12T07:00:33","slug":"padam-semua-spam-dari-pengguna-spesifik-zimbra","status":"publish","type":"post","link":"https:\/\/umarzuki.org\/blog\/2016\/05\/12\/padam-semua-spam-dari-pengguna-spesifik-zimbra\/","title":{"rendered":"Padam semua spam dari pengguna spesifik Zimbra"},"content":{"rendered":"<p>Simpan sebagai postfix-delete.pl<\/p>\n<p>Cara guna<br \/>\n<code>perl postfix-delete.pl user@domain.com<\/p>\n<p>Kod:<br \/>\n[code lang='plain']#!\/usr\/bin\/perl<\/p>\n<p>$REGEXP = shift || die \"no email-adress given (regexp-style, e.g. bl.*\\@yahoo.com)!\";<\/p>\n<p>@data = qx<\/opt\/zimbra\/postfix\/sbin\/postqueue -p>;<br \/>\nfor (@data) {<br \/>\n  if (\/^(\\w+)(\\*|\\!)?\\s\/) {<br \/>\n     $queue_id = $1;<br \/>\n  }<br \/>\n  if($queue_id) {<br \/>\n    if (\/$REGEXP\/i) {<br \/>\n      $Q{$queue_id} = 1;<br \/>\n      $queue_id = \"\";<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<p>#open(POSTSUPER,\"|cat\") || die \"couldn't open postsuper\" ;<br \/>\nopen(POSTSUPER,\"|\/opt\/zimbra\/postfix\/sbin\/postsuper -d -\") || die \"couldn't open postsuper\" ;<\/p>\n<p>foreach (keys %Q) {<br \/>\n  print POSTSUPER \"$_\\n\";<br \/>\n};<br \/>\nclose(POSTSUPER);[\/code]<\/p>\n<p>Sumber:<\/p>\n<p>http:\/\/www.cyberciti.biz\/tips\/howto-postfix-flush-mail-queue.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simpan sebagai postfix-delete.pl Cara guna perl postfix-delete.pl user@domain.com Kod: [code lang=&#8217;plain&#8217;]#!\/usr\/bin\/perl $REGEXP = shift || die &#8220;no email-adress given (regexp-style, e.g. bl.*\\@yahoo.com)!&#8221;; @data = qx; for (@data) { if (\/^(\\w+)(\\*|\\!)?\\s\/) { $queue_id = $1; } if($queue_id) { if (\/$REGEXP\/i) { $Q{$queue_id} = 1; $queue_id = &#8220;&#8221;; } } } #open(POSTSUPER,&#8221;|cat&#8221;) || die &#8220;couldn&#8217;t open postsuper&#8221; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[251],"tags":[400,401,163,93],"class_list":["post-1190","post","type-post","status-publish","format-standard","hentry","category-email","tag-flust","tag-mailq","tag-postfix","tag-zimbra"],"_links":{"self":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts\/1190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/comments?post=1190"}],"version-history":[{"count":0,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts\/1190\/revisions"}],"wp:attachment":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/media?parent=1190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/categories?post=1190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/tags?post=1190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}