Wednesday, November 13, 2013

Install Quota and Sieve Plugin for Dovecot Mailserver

To use Quota, you will first need to make sure you are using Dovecot's deliver for delivering incoming mail to users' mailboxes. Then, you need to enable the Quota plugin in your dovecot.conf

First we will start with configuring PostfixAdmin To Enable Quota Limits,

vim /var/www/postfixadmin/config.inc.php

$CONF['quota'] = 'YES';
$CONF['used_quotas'] = 'YES';
$CONF['new_quota_table'] = 'YES';

These enable the quota configuration within PostfixAdmin.

The "quota" field in the table mailbox is the user quota limit which postfixadmin enters in Megabytes and is stored in bytes.
The "maxquota" field in the domain table is the domain quota limit.
The SuperAdmin within PostfixAdmin has control over these values.

Enabling Quota Mailbox Limits in Dovecot,

Install Dovecot LDA and SASL for Postfix Mailserver

The Dovecot LDA is a local delivery agent which takes mail from an MTA and delivers it to a user's mailbox.

Key features :-

1. Mailbox indexing during mail delivery which provides faster mailbox access later.
2. Quota enforcing by a plugin.
3. Sieve language support by a plugin.

Here I will explain how to configure Dovecot as your LDA/MDA having MTA running under Postfix. And also I will cover giving Quota and sieve support to Dovecot.

The Mail server installation can be followed from the link below,
postfix-mailserver

The above documentation uses Postfix itself as LDA and this should be modified as explained below.

First we need to add the following to the master file,

vim /etc/postfix/master.cf

dovecot unix - n n - - pipe
  flags=DRhu user=dovecot:dovecot argv=/usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient}

Now we need to tell postfix to use dovecot as LDA,

Friday, November 8, 2013

Maildrop Installation on Postfix Server

Maildrop is a Mail delivery agent used by Mail Servers mostly for its filtering functionality. Maildrop reads a mail message from standard input, then delivers the message to your mailbox.

Mailserver installation can be followed from the links below ..

postfix-dovecot

Here I will explain how to configure maildrop with postfix for filering SPAM mails to Junk folder.

First we need to install Perl Compatible Regular Expression software with utf8 support.

For that download the package from the link below,

wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.33/pcre-8.33.zip

unzip pcre-8.33.zip
cd pcre-8.33

./configure --enable-utf
make
make install

Monday, November 4, 2013

Installing Liferay on JBoss 7

Today I will explain how to deploy liferay portal on JBoss 7. For this I am using a linux based system.

First we start by installing jdk.
Download the jdk from java.net from the link below,

wget http://download.java.net/jdk6/6u38/promoted/b04/binaries/jdk-6u38-ea-bin-b04-linux-i586-31_oct_2012.bin?q=download/jdk6/6u38/promoted/b04/binaries/jdk-6u38-ea-bin-b04-linux-i586-31_oct_2012.bin

Install the jdk in /usr/lib/jdk6/ , by unzipping and extracting the downloaded jdk to this folder.
Now create user jboss,
useradd -m jboss

su - jboss

vim /home/jboss/.profile

export PATH
JAVA_HOME=/usr/lib/jdk6/
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
JBOSS_HOME=/opt/liferay/jboss
export JBOSS_HOME

source /home/jboss/.profile