{"id":53,"date":"2004-09-09T08:31:32","date_gmt":"2004-09-09T05:31:32","guid":{"rendered":"http:\/\/void.gr\/kargig\/blog\/?p=53"},"modified":"2004-09-09T08:36:03","modified_gmt":"2004-09-09T05:36:03","slug":"qmail-vpopmai-l-procmail-spamassassin","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2004\/09\/09\/qmail-vpopmai-l-procmail-spamassassin\/","title":{"rendered":"Qmail + vpopmai l+ procmail + spamassassin"},"content":{"rendered":"<p>You might probably think that&#8217;s crazy&#8230;but yes it is possible. I have a <a href=\"http:\/\/www.qmail.nu\">qmail lazydog<\/a> installation that has built in vpopmail. But no mailer is complete these days unless it features antispam and antivirus protection. So I though I should implement <a href=\"http:\/\/spamassassin.apache.org\/\">spamassassin<\/a> + <a href=\"http:\/\/www.clamav.net\/\">clamav<\/a>. I won&#8217;t show how to setup spamd or clamd but how to process and deliver mails to users.<br \/>\nHow it works:<br \/>\ninside each domain in vpopmail there&#8217;s a .qmail-default file that it has probably something like this,<\/p>\n<blockquote><p>| \/home\/vpopmail\/bin\/vdelivermail &#8221; \/home\/vpopmail\/domains\/DOMAINNAME\/postmaster<\/p><\/blockquote>\n<p>But we want to use procmail, so we make it like this:<\/p>\n<blockquote><p>| preline \/usr\/bin\/procmail -p -m \/home\/vpopmail\/etc\/procmailrc<\/p><\/blockquote>\n<p>My procmailrc file:<\/p>\n<blockquote><p># qmail Lazydog procmailrc file<br \/>\nSHELL=&#8221;\/bin\/bash&#8221;<br \/>\nVHOME=`\/home\/vpopmail\/bin\/vuserinfo -d $EXT@$HOST`<br \/>\nVERBOSE=&#8221;no&#8221;<\/p>\n<p># Make sure that we have a .Spam and .Virus folder to sort spam and virus into.<br \/>\n# This will create directorys under the ~vpopmail\/domains\/<domain>\/<user>\/Maildir<br \/>\n# direcory. This directory will be created as soon as the user<br \/>\n# recives any mail. It simply creates the .Spam and .Virus directories,<br \/>\n# as well as subscribes them to courier-imap<br \/>\n:0wic<br \/>\n* ? test ! -d $VHOME\/Maildir\/.Spam<br \/>\n|( \/var\/qmail\/bin\/maildirmake $VHOME\/Maildir\/.Spam ;         \/bin\/echo &#8220;INBOX\/Spam&#8221; >> $VHOME\/Maildir\/.bincimap-subscribed )<br \/>\n:0wic<br \/>\n* ? test ! -d $VHOME\/Maildir\/.Virus<br \/>\n|( \/var\/qmail\/bin\/maildirmake $VHOME\/Maildir\/.Virus ;         \/bin\/echo &#8220;INBOX\/Virus&#8221; >> $VHOME\/Maildir\/.bincimap-subscribed )<\/p>\n<p># Run Anti-Virus and Anit-spam tests.<br \/>\n:0fw<br \/>\n| \/var\/qmail\/bin\/scanmail.sh<\/p>\n<p>:0:<br \/>\n* ^X-Virus-Status: INFECTED<br \/>\n$VHOME\/Maildir\/.Virus\/<\/p>\n<p># Sort anything marked as SPAM into the users Maildir\/.Spam\/<br \/>\n:0:<br \/>\n* ^X-Spam-Status: YES<br \/>\n$VHOME\/Maildir\/.Spam\/<\/p>\n<p># Everything else goes to the users default Maildir\/<br \/>\n#:0:<br \/>\n#*<br \/>\n#$VHOME\/Maildir\/<br \/>\n:0w<br \/>\n| \/home\/vpopmail\/bin\/vdelivermail &#8221; bounce-no-mailbox\n<\/p><\/blockquote>\n<p>notice the last 2 lines, they make procmail return the mail back to vpopmail so any quotas or other options are applied. Take a look at the Spam and Virus folders that are created inside each everyone&#8217;s account. scanmail.sh that is referred inside procmailrc is provided by the lazydog package. You can configure it as you want ..and it has a lot of options on how viruses and spam is treated.<\/p>\n<p>Have fun with your secure and without spam mail&#8230;.you do use smtp auth and ssl patches for your smtp+imap&#8230;don&#8217;t you ?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You might probably think that&#8217;s crazy&#8230;but yes it is possible. I have a qmail lazydog installation that has built in vpopmail. But no mailer is complete these days unless it features antispam and antivirus protection. So I though I should implement spamassassin + clamav. I won&#8217;t show how to setup spamd or clamd but how [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-53","post","type-post","status-publish","format-standard","hentry","category-general"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"You might probably think that&#039;s crazy...but yes it is possible. I have a qmail lazydog installation that has built in vpopmail. But no mailer is complete these days unless it features antispam and antivirus protection. So I though I should implement spamassassin + clamav. I won&#039;t show how to setup spamd or clamd but how\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"kargig\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.void.gr\/kargig\/blog\/2004\/09\/09\/qmail-vpopmai-l-procmail-spamassassin\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2004\\\/09\\\/09\\\/qmail-vpopmai-l-procmail-spamassassin\\\/#article\",\"name\":\"Qmail + vpopmai l+ procmail + spamassassin | Into.the.Void.\",\"headline\":\"Qmail + vpopmai l+ procmail + spamassassin\",\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"},\"datePublished\":\"2004-09-09T08:31:32+03:00\",\"dateModified\":\"2004-09-09T08:36:03+03:00\",\"inLanguage\":\"en-US\",\"commentCount\":3,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2004\\\/09\\\/09\\\/qmail-vpopmai-l-procmail-spamassassin\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2004\\\/09\\\/09\\\/qmail-vpopmai-l-procmail-spamassassin\\\/#webpage\"},\"articleSection\":\"General\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2004\\\/09\\\/09\\\/qmail-vpopmai-l-procmail-spamassassin\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/general\\\/#listItem\",\"position\":2,\"name\":\"General\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/general\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2004\\\/09\\\/09\\\/qmail-vpopmai-l-procmail-spamassassin\\\/#listItem\",\"name\":\"Qmail + vpopmai l+ procmail + spamassassin\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2004\\\/09\\\/09\\\/qmail-vpopmai-l-procmail-spamassassin\\\/#listItem\",\"position\":3,\"name\":\"Qmail + vpopmai l+ procmail + spamassassin\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/general\\\/#listItem\",\"name\":\"General\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/kargig\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/\",\"name\":\"kargig\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2004\\\/09\\\/09\\\/qmail-vpopmai-l-procmail-spamassassin\\\/#webpage\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2004\\\/09\\\/09\\\/qmail-vpopmai-l-procmail-spamassassin\\\/\",\"name\":\"Qmail + vpopmai l+ procmail + spamassassin | Into.the.Void.\",\"description\":\"You might probably think that's crazy...but yes it is possible. I have a qmail lazydog installation that has built in vpopmail. But no mailer is complete these days unless it features antispam and antivirus protection. So I though I should implement spamassassin + clamav. I won't show how to setup spamd or clamd but how\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2004\\\/09\\\/09\\\/qmail-vpopmai-l-procmail-spamassassin\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"datePublished\":\"2004-09-09T08:31:32+03:00\",\"dateModified\":\"2004-09-09T08:36:03+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Qmail + vpopmai l+ procmail + spamassassin | Into.the.Void.","description":"You might probably think that's crazy...but yes it is possible. I have a qmail lazydog installation that has built in vpopmail. But no mailer is complete these days unless it features antispam and antivirus protection. So I though I should implement spamassassin + clamav. I won't show how to setup spamd or clamd but how","canonical_url":"https:\/\/www.void.gr\/kargig\/blog\/2004\/09\/09\/qmail-vpopmai-l-procmail-spamassassin\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.void.gr\/kargig\/blog\/2004\/09\/09\/qmail-vpopmai-l-procmail-spamassassin\/#article","name":"Qmail + vpopmai l+ procmail + spamassassin | Into.the.Void.","headline":"Qmail + vpopmai l+ procmail + spamassassin","author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"},"datePublished":"2004-09-09T08:31:32+03:00","dateModified":"2004-09-09T08:36:03+03:00","inLanguage":"en-US","commentCount":3,"mainEntityOfPage":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2004\/09\/09\/qmail-vpopmai-l-procmail-spamassassin\/#webpage"},"isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2004\/09\/09\/qmail-vpopmai-l-procmail-spamassassin\/#webpage"},"articleSection":"General"},{"@type":"BreadcrumbList","@id":"https:\/\/www.void.gr\/kargig\/blog\/2004\/09\/09\/qmail-vpopmai-l-procmail-spamassassin\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/www.void.gr\/kargig\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/general\/#listItem","position":2,"name":"General","item":"https:\/\/www.void.gr\/kargig\/blog\/category\/general\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2004\/09\/09\/qmail-vpopmai-l-procmail-spamassassin\/#listItem","name":"Qmail + vpopmai l+ procmail + spamassassin"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2004\/09\/09\/qmail-vpopmai-l-procmail-spamassassin\/#listItem","position":3,"name":"Qmail + vpopmai l+ procmail + spamassassin","previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/general\/#listItem","name":"General"}}]},{"@type":"Organization","@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization","name":"Into.the.Void.","description":"Into The Void","url":"https:\/\/www.void.gr\/kargig\/blog\/","sameAs":["https:\/\/x.com\/kargig"]},{"@type":"Person","@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author","url":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/","name":"kargig"},{"@type":"WebPage","@id":"https:\/\/www.void.gr\/kargig\/blog\/2004\/09\/09\/qmail-vpopmai-l-procmail-spamassassin\/#webpage","url":"https:\/\/www.void.gr\/kargig\/blog\/2004\/09\/09\/qmail-vpopmai-l-procmail-spamassassin\/","name":"Qmail + vpopmai l+ procmail + spamassassin | Into.the.Void.","description":"You might probably think that's crazy...but yes it is possible. I have a qmail lazydog installation that has built in vpopmail. But no mailer is complete these days unless it features antispam and antivirus protection. So I though I should implement spamassassin + clamav. I won't show how to setup spamd or clamd but how","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2004\/09\/09\/qmail-vpopmai-l-procmail-spamassassin\/#breadcrumblist"},"author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"creator":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"datePublished":"2004-09-09T08:31:32+03:00","dateModified":"2004-09-09T08:36:03+03:00"},{"@type":"WebSite","@id":"https:\/\/www.void.gr\/kargig\/blog\/#website","url":"https:\/\/www.void.gr\/kargig\/blog\/","name":"Into.the.Void.","description":"Into The Void","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"53","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2022-01-04 11:57:21","updated":"2026-10-21 08:57:15","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/category\/general\/\" title=\"General\">General<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tQmail + vpopmai l+ procmail + spamassassin\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.void.gr\/kargig\/blog\/"},{"label":"General","link":"https:\/\/www.void.gr\/kargig\/blog\/category\/general\/"},{"label":"Qmail + vpopmai l+ procmail + spamassassin","link":"https:\/\/www.void.gr\/kargig\/blog\/2004\/09\/09\/qmail-vpopmai-l-procmail-spamassassin\/"}],"views":5949,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":0,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}