Password protect apache directory with htaccess

Protect web folder using Apache’s .htaccess method.

Create a new htaccess file in the folder you want to be protected. Name it .htaccess Continue reading

Mail ports protocols : POP, IMAP, SMTP

Email protocols explained :

For those who want a simple explanation for e-mail ports and protocols here it is :

PORT 25 TCP : SMTP
PORT 110 TCP : POP3
Port 143 TCP : IMAP
Port 465 TCP : SMTPS (SSL)
Port 587 TCP : alternate SMTP, sometimes used if your ISP blocks port 25
Port 993 TCP : IMAPS (SSL)
Port 995 TCP : POP3S / POP3 TLS/SSL

TLS can be used on any port.
TLS it’s backwards compatible with older versions of SSL.
TLS it’s open stadandard, and it’s the succesor of SSL.

SSL has it’s own ports : 465 or 993.

Examples of use :

Gmail.com :
SMTP 465 SSL / TLS
IMAP 993 SSL / TLS

IBM x3250 server

Hardware equipment upgrade in progress !
Because the requirements have changed and i am now hosting a few domains, i decided to buy a new server.
Continue reading

Postfix time log date and local time

Looking through the logs of one of my mail servers i noticed a time difference in the mail log.
If you look at the line numbers 6,7,11 and 13 you will see a 3 hour difference.
Continue reading

Postfix error – mail for domain loops back to myself

I am hosting multiple domains on my box, using this guide on howtoforge.com, and after creating the first mailbox on one of them, yesterday i encountered an error :

mail for domain scariinterioare.net loops back to myself

Continue reading

Windows XP USB Floppy problem

One day i needed to install Windows XP on a laptop with Intel SATA AHCI enabled. I failed integrating the drivers with nLite (it’s because i used a SP3 version, instead of XP SP2 – but this is another story).
It appears that Windows XP doesn’t “support” my USB Floppy during it’s install. Yes, it sees the SATA drivers from the diskette but it fails to read them in order to transfer the file on the drive, during SETUP.
Details about my USB Floppy drive :

Freecom USB Floppy Disk
NEC Corporation
PN : 1354-508086-113-0
UF00002 rev.A

Plugging the USB floppy drive in a working system we see this in device manager :

USB\VID_0409&PID_0040\5&1ab67ec&0&1

Resolution : we need to edit a file from Windows install CD.

Edit TXTSETUP.SIF

ADD after “USB\VID_0644&PID_0000” = usbstor

this :

USB\VID_0409&PID_0040 = “usbstor”

Burn the ISO with the modified file and you’re done.

Using cacti with HP Procurve 2510-24 (J9019) switch and Ubuntu

After adding my APC UPS to cacti, i wanted to see if i can do the same for my HP 2510-24 switch (J9019).
The information i managed to collect for the HP switch is :

  • CPU Usage
  • Memory Usage
  • MAC Count
  • Port traffic

OID’s used :

CPU Usage – .1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0
MAC Count – .1.3.6.1.4.1.11.2.14.11.5.1.9.12.1.0
Memory total – .1.3.6.1.4.1.11.2.14.11.5.1.1.2.2.1.1.5.1
Memory free – .1.3.6.1.4.1.11.2.14.11.5.1.1.2.2.1.1.6.1
Memory used – .1.3.6.1.4.1.11.2.14.11.5.1.1.2.2.1.1.7.1

Host template for HP Procurve 2510-24