roberto puzzanghera's blog

Setting up Tex on Mediawiki (Slackware)

Texvc allows to insert Tex formulas into your page dinamically creating PNG images for you.

This note tries to remaind the required packages and the main steps to follow to have Tex working inside a MediaWiki and a Slackware OS. At the end I will present some troubleshooting.

This howto was tested on Slackware versions 12.0 and 13.37.

Testing ESMTP-SIZE patch for qmail

The patch allows the qmail-smtpd to reject the message if it's too big according to its accepted databytes before it has been received.

Linux world map

If you are a Linux lover, you must take a look at this :P Click on the picture to be directed to the page of the outhor, where you can find an high resolution version of the image.

Linux world map

More info at: http://www.dedoimedo.com/computers/linux-world-map.html

SEO friendly URLs with apache mod_rewrite

I assume that the reader is familiar with the "SEO friendly URLs" concept. If not you can start reading these:

At the cost of beating my own drum, I will consider a real case: http://wildzone.it. It is an image gallery where the contents are organized in a structure like this:

LANGUAGE -> CATEGORY -> GALLERY -> IMAGE

So the smartest way to write the URLs would be: http://wildzone.it/en/italy-4/seaside-of-sardinia-19/orosei-117f.html (external URL). The internal URL, actually managed by the cms and more concise, is: http://wildzone.it?l=en&cat=4&gal=19&id=117. As you can see, the external URL is SEO and user friendly. It embeds the id number of the language/category/gallery/photo. In addition, reading the URL gives the user an understanding of the site's topic and organization.

Setting up rblsmtpd

NB: you can skip this page if you decided to use qmail-dnsbl instead


 

A Realtime Blackhole List (RBL) is a list of addresses that an RBL list supplier believes are a source of Spam.
rblsmtpd blocks mail from RBL-listed sites. It works with any SMTP server that can run under tcpserver.

qmail-smtpd's run script is already set to run rblsmtpd before qmail-smtpd. The following lines are related to rblsmtpd (others are omitted):

# This enables greetdelay anti-spam functionality on rblsmtpd
export GREETDELAY=15

# This disables rblsmtpd reject
#export RBLSMTPD=""

exec /usr/local/bin/softlimit -m "$SOFTLIMIT" \
    /usr/local/bin/tcpserver -v -H -R -l 0 \
    -x /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \
    -u "$QMAILDUID" -g "$NOFILESGID" 0 25 \
    /usr/local/bin/rblsmtpd -W \
        -b -r zen.spamhaus.org \
        -b -r bl.spamcop.org \
    /var/qmail/bin/qmail-smtpd 2>&1

Configuring qmail

Defining alias and control files

echo 3 > /var/qmail/control/spfbehavior
echo "| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox" > /var/qmail/control/defaultdelivery
echo 20 > /var/qmail/control/concurrencyincoming
echo postmaster@yourdomain.net > /var/qmail/control/bouncefrom

qmail-taps-extended

The qmail-taps-extended patch by Inter7 (extension by Michai Secasiu) provides the ability to save each email which flows through the system. You could decide to log only the messages which have the From or To address set to a local account.

You just have to create a new control file /var/qmail/control/taps which contains a regex style list of addresses to tap and the email address of where you want the copy sent to.

Examples:

Realtime Blackhole List (RBL) - qmail-dnsbl

qmailadmin

qmailAdmin is a free software package that provides a web interface for managing a qmail system with virtual domains. It provides admin for adding/deleting users, Aliases, Forwards, Mailing lists and Autoresponders.

Pages