I was going through ubuntu server edition, where I found that ubuntu comes with a utility called tasksel. That was not installed on my server, so went ahead and did apt-get install for it, and that resolved the issue of not having it.
I did select mail server from it’s checkbox, and it installed successfully after some queries. Well, I’m saying successfully because it didn’t gave me any error. I could see some more process running while I do ps -ef after installation has completed.
But then what next, I was pathless again. I did some more googling over it, and I found http://jonsview.com/2009/03/26/how-to-setup-email-services-on-ubuntu-using-postfix-tlssasl-and-dovecot. I completed what he said but ehlo localhost was not having two lines that he said but below
1: ehlo localhost
2: 250-server Hello localhost.localdomain [127.0.0.1], pleased to meet you
3: 250-ENHANCEDSTATUSCODES
4: 250-PIPELINING
5: 250-EXPN
6: 250-VERB
7: 250-8BITMIME
8: 250-SIZE
9: 250-DSN
10: 250-ETRN
11: 250-AUTH DIGEST-MD5 CRAM-MD5
12: 250-DELIVERBY
13: 250 HELP
Now, what? Pathless again.
I learn mail command and tried it. It was giving warning as postdrop: warning: unable to look up public/pickup: No such file or directory quick googling lead me to http://ubuntuforums.org/showthread.php?t=666018 which told me that I need to fire command
1: sudo mkfifo /var/spool/postfix/public/pickup
2: sudo /etc/init.d/postfix restart
after which warnings disappeared, but mail didn’t reached to hotmail account.
Update-1:
Wow, I killed sendmail process, restarted postfix and I could see the entries that above URL was saying. And also received the emails in hotmail account, in junk as I was expecting it to be.
I was also seeing some process that was indicating my hotmail account in its description. I didn’t understand it so I restarted the server, but will try sending some more emails and update.