Installation and Download
Requirements^
Perl >= 5.10 is required
There are also a couple of perl modules. Those can be installed with the dencency-perl-modules package (either tar.gz or debian).
- Archive::Tar >= 1.40
- Cache::FastMmap
- Cache::File
- Cache::Memcached
- Crypt::OpenSSL::RSA
- DBD::SQLite
- DBI
- DBIx::Connector
- Getopt::Long
- Geo::IP
- IO::File
- IO::Handle
- IO::Pipe
- IO::Socket
- IO::YAML >= 0.08
- IPC::Semaphore >= 2.01
- IPC::SysV >= 2.01
- Mail::DKIM >= 0.38
- Mail::SPF
- MIME::Lite
- MIME::Parser
- MIME::QuotedPrint
- Moose >= 1.00
- Net::Domain::TLD
- Net::DNS
- Net::Milter
- Net::Netmask
- Net::SMTP
- POE
- POE::Filter::Postfix::Plain
- POE::Wheel::FollowTail
- POE::Wheel::ReadWrite
- POE::Wheel::SocketFactory
- SQL::Abstract
- Throwable
- version >= 0.74
- YAML
Then of course, you require all third party tools you plan to use.. such as razor, SpamAssazin, ClamAV and so on. Those are not included
Installation^
Debian^
Thats easy. Download (below) and dpkg -i them
#> dpkg -i decency-current.deb #> dpkg -i decency-perl-modules-current_amd64.deb
Compressed archive^
Add user/group^
Add a new user and group which you want to use for decency. Eg:
/usr/sbin/adduser --system --group --home /var/spool/decency --gecos "Decency anti spam" --disabled-password --quiet decency
Install base^
Download the the archives from below, then:
#> tar zxf decency-current.tar.gz #> cd decency-current/ #> chown decency:decency . -R #> mkdir -p /opt/decency #> cp -ra opt/decency /opt/decency
Install perl modules^
If you are a perl programmer, you’ll probably go with cpan i Module and need no further explanation. So i will focus on the non perlers: Download the perl modules archive for your architecture below.
#> tar zxf decency-perl-modules-current-arch.tar.gz #> cd decency-perl-modules-current-arch/ #> chown decency:decency . -R #> mkdir -p /opt/decency/locallib #> cp -ra opt/decency/locallib /opt/decency/locallib
Init scripts^
They are there, but not yet installed. First of link them in your init.d directory:
#> ln -s /opt/decency/bin/init-policy-server /etc/init.d/decency-policy #> ln -s /opt/decency/bin/init-content-filter-server /etc/init.d/decency-content-filter #> ln -s /opt/decency/bin/init-log-parser-server /etc/init.d/decency-log-parser
Now update your run-levels, eg like so:
#> update-rc.d decency-policy defaults 24 #> update-rc.d decency-content-filter defaults 24 #> update-rc.d decency-log-parser defaults 24
Make all required directories:
#> mkdir -p /var/spool/decency /opt/decency /var/log/decency /var/run/decency #> chown -R decency:decency /var/spool/decency /opt/decency /var/log/decency /var/run/decency
And you are done.
Install from CPAN^
Thats the “hardest” way, cause you have to setup all folder structures, write all config files and init scripts. See the configuration for howto do this and install decency from CPAN via:
#> cpan i Mail::Decency
Now find the “decency-server.pl” file in your perllib, and copy it to /opt/decency/bin (or wherever you’ll install decency).
Download^
Currently decency is in testing. The CPAN Modules has been released and all modules run on testing mail servers to figure out as much runtime bugs as possible. The description will be released as i write the . You can download the testing versions here:
- Packed Perl-Modules (CPAN):Mail-Decency-0.1.6.tar.gz
- Compressed installer: decency-0.1.6.tar.gz, decency-perl-modules-0.1.6_amd64.tar.gz
- Experimental Debian Packages: decency-0.1.6_all.deb, decency-perl-modules.0.1.6_amd64.deb
My Name is Ulrich Kautz and this is my private blog about server administration, perl programming and some other stuff that is on my mind. I study part-time computer sience at FU Berlin and work as sys admin and web developer at our hosting company