{"id":1536,"date":"2020-07-24T21:48:14","date_gmt":"2020-07-24T18:48:14","guid":{"rendered":"https:\/\/helia.ee\/koolitus\/?page_id=1536"},"modified":"2020-07-24T21:48:31","modified_gmt":"2020-07-24T18:48:31","slug":"debian-postfix-blocking-words-in-subject-using-postfix","status":"publish","type":"page","link":"https:\/\/helia.ee\/koolitus\/?page_id=1536","title":{"rendered":"Debian &#8211; Postfix &#8211; Blocking words in Subject using postfix (Toimiv lahendus)"},"content":{"rendered":"<p>In order to block certain words in Subject using postfix the following has to be done.<br \/>\n1. In \/etc\/postfix\/main.cf add the following<\/p>\n<pre>vi \/etc\/postfix\/main.cf\r\nheader_checks = regexp:\/etc\/postfix\/header_checks\r\n<\/pre>\n<p>2. Create header_checks and add the following line. In this example we will block XXX word separated by spaces.<\/p>\n<pre>vi \/etc\/postfix\/header_checks\r\n\/^Subject:.*\\b(XXX)\\b\/ DISCARD<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In order to block certain words in Subject using postfix the following has to be done. 1. In \/etc\/postfix\/main.cf add the following vi \/etc\/postfix\/main.cf header_checks = regexp:\/etc\/postfix\/header_checks 2. Create header_checks and add the following line. In this example we will block XXX word separated by spaces. vi \/etc\/postfix\/header_checks \/^Subject:.*\\b(XXX)\\b\/ DISCARD<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":621,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-1536","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1536"}],"version-history":[{"count":2,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1536\/revisions"}],"predecessor-version":[{"id":1538,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1536\/revisions\/1538"}],"up":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/621"}],"wp:attachment":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}