Postfix+Amavisd-new+Spamassasin+Clamav

Since I had to disable the PTR check in Postfix at Binware because in Spain 90% of mail servers are badly configured and they were all rejected, and now we have lot of spam.

So I decided to install Spamassassin and Clamav to detect and reject some of this spam.

First of all, we need to install needed packages:

apt-get install spamassassin amavisd-new clamav clamav-daemon

We will begin configuring amavisd-new, the configuration files are at /etc/amavis/conf.

In file 20-debian_defaults I changed the header that will be added to each mail processed:

$X_HEADER_LINE = "AntiSpam/Antivirus Scanner at $mydomain";

We need to activate antispam and antivirus check in amavis, this is found in file 15-content_filter_mode. We need to uncomment @bypass_virus_checks_maps and @bypass_spam_checks_maps. The file will look like this:

Read more... (193 words, estimated 46 secs reading time)

Eclipse Configuration for Web Development

After trying very different IDE and many Eclipse IDE flawors, this is the best configuration I have found, and all the components are free.

First of all we need to download Eclipse Classic from the Eclipse website.

One of the first things we need to do is to change eclipse.ini, we will make it start faster and increase the memory limit

1
2
3
4
5
6
7
--launcher.XXMaxPermSize
256m
-vm
/usr/bin/java
-vmargs
-Xms40m
-Xmx1024m

The path to Java VM depends on your installation and system, in windows you must search for “javaw.exe”. Setting the path to Java VM makes that Eclipse stops searching for the Java VM every start, which makes the start faster.

Now we can start installing the required Plugins. In “Help->Install New Software…” we will add the following Update Sites.

Read more... (536 words, 9 images, estimated 2:09 mins reading time)

MooStepForm

Hoy repasando los RSS, he visto que anieto2k ha publicado un script para jQuery que convertia un formulario en varios pasos. Lo que ha hecho tener la idea de hacer lo mismo pero con Mootools.

El funcionamiento es el mismo que el script de anieto2k, busca por defecto un formulario (estoy preparandolo para que funcione con mas de uno…) con la class stepMe y lo divide por fieldsets.

Se puede personalizar al crear la clase:

  • strBack: ‘string de volver’
  • strNext: ‘string de siguiente’
  • blockEl: ‘tag para usar en la division’
  • className: ‘class del formulario’

He adjuntado un pequeño fichero HTML para verlo en funcionamiento (AVISO: no tiene CSS!!)

Lo podeis descargar aqui: MooStepForm v.0.1

CNET Mootools libraries

Mootools para mi es uno de los frameworks javascript que mas me gustan y que estoy utilizando bastante ultimamente. El otro dia estaba buscando unas librerias interesantes para Mootols y me tope con las CNET Libraries, que son unas librerias OpenSource compatibles con Mootools 1.2

Las librerias cuentan con una buena documentacion y ejemplos, estan divididas en varias categorias:

Recompilar MAMP

El soporte de LDAP en MAMP 1.7.1 esta roto asi que tube que recompilar el PHP, lo cual me obligo a recompilar todas sus dependencias, pero como no encontre ninguna guia de como realizarlo correctamente, aqui esta como lo hice yo.

Lo primero es descargarse el codigo fuente proporcionado por la gente de MAMP, y su version compilada.

Codigo fuente: MAMP 1.7.1 (src)

Version Intel: MAMP 1.7.1 (intel)

Version PPC: MAMP 1.7.1 (ppc)

Una vez que tengamos esto, hay que instalar MAMP la version compilada en /Applications y asi ya tenemos toda la estructura correcta lista para solo recompilar lo necesario.

Ahora descomprimimos el codigo fuente y vamos compilando las diferentes librerias:

CURL

tar zxvf curl-7.16.2.tar.gz
cd curl-7.16.2
./configure --prefix=/Applications/MAMP/Library
make
make install

Freetype

Read more... (255 words, estimated 1:01 mins reading time)