Dedicated Server Support

Tips on Linux, FreeBSD, Windows Dedicated Server.

Monday, July 31, 2006

Postfix Mail Server

I am now studying postfix mail server. Already setup postfix on server22.hosthat.com and is working great with basic configuration. Now it only handle one domain name, that is real user (system accounts).
 
I have brought The Book of Postfix
 
 
I have read first few chapters. My plan is to make a mail server with postfix + LDAP.
 
Postfix seems easy to setup compared to Qmail. I have installed Postfix with out much reading. Qmail, i have to spend lot of time to get it working, mainly because it need several small scripts and two other supporting programs to get it working.
 
Another advantage i see over qmail is postfix is still actively developed. Qmail, you need to patch to get it working. So descided to go with postfix for my new mails server project.
 
I have added new forum for postfix on my qmail forum at
 
 

Monday, July 10, 2006

BizHat.com Home Page redesigned

Two days back, i redesigned home page of bizhat
 
New design is available at
 
 
Old design is backed up at
 
 
 

New Free Hosted phpBB forum site

I have created a new site for free hosted phpBB forums at
 
 
Just added one FQA entry, need to create some more FAQ's.

Sunday, July 09, 2006

Mail Server Setup with LDAP

Last two days i was working on new email server setup with LDAP.
 
Installed OpenLDAP on local FreeBSD server, still can't get it working with qmail or postfix.
 
I have to read a lot of documents qmail and postfix as i may switch to postfix.
 
I have some experiance with running qmail mail servers. For new email server, qmail was the inital choice, but postfix seems better option, so have downloaded and installed it few times yesterday. It works well, no path is needed like qmail. qmail need patches to work, postfix is still active developement and work with out any patch.
 
Now need to get any of these work with LDAP. With qmail-ldap, if user is added to LDAP, first email will create required folders. Postfix, not sure it will do this or manual creation is needed. If postfix also auto create user folder, then i will go with postfix.
 
Today agnel moved his web site to BizHat CMS
 
 
 

Wednesday, July 05, 2006

Builing MySQL RPM from source RPM

On my Fedora Core 3 local test Linux server, MySQL version was 3.x
 
I upgraded MySQL with bindary download from MySQL.com
 
Few days back i tried to compile a program with mysql library and got error, it seems mysql-devel package is missing, so compiled RPM for MySQl 4.1 as per
 
 
It take about 4 Hours to compile. On my FreeBSD server, it always compile from source when installing from ports, it seems FreeBSD compile is faster than rpmbuild, may be it have to do more work.

Portupgrade pkgdb.db: unexpected file type or format

After upgrading FreeBSD from v6 to 6.1, i tried to upgrade all software installed on the server with portupgrade.
 
I start getting the error
 
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!]
Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ
 
The problem is fixed by deleting the pkgdb.db file
 
 
server26# rm /var/db/pkg/pkgdb.db
 
 

Upgrading FreeBSD 6 to 6.1 on remote server

Today i upgraded FreeBSD 6 on server26.hosthat.com to FreeBSD 6.1

You can find instruction on how to do the upgrade at

http://www.daemonology.net/

After FreeBSD upgrade


server26# uname -a
FreeBSD server26.hosthat.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006
root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
server26#




server26# cd /usr/
server26# fetch
http://www.daemonology.net/freebsd-upgrade-6.0-to-6.1/upgrade-6.0-to-6.1.tgz
upgrade-6.0-to-6.1.tgz 100% of 4706 kB 864 kBps
server26# sha256 upgrade-6.0-to-6.1.tgz
SHA256 (upgrade-6.0-to-6.1.tgz) = 29075fc5711e0b20d879c6
9d12bbe5414c1c56d597c8116da7acc0d291116d2f
server26# tar -xzf upgrade-6.0-to-6.1.tgz
server26# cd upgrade
server26# ./upgrade.sh
Examining system... done.


The following components of FreeBSD seem to be installed:
kernelgeneric srcbase srcbin srccontrib srccrypto srcetc srcgames
srcgnu srcinclude srckrb5 srclibexec srclib srcrelease srcrescue
srcsbin srcsecure srcshare srcsys srctools srcubin srcusbin
worldbase worlddict worlddoc worldinfo worldmanpages worldproflibs


The following components of FreeBSD do not seem to be installed:
kernelsmp worldcatpages worldgames


Does this look reasonable (y/n)? y

Examining system (this will take a bit longer)... done.

The following files from FreeBSD 6.0 have been modified since they were
installed, but will be deleted or overwritten by new versions:
/usr/share/man/whatis


The following files from FreeBSD 6.0 have been modified since they were
installed, and will not be touched:
/etc/crontab /etc/hosts /etc/manpath.config /etc/master.passwd /etc/motd
/etc/newsyslog.conf /etc/passwd /etc/pwd.db /etc/spwd.db
/etc/ssh/sshd_config /var/db/locate.database /var/log/sendmail.st


The following files from FreeBSD 6.0 have been modified since they were
installed, and the changes in FreeBSD 6.1 will be merged into the
existing files:
/etc/group


Does this look reasonable (y/n)? y

Preparing to fetch files... done.
Fetching 4510 patches....10....20....30....40
....4250....4260....4270....4280....4290....4300
4410....4420....4430....4440....4450....4460
4510 done.
Applying patches... done.
Fetching 834 files....10....20....30....40....50....60
570....580....590....600....610....620....630....
780....790....800....810....820....830.. done.
Decompressing and verifying... done.
Attempting to automatically merge configuration files... done.


The following changes, which occurred between FreeBSD 6.0 and FreeBSD
6.1, have been merged into /etc/group:
--- merge/old/etc/group Wed Jul 5 14:06:12 2006
+++ merge/new/etc/group Wed Jul 5 14:06:14 2006
@@ -27,5 +27,6 @@
www:*:80:
nogroup:*:65533:
nobody:*:65534:
ltct-3142:*:1002:
mysql:*:88:
+audit:*:77:
Does this look reasonable (y/n)? y


Installing new kernel into /boot/GENERIC... done.
Moving /boot/kernel to /boot/kernel.old... done.
Moving /boot/GENERIC to /boot/kernel... done.
Removing schg flag from existing files... done.
Installing new non-kernel files... done.
Removing left-over files from FreeBSD 6.0... done.
To start running FreeBSD 6.1, reboot.
server26# uname -a
FreeBSD server26.hosthat.com 6.0-SECURITY FreeBSD 6.0-SECURITY #0: Tue Feb 28 22:53:43 UTC 2006
root@builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
server26#


Saturday, July 01, 2006

BizHat.com Adds New Programmer

Today (1 JULY 2006) new staff jointed in BizHat.com as programmer.
 
He is working on rebuilding classified advertisement web site of bizhat.com
 
 
Present classified site have lot of spam, the new software will have option to prevent SPAM and auto posting by bots.
 
Now BizHat.com have an Alexa Rank of 3001