{"id":2459,"date":"2015-07-26T18:31:05","date_gmt":"2015-07-26T18:31:05","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=2459"},"modified":"2015-07-26T18:31:05","modified_gmt":"2015-07-26T18:31:05","slug":"remove-specific-domain-or-user-emails-in-postfix","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/07\/26\/remove-specific-domain-or-user-emails-in-postfix\/","title":{"rendered":"Remove specific domain or  user emails in Postfix"},"content":{"rendered":"<p>To remove specific emails from a domain:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# postqueue -p | tail -n +2 | awk &#039;BEGIN { RS = &quot;&quot; } \/@domain\\.com\/ { print $1 }&#039; | tr -d &#039;*!&#039; | postsuper -d -\n<\/pre>\n<p>Or <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# mailq | tail -n +2 | grep -v &#039;^ *(&#039; | awk  &#039;BEGIN { RS = &quot;&quot; } { if ($8 == &quot;USER@EXAMPLE.COM&quot; &amp;&amp; $9 == &quot;&quot;) print $1 } &#039; | tr -d &#039;*!&#039; | postsuper -d -\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To remove specific emails from a domain: # postqueue -p | tail -n +2 | awk &#039;BEGIN { RS = &quot;&quot; } \/@domain\\.com\/ { print $1 }&#039; | tr -d &#039;*!&#039; | postsuper -d &#8211; Or # mailq | tail -n +2 | grep -v &#039;^ *(&#039; | awk &#039;BEGIN { RS = &quot;&quot; } &#8230; <a title=\"Remove specific domain or  user emails in Postfix\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/07\/26\/remove-specific-domain-or-user-emails-in-postfix\/\" aria-label=\"Read more about Remove specific domain or  user emails in Postfix\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86,87],"tags":[],"class_list":["post-2459","post","type-post","status-publish","format-standard","hentry","category-plesk","category-postfix"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=2459"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2459\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}