Linux HOWTOs

About | Home | Search


ERROR: Slooooow dooooown... this page load was delayed.

HOWTO: smartsieve
Description: Web based GUI for creating and managing Sieve scripts
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


smartsieve 0.3.3devel
=====================
# Prerequisites:
# cyrus imap w/ timesieved running
# apache w/ php (w/ imap support)

cd
wget http://download.sf.net/smartsieve/smartsieve-0.3.3devel.tar.gz

# Verify w/ md5sum
echo "d6876edab45c18b6d20557c26cb762bc" ; md5sum smartsieve-0.3.3devel.tar.gz

# To manually go from 0.3.2devel to 0.3.3, replace your old README,
# CHANGES, lib/sieve.lib and lib/version.php with the new ones and
# fix their permissions.  No need to following the instructions
# in the next section.

cd /usr/local/apache/htdocs
test -d ./smartsieve &&
  mv -f ./smartsieve ./smartsieve.old &&
  chmod 700 ./smartsieve.old
tar xzvf ~/smartsieve-0.3.3devel.tar.gz
mv smartsieve-0.3.3devel smartsieve
chown -R root.nobody smartsieve
find smartsieve -type d | xargs chmod 750
find smartsieve -type f | xargs chmod 640
cd smartsieve
chmod 400 CHANGES COPYING INSTALL NOTICE README TODO

# Replace conf/.htaccess with this:

  Allow from all

Deny from all


# Now modify the conf/* files

cd
mkdir -p installed/apache
rm -f installed/apache/smartsieve-*.tar.*
mv smartsieve-0.3.3devel.tar.gz installed/apache/

# Make sure index.php is set for Apache's "DirectoryIndex" in httpd.conf:
#
#    DirectoryIndex index.php index.html
#

# Make sure you have something like this in httpd.conf for php:
#AddType application/x-httpd-php .php .php3 

# Make sure .htaccess files are allowed for the smartsieve directory

  AllowOverride All


# Create the .htaccess file you allowed (this one is for auth_ldap):
cat < .htaccess
AuthType Basic
AuthName "Smartsieve"
AuthLDAPURL ldap://localhost:389/ou=people,dc=foo,dc=org?uid??host=Sieve
require valid-user
HTFILE
chown root.nobody .htaccess
chmod 640 .htaccess

# That should be it:
#lynx https://yourserver/smartsieve/

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>