Archive for June, 2007

Windows Mobile 6 Exchange/VPN Woes 

As I mentioned previously, I recently purchased a SmartPhone from T-Mobile. I played around for some time trying to get my VPN to work setup, and no matter what I did, I was unable to connect to anything internal to my work’s network. Most importantly, I couldn’t connect to the inside interface of our Exchange […]

T-Mobile Dash 

So I just recently got a new phone and have upgraded to a SmartPhone with Internet access, etc., so that I can check my e-mail from anywhere. I got the T-Mobile Dash, starting playing with it and then found that I could upgrade the OS from Windows Mobile 5 to 6 for free. I went […]

Valid return code from system() 

In the past when programming in Perl, and used the system() call or function to run something on the local OS, I would use something like this: $rc = system($command); if ($rc){ print “$command returned $rc\n”;} Recently, I was reviewing someone else’s code and noticed that they did the same thing this way: system($command); if […]

Netmasks (Subnet Masks), CIDR, and Hosts 

  Netmask Inverse /CIDR Usable IP Addresses 0.0.0.0 255.255.255.255 /0 4,294,967,294 128.0.0.0 127.255.255.255 /1 2,147,483,646 192.0.0.0 63.255.255.255 /2 1,073,741,822 224.0.0.0 31.255.255.255 /3 536,870,910 240.0.0.0 15.255.255.255 /4 268,435,454 248.0.0.0 7.255.255.255 /5 134,217,726 252.0.0.0 3.255.255.255 /6 67,108,862 254.0.0.0 1.255.255.255 /7 33,554,430 255.0.0.0 0.255.255.255 /8 16,777,214 255.128.0.0 0.127.255.255 /9 8,388,606 255.192.0.0 0.63.255.255 /10 4,194,302 255.224.0.0 0.31.255.255 /11 2,097,150 […]

Postfix commands 

Check your queues (quick hack for more then mailq): for i in active deferred hold incoming; do echo -n $i:; find /var/spool/postfix/$i -type f | wc -l; done Force queue to re-process mail: postqueue -c /path/to/postfix/ -f Rebuild alias database: postalias /path/to/postfix/aliases Rebuild transport table: postmap /path/to/postfix/transport