{"id":924,"date":"2013-07-23T06:55:48","date_gmt":"2013-07-23T06:55:48","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=924"},"modified":"2013-07-23T13:58:35","modified_gmt":"2013-07-23T13:58:35","slug":"does-netqmail-1-06-already-include-badmailfrom-wildcard","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=924","title":{"rendered":"Does netqmail-1.06 already include badmailfrom wildcard?"},"content":{"rendered":"<p>If you want to block all &#8216;.info&#8217; domains on a server running netqmail-1.06<\/p>\n<p>I can confirm the badmailfrom wildcard functionality is not included in netqmail-1.06<\/p>\n<p>Use the badmailfrom-wildcard patch http:\/\/tomclegg.net\/qmail-bmf-wildcard<br \/>\neven though it makes no mention of netqmail-1.06, it works.<\/p>\n<p>Saved below for posterity;<\/p>\n<p>If (like me) you&#8217;re getting lots of unreturnable spam from addresses like &#8220;opt-in@mtsopt21.email-info.net&#8221;, you want &#8220;.email-info.net&#8221; in controls\/badmailfrom.<\/p>\n<p>Without this patch, you would have to list &#8220;@mtsopt21.email-info.net&#8221;, &#8220;@mtsopt22.email-info.net&#8221;, etc. separately.<\/p>\n<p>To install:<\/p>\n<p>cd \/src\/qmail-1.03<br \/>\nwget http:\/\/www.omniweb.com\/wordpress\/wp-content\/uploads\/patch-qmail-badmailfrom-wildcard<br \/>\npatch < patch-qmail-badmailfrom-wildcard\nmake qmail-smtpd\ninstall -m 755 qmail-smtpd \/var\/qmail\/bin\/qmail-smtpd\nTo refuse mail from any sender which ends with \".example.com\":\n\necho \".example.com\" >>\/var\/qmail\/control\/badmailfrom<br \/>\nYou will still accept mail from foo@example.com unless you add &#8220;@example.com&#8221; as well:<\/p>\n<p>echo &#8220;@example.com&#8221; >>\/var\/qmail\/control\/badmailfrom<br \/>\nThe wildcard does not apply to the sender&#8217;s local part. &#8220;.spam@example.com&#8221; will not block mail from example-spam@example.com. It will only block &#8220;.spam@example.com&#8221; which is probably not what you want.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to block all &#8216;.info&#8217; domains on a server running netqmail-1.06 I can confirm the badmailfrom wildcard functionality is not included in netqmail-1.06 Use the badmailfrom-wildcard patch http:\/\/tomclegg.net\/qmail-bmf-wildcard even though it makes no mention of netqmail-1.06, it works. &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=924\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/924"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=924"}],"version-history":[{"count":5,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/924\/revisions"}],"predecessor-version":[{"id":934,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/924\/revisions\/934"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}