Saturday, August 9, 2008

SMTP Auth

The perfect steps to configure SMTP auth in sendmail as well for Postfix! The instrctions are specifically for RHEL-4 systems, and should have installed sendmail/postfix, and saslauthd packages.

Sendmail
Enter or uncomment following in /etc/mail/sendmail.mc file.
TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

define(`confCACERT_PATH',`/
etc/pki/tls/certs')
define(`confCACERT',`/etc/pki/
tls/certs/ca- bundle.crt')
define(`confSERVER_CERT',`/
etc/pki/tls/esquarecerts/servercert.pem')
define(`confSERVER_KEY',`/etc/
pki/tls/esquarecerts/serverkey.pem')

FEATURE(authinfo)dnl

Save the file. And run following commands to generate the certificates.
cd /etc/pki/tls/certs/
make sendmail.pem
Provide necessary information, and that completes the cert generation.
If you want the authentication using pam modify following line in /etc/sysconfig/saslauthd and in /etc/init.d/saslauthd
MECH=shadow
Change it to....
MECH=pam
Save the files and run:

cd /etc/mail
make
/etc/init.d/sendmail restart
That should be OK to start sendmail with SMTP Auth. Following are Postfix instructions.

Postfix

Following RPMs must be installed in order to configure SMTP auth with Postfix. You can check with rpm command:

rpm -qa |grep cyrus

cyrus-sasl
cyrus-sasl-devel
cyrus-sasl-md5
cyrus-sasl-plain


Add/modify following lines in /etc/postfix/main.cf to look like following:

mynetworks = 127.0.0.0/8

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname

smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains


And following lines in master.cf:
smtp inet n - n - - smtpd
to..
smtp inet n - n - - smtpd -v
reload postfix service
/etc/init.d/postfix reload
Thats done! You should be able to use SMTP auth with your clients now.

------------------------------------------------------------------------------------------------------------------

Friday, August 8, 2008

gOS

gOS (Good OS), when I heard it first time, it sounded like Google OS ;-) But I was wrong, the OS is based on Ubuntu Fiesty Fawn and comes with all the default applications.

I tried to install it on my VMWare fusion and it worked nicely on it. It was a good experience.
Here some details of installation.

Download the ISO from http://www.thinkgos.com/downloads
Created a virtual machine in VMware fusion with 512 MB RAM and 5 gig of hard drive and booted from the downloded ISO image. Here was first glance.



Its good to discover an OS before installing it. Booted nicely within a very short time and this was the first look.



You can simply double click on install icon to start the installation. With simple settings about installation, it starts the process.



And with a restart...



I am all set to go!



One thing makes it different that other OS is, it got all the online applications built in, along with default applications available Ubuntu Fiest Fawn. Online applications placed in a MAC like doc (Avant Window Navigator) and opens in Firefox (A powerful browser). With some research, I can add more applications to the doc such as Pidgin.

Here is a list of online applications:
Myspace: Invite, Group, Forum, Film, Favoriates, Events, Comedy etc.
News: Vally Wag, TMZ, The Superficial, PopSuger, Pink is the New Blog, Perez Hilton, My Space News, MTA news, Access Hollywood.
Photos: Splash Up, Picnik, PhotoBucket, Fotoflexer, Flickr, Flauntr.
Video: Youtube, Vimeo, Veoh, Revver, MySpaceTV, Metacafe, Google Video, Dailymotion.
Music: Yahoo! Music, Pandora, Myspace Music Video, Myspace Music, LastFM, Jango, Imeem, Amazon MP3.
TV: NBC, Hulu TV, Hulu Movies, Fancast, CurrentTV, CBS.
Tools: Skype, Meebo, Google Docs, Google Calendar, Gmail, Firefox, Buzzworld, Box.net.
Fun: gOS Universe, Orisinal Games, My Space Layout, Ask Dev.

It gives a beautiful view to work in, and all compiz fusion effects. However, I was not able to use compiz effects in Vmware fusion, even if I provide a virtual graphics card :-( Also by installation Google gears, I can use most of google applications offline, it really increases its usability.

At last, a good OS to explore new possibilities in open source world! (I am still exploring it and will keep updated this document).

------------------------------------------------------------------------------------------------------------------