Entries by extremeshok

Email Server Secuirty ( Postfix SMTP + ClamAV Unofficial Signatures clamav-unofficial-sigs ) CentOS 6

Notes: the following will be done to an existing CentOS/RHCE mail server. Assumptions: clamav installed and configured. Prepare the node:

SCAMP: 3rd Party ClamAV definitions Download SCAMP: 3rd Party ClamAV definitions Download the latest version from: http://sourceforge.net/projects/scamp/

Configure SCAMP for CentOS Assumes user/group is clam


Install latest Boost C++ and CLucene ( lucene ) on Centos

Remove Conflicting Packages

Install Build Requirements

Install Modular Boost C++ Boost provides free peer-reviewed portable C++ source libraries. Project location: http://www.boost.org This will take a long time, due to all the required submodules, ~30mins. Download

Compile and Install

Install CLucene Lucene is a C port of the popular Java Lucene library, a high-performance, […]

Dovecot fts_lucene ( lucene full text search aka solr replacement ) for centos


Remove Conflicting Packages

Install Build Requirements

Complete: Install latest Boost C++ and CLucene++ ( lucene ) on Centos Create a Dovecot fts_lucene rpm Project location: http://www.dovecot.org/download.html This will take a long time, due to all the required submodules, ~30mins. Download for centos 6 / 7 / Dovecot 2.1.17

Download for centos 6/ […]

Dovecot 2.2.x on Centos 6 (iredmail compatible)

Remove Conflicts yum remove dovecot-pigeonhole managesieve-login dovecot-managesieve Stop Dovecot service dovecot stop Install Wing Repo cd /etc/yum.repos.d/ wget http://wing-repo.net/wing/6/EL6.wing.repo Install Dovecot 2.2.x yum –enablerepo=wing install dovecot dovecot-pigeonhole dovecot-mysql dovecot-devel Note: for postgresql suppost yum –enablerepo=wing install dovecot-pgsql Remove unsupported config options/plugins from /etc/dovecot.conf Remove plugin fts_solr Remove/comment out plugin { fts = solr #break-imap-search will […]

Dovecot Antispam plugin on Centos (iredmail compatible)

Assumnptions: Configured email server with Dovecot 2.2.x on Centos / RHCE Install Build Requirements

Install dovecot-antispam-plugin Download

Compile and Install

Configure: /etc/dovecot/dovecot.conf

Configure: /usr/local/bin/sa-learn-pipe.sh cat > /usr/local/bin/sa-learn-pipe.sh <<EOF #!/bin/bash echo /usr/bin/sa-learn $* /tmp/sendmail-msg-$$.txt echo “$$-start ($*)” >> /tmp/sa-learn-pipe.log #echo $* > /tmp/sendmail-parms.txt cat<&0 >> /tmp/sendmail-msg-$$.txt /usr/bin/sa-learn $* /tmp/sendmail-msg-$$.txt && rm -f /tmp/sendmail-msg-$$.txt […]

Dovecot deleted-to-trash plugin (outlook delete to trash imap fix) on Centos (iredmail compatible)

The purpose of this deleted_to_trash-plugin is to fix behavior with IMAP clients (like outlook) that don’t work well with dovecot, specifically not copying deleted email to your Trash folder automatically. So, what this plugin does is fixing this behavior by copying deleted items to the Trash folder. The plugin needs to tell the difference between […]

Dovecot fts elasticsearch plugin ( full text search ) on Centos (iredmail compatible)

fts-elasticsearch is a Dovecot full-text search indexing plugin that uses ElasticSearch as a backend. Dovecot communicates to ES using HTTP/JSON queries. It supports automatic indexing and searching of e-mail. Assumnptions: Configured email server with Dovecot 2.2.x on Centos / RHCE Install Build Requirements

Requires RepoForge repo to provide autoconf-archive yum –enablerepo=rpmforge-extras install autoconf-archive Install dovecot-antispam-plugin […]

Sending and Receiving ZFS Data

http://docs.oracle.com/cd/E19253-01/819-5461/gbchx/index.html Sending and Receiving ZFS Data The zfs send command creates a stream representation of a snapshot that is written to standard output. By default, a full stream is generated. You can redirect the output to a file or to a different system. The zfs receive command creates a snapshot whose contents are specified in the stream that is […]

Proxmox grub zfs recovery / rescue system chroot and recover grub

Boot into rescue linux Setup the root zfspool and mounts

  You are now in the chroot

Re-assign the mountpoint of the zfs and reboot

Set the server to boot via hard drive and then Reboot (shutdown -r now) If the system does not start, reboot into rescue linux and run the […]

Postfix : BUG FIX : warning: Illegal address syntax ( Fix malformed emails )

Basically the sending email client is outlook and the existing contact email address in the address book contains an apostrophe this can cause the emails address to become invalid. Assumptions postfix 2.7 or later Description: Fix malformed emails that are surrounded in single quotes. BUG:

FIX: Run the following to create the /etc/postfix/command_filter.regex file […]