Search This Blog

Tuesday, January 30, 2007

SPF record

What is SPF record? It's a nice feature that helps to fight mail spoofing.
By adding TXT field to your domain DNS let's say "v=spf1 mx -all" you can explain to other email systems that only authorised MX hosts can send email for this domain. If you are not sure you can start with SOFTFAIL "v=spf1 mx ~all"

Read more http://www.microsoft.com/mscorp/safety/technologies/senderid/default.mspx

Client proxy settings in Cisco ASA

New firmware 7.2(2) for Cisco ASA allows to set Internet proxy for VPN clients. Very useful feature!

Thursday, January 25, 2007

Checkpoint authentication with Microsoft Radius (IAS)

For some reasons Checkpoint VPN (R60) does not send NAS-Port-Type in authentication request. Microsoft IAS wizard by default creates policy that expects that NAS-Port-Type = Virtual. Remove this field from IAS policy and add other like NAS-IP-Address etc, to identify the VPN component

Cisco ASA bug

If your Cisco ASA WebVPN disconnects with error "Idle timeout" after few seconds then there is a solution for you: the bug has been fixed in firmware 7.2(2) - available since November 2006 from Cisco. It is quite nasty bug, because it appears only after 40+ days uptime of ASA.
Bug Id CSCse29700: http://www.cisco.com/en/US/products/ps6120/prod_release_note09186a0080780553.html

How to show SCL rating (Junk Mail decision) of the message in Microsoft Outlook

The following is an Outlook configuration file provided by Paul Bowden that will allow you to configure Outlook to expose the SCL property. Copy the SCL.CFG text and save it as SCL.CFG (in the same location as the .ICO files, usually program files\...\office 11\forms\language ID), then follow the instructions below to install it.

SCL.CFG:


;**********The CFG file**********
[Description]
MessageClass=IPM.Note
CLSID={00020D31-0000-0000-C000-000000000046}
DisplayName=SCL Extension Form
Category=Standard
Subcategory=Form
Comment=This forms allows the SCL to be viewed as a column
LargeIcon=IPML.ico
SmallIcon=IPMS.ico
Version=1.0
Locale=enu
Hidden=1
Owner=Microsoft Corporation
Contact=Your Name
[Platforms]
Platform1=Win16
Platform2=NTx86
Platform9=Win95
[Platform.Win16]
CPU=ix86
OSVersion=Win3.1
[Platform.NTx86]
CPU=ix86
OSVersion=WinNT3.5
[Platform.Win95]
CPU=ix86
OSVersion=Win95
[Properties]
Property01=SCL
[Property.SCL]
Type=3
NmidInteger=0x4076
DisplayName=SCL
[Verbs]
Verb1=1
[Verb.1]
DisplayName=&Open
Code=0
Flags=0
Attribs=2
[Extensions]
Extensions1=1
[Extension.1]
Type=30
NmidPropset={00020D0C-0000-0000-C000-000000000046}
NmidInteger=1
Value=1000000000000000
;**********END CFG

1. Go into Tools Options Other Advanced Options Custom Forms Manage Forms
2. Hit the Install button, and choose SCL.CFG …install into your Personal Forms Library
3. Hit OK several times to return to the main Outlook screen
4. Right-click on the Column headings in your Inbox (other any other folder) and choose "Field Chooser"
5. Pull-down the scroll-bar and choose "Forms…"
6. Set focus to your Personal Forms, choose the SCL Extension Form, then click Add
7. Drag and drop the SCL property into your column headings …and voila!

- James Webster

Published Wednesday, May 26, 2004

from: http://msexchangeteam.com/archive/2004/05/26/142607.aspx

Thursday, January 18, 2007

EICAR

I hope you know that you can test your famous antivirus by using test virus signature. Read on http://www.eicar.org/anti_virus_test_file.htm

Troubleshoot slow login and profiles in Windows XP

To create a detailed log file for user profiles:
• Start regedit and locate the following path: HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon
• Create a new value called UserEnvDebugLevel as a REG_DWORD, and set the value to 30002 in hexadecimal format.

Read on http://www.microsoft.com/technet/community/en-us/management/manage_faq.mspx

4GB RAM in Windows 2003 and /PAE switch

I was surprised to see 3.5GB instead of installed 4GB in the "My Computer" properties. Where the memory gets lost?

Hopefully, by adding option /PAE into boot.ini I could increase the reported RAM size to 3.93 GB.

Read on at http://support.microsoft.com/kb/283037

Microsoft Exchange

Cool blog related to Microsoft Exchange http://mostlyexchange.blogspot.com/

Friday, January 5, 2007

HP racks

Warning: HP racks have standard keys, it means that anybody who has HP
rack can open any other HP rack. Nice security feature from HP!

Thursday, January 4, 2007

SMTP to SMS gateway

# (c) Daniyar, 2007
# mySMTP2SMS gateway prototype
# it uses GSMLIB to send SMS via GSM modem
# install it as the service
# instsrv mySMTP2SMS "C:\Program Files\gsmlib\srvany.exe"
# then add registry keys as explained in the srvany.wri
# usage:
# blat -serverSMTP 192.168.1.48 -port 8025 -f me@gmail.com -to
0796574016 -body "this is a test sms"


use Win32::EventLog::Carp;
use Net::SMTP::Server;
use Net::SMTP::Server::Client;
use Net::SMTP::Server::Relay;

print "mysmtp2sms:start...";

# create a server on IP servers external address
$server = new Net::SMTP::Server('192.168.1.48', 8025)
croak("mysmtp2sms: Unable to create server: $!\n"); # write to event
log

while($conn = $server->accept()) {

my $client = new Net::SMTP::Server::Client($conn)
croak("mysmtp2sms: Unable to handle client connection: $!\n");

# Process the client. This command will block until
# the connecting client completes the SMTP transaction.
$client->process next;

@to=$client->{TO};

$strTo=$to[0][0]; # get only 1 recepient, we do not do a lot of
check here, but you can certainly do some, suc as strip domain name,
etc.
$strTo=~ s/[<>]//g; # remove <> symbols globally
#print "$strTo\n";
#print $client->{MSG};
#print "\n";
@msg = split(/\n/, $client->{MSG}); # split message to lines in
order to cut the header
$l=scalar(@msg); # length
#print "l=$l\n";
$i=0;
$c= ord($msg[$i]);
while (($c!=13) && ($i<$l)) # look for the first empty line that
must be begining of the message body
{$c= ord($msg[++$i]);}
#print "i=$i\n";

$strMsg= join("",@msg[$i+1..$l]); # make a string from message body
without header
$strMsg=~ s/\n//g; # strip new line symbols

#print "$strMsg\n";

# call gsmlib

@arg= ("c:\\program
files\\gsmlib\\gsmsendsms.exe",'-d','COM3:','-b','115200',$strTo,
$strMsg);

system(@arg) == 0
or carp "mysmtp: system @args failed: $?"

}

print "mysmtp2sms:quit...";