Plesk update to 8.4.0 e-mail issue

May 18th, 2008

If you have CentOS and your Plesk was updated to 8.4.0 version and you have problems with SMTP Authentication read this article.

STEP 1: check installed rpm after plesk update
rpm -qa | grep psa | grep qmail

psa-qmail-rblsmtpd-0.70-cos4.build84080425.21
psa-qmail-1.03-cos4.build84080425.21

if you have other output than mine download new rpms from official site

STEPT 2:
you have to install this psa-qmail-1.03-cos4.build84080425.21.i586.rpm
and this psa-qmail-rblsmtpd-0.70-cos4.build84080425.21.i586.rpm

rpm -U psa-qmail-rblsmtpd-0.70-cos4.build84080425.21.i586.rpm #update
rpm -U psa-qmail-rblsmtpd-0.70-cos4.build84080425.21.i586.rpm #update rbl

if you see message that you have the latest version but it’s not true uninstall previous version

rpm -e –nodeps your_previous_version
also with rbl
and install the new one
rpm -i psa-qmail-rblsmtpd-0.70-cos4.build84080425.21.i586.rpm
also with rbl RPM

STEP 3:
after that edit /etc/xinetd.d/smtp_psa

service smtp
{
socket_type = stream
protocol = tcp
wait = no
disable = no
user = root
instances = UNLIMITED
env = SMTPAUTH=1 SHORTNAMES=1
server = /var/qmail/bin/tcp-env
server_args = -Rt0 /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true
}

STEP 4:
restart qmail, restart courier-imap
and have fun

Install Ejabberd server on your Linux or FreeBSD

February 2nd, 2008

Install Erlang from source

1. Install Libncurses development files
with Debian APT

apt-get install libncurses5-dev

2. Install OpenSSL and its development files
with Debian APT

apt-get install openssl libssl-dev

3. Install Erlang

Download Erlang/OTP source code and uncompress it. For example:

wget http://www.erlang.org/download/otp_src_R10B-10.tar.gztar -xzvf otp_src_R10B-10.tar.gz

cd otp_src_R10B-10

LANG=C; export LANG

Compile and install it:

./configuremake

make install

# with Debian APT

apt-get install erlang

# using Port Collection on FreeBSD

cd /usr/ports/lang/erlang-lite && make all install clean

# Verify Installation

Check if it is correctly installed:

erlErlang (BEAM) emulator version 5.4 [source] [hipe]Eshell V5.4 (abort with ^G)

1> halt().

# Install ejabberd

* from source SVN
1. Install Libexpatl development files with Debian APT

apt-get install libexpat1-dev

2. Retrieve ejabberd from the Subversion repository

svn co http://svn.process-one.net/ejabberd/trunk ejabberd

3. Compile

cd ejabberd/src./configure

make

4. Configure

You can use the example configuration file:

cp ejabberd.cfg.example ejabberd.cfg

You should add a user to your system:

addgroup jabberadduser ejabberd

adduser ejabberd jabber

chown ejabberd:jabber ../src -R

chmod 750 ../src -R

5. Execute

Command to execute ejabberd:

su ejabberd -c “erl -s ejabberd -name ejabberd -ejabberd config ‘\”ejabberd.cfg\”‘ -detached”

You can use a script.
using apt on Debian unstable and testing

It is as easy as:

apt-get install ejabberd

* using apt on Debian stable

Add Teopetuk’s unofficial Debian APT repository if you do not have it. Then update the list of available packages and finally install it:

apt-get install ejabberd

* using Port Collection on FreeBSD

cd /usr/ports/net-im/ejabberd && make all install clean

# Enable SSL/TLS Secured Communication

Create a SSL key (read this tutorial for more information):

openssl req -new -x509 -newkey rsa:1024 -days 3650 -keyout privkey.pem -out server.pemopenssl rsa -in privkey.pem -out privkey.pem

cat privkey.pem >> server.pem

rm privkey.pem

Now edit your ejabberd.cfg file and specify the correct location of your server.pem:

{listen, [{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}, starttls, {certfile, “/home/ejabberd/server.pem”}]},

{5223, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},

ssl, {certfile, “/home/ejabberd/server.pem”}]},

]}.{s2s_use_starttls, true}.

{s2s_certfile, “/home/ejabberd/server.pem”}

Creating A DNS Cache With djbdns

February 2nd, 2008

Building a local DNS cache will speed up your internet connection since the time for the “translation job” (converting domain names into IP addresses) will become negligible with the assumption that the DNS cache gets the information from the parent DNS.

http://www.howtoforge.com/dns_cache_with_djbdns

FreeBSD 7.0-BETA4 disponibil pentru download

December 7th, 2007

The 7.0-BETA4 builds are now available. If you would like to download
an ISO image to install from they are available here:

ftp://ftp.freebsd.org/pub/FreeBSD/releases/<arch>/ISO-IMAGES/7.0/

If you would like to use cvsup to update an older machine the branch tag
to use is still RELENG_7.

For users of FreeBSD Update due to some last-minute bumps in system
libraries, installed third-party applications must be recompiled as per
normal for a “major” upgrade, even if upgrading from an earlier 7.0
BETA.

link: http://lists.freebsd.org/pipermail/freebsd-stable/2007-December/038873.html

Alternativă la trafshow - iftop

November 26th, 2007

Vreau să vă prezint o alternativă bună la trafshow.

Deseori, ai nevoie să afli cine sau ce soft generează trafic mare pe server, atunci în ajutor îţi vine iftop. Se instalează uşor şi este foarte simplu să lucrezi cu el.

La moment este prezentă versiunea 0.17

siteul proiectului Iftop http://www.ex-parrot.com/~pdw/iftop/

Un exemplu de instalare pe FreeBSD

wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
tar xvf iftop-0.17.tar.gz; cd iftop-0.17; ./configure ; make ; make install clean

Screenshot

Iftop