{"id":40,"date":"2008-08-31T18:25:47","date_gmt":"2008-08-31T17:25:47","guid":{"rendered":"http:\/\/www.yelloworb.com\/freebsd\/?p=40"},"modified":"2008-08-31T23:48:04","modified_gmt":"2008-08-31T22:48:04","slug":"serverside-filter-with-squirrelmail","status":"publish","type":"post","link":"https:\/\/www.yelloworb.com\/freebsd\/2008\/08\/serverside-filter-with-squirrelmail\/","title":{"rendered":"Serverside filter with SquirrelMail"},"content":{"rendered":"<p><strong>THIS DOES NOT WORK YET!!! I&#8217;M WORKING ON IT<\/strong><\/p>\n<p>Down load the plugin<br \/>\nInstall pre-requisites &#8211; squirrelmail compatibility plygin:<br \/>\n<code>cd  \/usr\/port\/mail\/squirrelmail-compatibility-plugin1\/<br \/>\nmake install<br \/>\nmake clean<\/code><\/p>\n<p>Download the ServerSidePlugin from <a href=\"http:\/\/www.squirrelmail.org\/plugin_view.php?id=210\">here<\/a>. And then extract the tarball in the SquirrelMail plugins directory:<br \/>\n<code>cd \/usr\/local\/www\/squirrelmail\/plugins<br \/>\ntar xvfz ~\/serversidefilter-1.42.tar.gz<\/code><\/p>\n<p>Rename the config file:<br \/>\n<code>cd serversidefilter<br \/>\ncp config.php.sample config.php<\/code><\/p>\n<p>Edit the config file config.php and set the followin:<br \/>\n<code>$FILTER_FILE_PATH = '\/home\/vpopmail\/domains\/[DOMAIN]\/[USERNAME]\/.mailfilter';<br \/>\n$FILTER_APP_PATH = '\/usr\/local\/bin\/maildrop';<br \/>\n$LOCAL_MAILDIR = '\/home\/vpopmail\/domains\/[DOMAIN]\/[USERNAME]\/';<br \/>\n$FORWARD_FILE_PATH = \"\/home\/vpopmail\/domains\/[DOMAIN]\/[USERNAME]\/\";<\/code><\/p>\n<p>and un-comment these lines:<br \/>\n<code>\/\/$SPAMFILTER = '\/usr\/bin\/spamc -u [USERNAME] -f';<br \/>\n\/\/$SPAMHEADER = 'X-Spam-Flag';<br \/>\n\/\/$SPAMVALUE = 'Yes';<\/code><\/p>\n<p>Next..<\/p>\n<p>You need to recompile the filtercmd to work on FreeBSD and your settings.<\/p>\n<p>Read the README in the script directory. Change in the Makefile:<br \/>\nHTTPD_GROUP=www<br \/>\nSQUIRRELMAILCONFIGFILE=\/usr\/local\/www\/squirrelmail\/config\/config.php<br \/>\nLIBS=-L\/usr\/local\/lib -L\/usr\/local\/lib\/compat -lc-client4 -lssl -lpam -lgssapi \\<br \/>\n-lcrypt -lkrb5 -lcom_err -lz -lcrypto -lopie -lradius -ltacplus -lutil -lmd -ly\\<br \/>\npclnt -lssh -lasn1 -lroken -lcrypto<br \/>\nI=\/usr\/local\/include\/c-client<\/p>\n<p>Save it.<\/p>\n<p>Install c-client from mail\/cclient\/ in ports.<\/p>\n<p>Now you should be able to compile but still the test.sh script does not work.<br \/>\nI get this problem:<br \/>\nRESULT: 11<br \/>\nCan&#8217;t find uid\/gid for user<\/p>\n<p>The problem is that I use vpopmail and thus there exists no users within imap that are system users. I think there might be help here http:\/\/forum.qmailrocks.org\/showthread.php?t=381&#038;page=2<\/p>\n<p>&#8230;<\/p>\n<p>Sometime in the future when above is solved the rest should be as follows!<br \/>\nNow you are setup!<\/p>\n<p>Go to \/usr\/local\/www\/squirrelmail\/ and do config\/conf.pl to configure SquirrelMail to use this new plugin. Select 8 for plugins, then the number for ServerSideFilter. Then press S to save and Q to quit. Go to http:\/\/your-squirrelmail-location\/src\/configtest.php to make sure your configuration is working!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>THIS DOES NOT WORK YET!!! I&#8217;M WORKING ON IT Down load the plugin Install pre-requisites &#8211; squirrelmail compatibility plygin: cd \/usr\/port\/mail\/squirrelmail-compatibility-plugin1\/ make install make clean Download the ServerSidePlugin from here. And then extract the tarball in the SquirrelMail plugins directory: &hellip; <a href=\"https:\/\/www.yelloworb.com\/freebsd\/2008\/08\/serverside-filter-with-squirrelmail\/\">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":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.yelloworb.com\/freebsd\/wp-json\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yelloworb.com\/freebsd\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yelloworb.com\/freebsd\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yelloworb.com\/freebsd\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yelloworb.com\/freebsd\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":4,"href":"https:\/\/www.yelloworb.com\/freebsd\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":42,"href":"https:\/\/www.yelloworb.com\/freebsd\/wp-json\/wp\/v2\/posts\/40\/revisions\/42"}],"wp:attachment":[{"href":"https:\/\/www.yelloworb.com\/freebsd\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yelloworb.com\/freebsd\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yelloworb.com\/freebsd\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}