Tomasz Korwel
programmer, administrator, engineer – my everyday fights with reality

June 24th, 2006

Unbelievable

Posted by tomasz in Life

How many things you have to buy when you move into empty house…

I know, I know it’s normal. But it will be the first time in my life I’l move into empty house. And I’m little scared about it.

P.S. My father freaked out when I told him “we are buying a house”. And where that North Liberty is? Fortunatelly economical calculation came to him. Next chalenge – Iza’s parents. Ooo here we will have fun!

June 17th, 2006

Mission accomplished

Posted by tomasz in Life

Our offer for house is offcialy accepted. Of course it does not mean that we will become owners of that property, but we are one step closer. One small step for mankind but very big one for Korwels.

To make things funnier we are buying house from “For Sale By Owner” add. The seller was pretty desperate, so she not only agreed to work with our realtor, but even to pay him?‚Â commision!

Further informations from the front line later.

June 12th, 2006

ISPConfig with added smtp PAM authentication

Posted by tomasz in Work

I’m using ISPConfig on one of my servers. It’s not the best option availabe on the market, but it’s free, fast, and works on Debian 3.1 out of the box. Which is important as I’m the debian advocate when it comes to choosing distro for server. There are only some minor things which bugs me. One of them is the fact, that the system don’t allow users to log in to their IMAP/POP3 accounts with full email address as a login name. That way becomes more and more popular and many clients were asking “why do I have to remember additional login to check my email”. That is a good question when you keep in mind that bundled webmail client allows to log in using full address.

I solved this problem some time ago. Today while doing small system conversion I run on a problem with a need to authenticate smtp senders. The thing is that I had virtual users (in the db) which were unseen from the system level. Yes I know – there is a lot of helps on the Internet with that little small problem – non of them worked as should (read: didn’t work at all in my configuration). Solution – as always – turned to be compilation from 5-6 different pieces taken out from support lists, faq and documentation.

Below little help (mainly for me in case I need it in the future):

/etc/postfix/sasl/smtpd.conf:

pwcheck_method: saslauthd
mech_list: plain login

/etc/pam.d/smtp:

auth sufficient pam_mysql.so user=xxxx passwd=xxxx host=localhost db=database table=table usercolumn=user passwdcolumn=pass crypt=1

auth sufficient pam_unix_auth.so

account sufficient pam_mysql.so user=xxxx passwd=xxxx host=localhost db=database table=table usercolumn=user passwdcolumn=pass crypt=1

account sufficient pam_unix_acct.so

Some additional information:

  1. line 2 and 4 are backup authentication source for shadow – in case we want to auth real system users
  2. crypt can take:
    0 – plain text
    1 – crypt()’ed passwords
    2 – md5′ed passwords
June 12th, 2006

PHP quiz

Posted by tomasz in Work

What is the difference between:

function foo($x) { $x=1; }
$a = 5; foo(&$a);

and

function foo(&$x) { $x = 1; }
$a=5; foo($a);

?

June 9th, 2006

Insurance

Posted by tomasz in Life

“Welcome to the America”

That were the first words my dentist said today when I asked about my insurance. Then he started to explain and asked if I understood. And yes – I did. But probably only because I am a little bit above the average with my inteligence. Other than that I wouldn’t get a slightest idea how much will I have to pay and why.

I think people, who are creating cell phone plans are having very bad teeth. This is the only way I can imagine they culd learn how to create so complicated plans that nobody knows whats going on and sell them as a “new, improved, cheaper” plan in which you are supposed to pay less, of course if you fulfill certain criteria – e.g. you call your grandma in Alabama for exact 47 seconds every second Thursday after odd Wednesday.

Anyway, it wasn’t that bad. Second visit and I didn’t even see the tools. I think I can try to like dentist appointments in my calendar…

« Previous PageNext Page »
ZEND Certified Engineer
Listed on BlogShares

Tomasz Korwel is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com