{"id":123,"date":"2019-04-11T12:41:14","date_gmt":"2019-04-11T12:41:14","guid":{"rendered":"https:\/\/acampbell.uk\/wp\/?p=123"},"modified":"2020-12-01T12:01:22","modified_gmt":"2020-12-01T12:01:22","slug":"replacing-procmail-with-fdm","status":"publish","type":"post","link":"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/","title":{"rendered":"How to replace procmail with fdm"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Procmail is still widely used although it is no longer maintained. Its former maintainer on OpenBSD, Philip Gunther, has said that it should be removed from the ports list because of security vulnerability, although it is still there. A suggested alternative is fdm, which both fetches the mail from a POP3 server and filters it, thus replacing both fetchmail and procmail.<\/p>\n<p>I&#8217;d been using procmail with fetchmail for a long time but I thought perhaps I should switch to fdm. The main difficulty was that the documentation I found was less complete than what is available for procmail and it took me a fair amount of time to configure it to use my spam filter, <a href=\"https:\/\/acampbell.uk\/wp\/?s=qsf\">which is qsf.<\/a><\/p>\n<p>Here is my fdm.conf for anyone who is thinking of making the same switch.\u00a0 Qsf writes &#8220;SPAM&#8221; in the subject line of suspect emails so that&#8217;s what I filter on.<\/p>\n<h2>My fdm.conf<\/h2>\n<hr \/>\n<p># fdm.conf &#8211; see the fdm manual for explanations of the code.<\/p>\n<p># Set the maximum size of mail:<br \/>\nset maximum-size 128M<\/p>\n<p># connection settings for my ISP&#8217;s mail server:<br \/>\naccount &#8220;&lt;my POP3 account&gt;&#8221;<br \/>\npop3 server &#8220;&lt;my POP3 server&gt;&#8221;<br \/>\nuser &#8220;&lt;my email address&gt;&#8221;<br \/>\npass &#8220;&lt;my password&gt;&#8221;<\/p>\n<p># filtering rules (adapted from my .procmailrc):<br \/>\nmatch &#8220;^(To|Cc):.*lyx-users@lists.lyx.org&#8221; action mbox &#8220;%h\/Mail\/lyx-users&#8221;<br \/>\nmatch &#8220;^(To|cc|Cc|Sender): .*misc@openbsd.org&#8221; action mbox &#8220;%h\/Mail\/openbsd&#8221;<\/p>\n<p># forward some mail to a different account (see &#8220;My forward file&#8221; below):<br \/>\nmatch &#8220;^From:.*Facebook&#8221; action pipe &#8220;%h\/.forward&#8221;<\/p>\n<p># Spam filter rules:<br \/>\naction &#8220;spamfilter&#8221; rewrite &#8220;\/home\/ac\/bin\/qsf -s&#8221;<br \/>\nmatch all action &#8220;spamfilter&#8221; continue<br \/>\nmatch &#8220;^Subject:.*SPAM&#8221; action mbox &#8220;%h\/Mail\/spam&#8221;<\/p>\n<p># Set spoolfile for incoming mail:<br \/>\naction &#8220;inbox&#8221; mbox &#8220;\/var\/mail\/ac&#8221;<br \/>\nmatch all action &#8220;inbox&#8221;<\/p>\n<hr \/>\n<h2>My .forward file<\/h2>\n<p>smtp &lt;user@example.com&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; &nbsp; Procmail is still widely used although it is no longer maintained. Its former maintainer on OpenBSD, Philip Gunther, has said that it should be removed from the ports list because of security vulnerability, although it is still there. A suggested alternative is fdm, which both fetches the mail from a POP3 server &hellip; <a href=\"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to replace procmail with fdm&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":""},"categories":[7,10],"tags":[8],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to replace procmail with fdm - Anthony Campbell&#039;s Blog 2<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to replace procmail with fdm - Anthony Campbell&#039;s Blog 2\" \/>\n<meta property=\"og:description\" content=\"&nbsp; &nbsp; &nbsp; Procmail is still widely used although it is no longer maintained. Its former maintainer on OpenBSD, Philip Gunther, has said that it should be removed from the ports list because of security vulnerability, although it is still there. A suggested alternative is fdm, which both fetches the mail from a POP3 server &hellip; Continue reading &quot;How to replace procmail with fdm&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/\" \/>\n<meta property=\"og:site_name\" content=\"Anthony Campbell&#039;s Blog 2\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-11T12:41:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-01T12:01:22+00:00\" \/>\n<meta name=\"author\" content=\"Anthony Campbell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anthony Campbell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/\"},\"author\":{\"name\":\"Anthony Campbell\",\"@id\":\"https:\/\/acampbell.uk\/wp\/#\/schema\/person\/3bdb893c1c990948590f4ed9f30fee36\"},\"headline\":\"How to replace procmail with fdm\",\"datePublished\":\"2019-04-11T12:41:14+00:00\",\"dateModified\":\"2020-12-01T12:01:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/\"},\"wordCount\":311,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/acampbell.uk\/wp\/#\/schema\/person\/3bdb893c1c990948590f4ed9f30fee36\"},\"keywords\":[\"openbsd\"],\"articleSection\":[\"computers\",\"OpenBSD\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/\",\"url\":\"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/\",\"name\":\"How to replace procmail with fdm - Anthony Campbell&#039;s Blog 2\",\"isPartOf\":{\"@id\":\"https:\/\/acampbell.uk\/wp\/#website\"},\"datePublished\":\"2019-04-11T12:41:14+00:00\",\"dateModified\":\"2020-12-01T12:01:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/acampbell.uk\/wp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to replace procmail with fdm\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/acampbell.uk\/wp\/#website\",\"url\":\"https:\/\/acampbell.uk\/wp\/\",\"name\":\"Anthony Campbell&#039;s Blog 2\",\"description\":\"My modest contribution to keeping alive the values of the Enlightenment\",\"publisher\":{\"@id\":\"https:\/\/acampbell.uk\/wp\/#\/schema\/person\/3bdb893c1c990948590f4ed9f30fee36\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/acampbell.uk\/wp\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/acampbell.uk\/wp\/#\/schema\/person\/3bdb893c1c990948590f4ed9f30fee36\",\"name\":\"Anthony Campbell\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/acampbell.uk\/wp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2ecb7db399f5568043edb7868078fdd7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2ecb7db399f5568043edb7868078fdd7?s=96&d=mm&r=g\",\"caption\":\"Anthony Campbell\"},\"logo\":{\"@id\":\"https:\/\/acampbell.uk\/wp\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.acampbell.uk\",\"https:\/\/en.wikipedia.org\/wiki\/Anthony_Campbell_(physician)\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to replace procmail with fdm - Anthony Campbell&#039;s Blog 2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/","og_locale":"en_GB","og_type":"article","og_title":"How to replace procmail with fdm - Anthony Campbell&#039;s Blog 2","og_description":"&nbsp; &nbsp; &nbsp; Procmail is still widely used although it is no longer maintained. Its former maintainer on OpenBSD, Philip Gunther, has said that it should be removed from the ports list because of security vulnerability, although it is still there. A suggested alternative is fdm, which both fetches the mail from a POP3 server &hellip; Continue reading \"How to replace procmail with fdm\"","og_url":"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/","og_site_name":"Anthony Campbell&#039;s Blog 2","article_published_time":"2019-04-11T12:41:14+00:00","article_modified_time":"2020-12-01T12:01:22+00:00","author":"Anthony Campbell","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Anthony Campbell","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/#article","isPartOf":{"@id":"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/"},"author":{"name":"Anthony Campbell","@id":"https:\/\/acampbell.uk\/wp\/#\/schema\/person\/3bdb893c1c990948590f4ed9f30fee36"},"headline":"How to replace procmail with fdm","datePublished":"2019-04-11T12:41:14+00:00","dateModified":"2020-12-01T12:01:22+00:00","mainEntityOfPage":{"@id":"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/"},"wordCount":311,"commentCount":1,"publisher":{"@id":"https:\/\/acampbell.uk\/wp\/#\/schema\/person\/3bdb893c1c990948590f4ed9f30fee36"},"keywords":["openbsd"],"articleSection":["computers","OpenBSD"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/","url":"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/","name":"How to replace procmail with fdm - Anthony Campbell&#039;s Blog 2","isPartOf":{"@id":"https:\/\/acampbell.uk\/wp\/#website"},"datePublished":"2019-04-11T12:41:14+00:00","dateModified":"2020-12-01T12:01:22+00:00","breadcrumb":{"@id":"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/acampbell.uk\/wp\/2019\/04\/11\/replacing-procmail-with-fdm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/acampbell.uk\/wp\/"},{"@type":"ListItem","position":2,"name":"How to replace procmail with fdm"}]},{"@type":"WebSite","@id":"https:\/\/acampbell.uk\/wp\/#website","url":"https:\/\/acampbell.uk\/wp\/","name":"Anthony Campbell&#039;s Blog 2","description":"My modest contribution to keeping alive the values of the Enlightenment","publisher":{"@id":"https:\/\/acampbell.uk\/wp\/#\/schema\/person\/3bdb893c1c990948590f4ed9f30fee36"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/acampbell.uk\/wp\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/acampbell.uk\/wp\/#\/schema\/person\/3bdb893c1c990948590f4ed9f30fee36","name":"Anthony Campbell","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/acampbell.uk\/wp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2ecb7db399f5568043edb7868078fdd7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2ecb7db399f5568043edb7868078fdd7?s=96&d=mm&r=g","caption":"Anthony Campbell"},"logo":{"@id":"https:\/\/acampbell.uk\/wp\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.acampbell.uk","https:\/\/en.wikipedia.org\/wiki\/Anthony_Campbell_(physician)"]}]}},"modified_by":"Anthony Campbell","_links":{"self":[{"href":"https:\/\/acampbell.uk\/wp\/wp-json\/wp\/v2\/posts\/123"}],"collection":[{"href":"https:\/\/acampbell.uk\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/acampbell.uk\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/acampbell.uk\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/acampbell.uk\/wp\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":29,"href":"https:\/\/acampbell.uk\/wp\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":897,"href":"https:\/\/acampbell.uk\/wp\/wp-json\/wp\/v2\/posts\/123\/revisions\/897"}],"wp:attachment":[{"href":"https:\/\/acampbell.uk\/wp\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/acampbell.uk\/wp\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/acampbell.uk\/wp\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}