user-avatar
Today is Thursday
November 28, 2024

June 9, 2009

story of horseman and life

by viggy — Categories: Uncategorized — Tags: , Leave a comment

Long time ago, there was an Emperor who told his horseman that if he could ride on his horse and cover as much land area as he likes, then the Emperor would give him the area of land he has covered. Sure enough, the horseman quickly jumped onto his horse and rode as fast as possible to cover as much land area as he could. He kept on riding and riding, whipping the horse to go as fast as possible. When he was hungry, thirsty or tired, he did not stop because he wanted to cover as much area as possible. Came to a point when he had covered a substantial area and he was exhausted and was dying. Then he asked himself, “Why did I push myself so hard to cover so much land area? Now I am dying and I only need a very small area to bury myself.” The above story is similar with the journey of our Life. We push very hard everyday to make more money, to gain power and recognition.

@courtsey http://www.blogger.com/profile/08088388208976304255

June 8, 2009

Comparision of IMAP and POP3

by viggy — Categories: Uncategorized — Tags: , Leave a comment

Courtsey http://saturn.med.nyu.edu/it/help/email/imap/index.html


POP3 advantages

– messages load very quickly once they’re downloaded
– messages are stored on your hard drive so they’re not subject to server storage limits and quotas
– widely supported by ISPs and email providers
– all email programs support it

POP3 disadvantages

– messages are stored on your hard drive so they’re not accessible from other computers
– sent mail and drafts are not accessible from other computers either
– messages are eventually removed from the server
– messages are stored in files that are not compatible between different programs
– it’s usually difficult to migrate from one program to another, sometimes impossible
– it’s cumbersome to copy your email to another computer (office, home, school, laptop, etc.)
– users normally don’t have backups of their email

IMAP advantages

– messages are stored on the server are accessible from any computer and webmail anywhere in the world
– IMAP mail folders remain synchronized with IMP (webmail)
– sent messages and drafts are also stored on the server
– server-side spam filtering is easily implemented with IMAP
– IMAP mail is backed up nightly on the server and can be restored
– ease of migration from a program to a program and from a computer to another computer/location
– ease of setting up additional computers to check your email, no need to copy anything fro one computer to another

IMAP disadvantages

– messages load slower, in particular the first time they’re read
– sensitive to size and requires periodic archival of email messages
– subject to storage quotas (not the case with Saturn, however)
– very few ISPs and email providers offer IMAP as it is considered a high end option and it’s complex for them to support
– not all email programs support it properly

June 8, 2009

The qmail newbie’s guide to relaying

by viggy — Categories: debian, linux, tech — Tags: , Leave a comment
  • Courtsey to Chris Johnson

  • Answer to ::

    ‘Sorry, that domain isn’t in my list of allowed rcpthosts’

    What exactly is relaying, anyway?

    You’ve set up your qmail server. It’s hosting a few domains (i.e. they’re listed in your locals file or your virtualdomains file). You’ve set things up so that qmail-smtpd can take connections on port 25 to receive mail from other hosts.

    Another host on the Internet connects to your server on port 25. This might be another mail server running qmail, sendmail, or some other mail transfer agent, or it might be an end user, who wants to send mail from his desktop mail client. The SMTP conversation starts off with the remote host identifying itself:

        HELO somehost.somewhere.net

    Your server responds:

        250 mail.yourdomain.net

    The remote host sends the “From” part of the envelope:

        MAIL FROM:

    Your host responds with:

        250 ok

    The remote host now sends one or more RCPT TO commands, which specify the recipients of the message:

        RCPT TO:

    Just a minute! elsewhere.com is not one of the domains that your server hosts. What does your server do? It can agree to accept the message and attempt to deliver it:

        250 ok

    Or it can reject it:

        553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

    In the first case, your server is acting as a relay: it’s accepting and agreeing to try to deliver a message that’s not destined for a domain that your server hosts. In the second case, it’s refusing to act as a relay.

    qmail’s rcpthosts file, which gets its name from the RCPT TO command, determines whether the recipient will be accepted: it will be accepted if and only if the domain of the address given in the RCPT TO command is listed in rcpthosts. (I’ll talk about exceptions to this rule later on.) If the rcpthosts file does not exist, then any recipient will be accepted.

    An SMTP server is an “open relay” if it agrees to relay mail no matter who’s sending it–if another host connects to port 25 with some mail, an open relay will accept and try to deliver it no matter what its destination is and no matter who is sending it. A qmail server without a rcpthosts file will act as an open relay.

    So why shouldn’t I have an open relay? My customers need to send mail to other domains. And why would anyone but my customers want to use my server as a relay, anyway?

    This was a safe attitude several years ago; people generally used the relay provided by their ISP, employer, or university.

    Then came the spammers, the mass-mailers of unsolicited commercial e-mail. Rather than use their own bandwidth and server resources, they seek open relays that will accept a single message with, say, 100,000 recipients, and distribute it for them. This consumes the bandwidth and server resources of an unwitting third party, and the administrators of the relaying server will likely be flooded with complaints from the spam’s recipients. The relaying server may even find itself blacklisted, so that other hosts on the Internet will refuse to receive mail from it (see http://www.ordb.org, for example). Leaving your mail relay open these days is considered to be irresponsible.

    I’m convinced–I don’t want to have an open relay. How do I fix it?

    Simply list in your rcpthosts file all the domains that your server is hosting (and for which it’s acting as secondary mail exchanger, if any). Now you’re safe.

    But now my own customers get the message “Sorry, that domain isn’t in my list of allowed rcpthosts.” I’d like for my own customers to be able to use my server as a relay, but I can’t possibly list every domain in my rcpthosts file to which they might want to send mail.

    Nor should you try to! Fortunately, there’s a way to get qmail-smtpd selectively to ignore the rcpthosts file. If the variable RELAYCLIENT is set in qmail-smtpd’s environment, rcpthosts will be ignored and relaying will be allowed. What you need is a way to set RELAYCLIENT for your customers, but not for anyone else. (I’ll refer to your users as “customers” here; substitute “employees,” “students at my university,” or whatever is appropriate in your case.)

    First, you need a way to identify them. There’s no sort of user name/password authentication in the SMTP protocol, so how do you identify whether a particular SMTP connection is from one of your customers? The surest way to distinguish a customer of yours from the rest of the world is by the fact that he’s connecting to your server from a host on your network, i.e. a host with an IP address that’s in your address space.

    Once you know he’s connecting from one of your IP addresses, you need a way to set RELAYCLIENT so that he can relay. It’s pretty easy to set up qmail to do this. Read about selective relaying with tcpserver and qmail-smtpd to find out how.

    Most of my customers aren’t on my network–they use various ISPs. Can’t I allow relaying if the mail is coming from one of my domains?

    The way most people define “coming from one of my domains” is “has one of my domains in the sender address.” The problem with this is that forging the sender address on a piece of mail is trivial, and you’d have to take the word of the sender that his address is what he says it is. There’s clearly no security with this method.

    Then how are they supposed to relay their mail?

    The best thing for them to do is to use the SMTP servers provided by their ISPs. There’s (usually) no reason that they should have to use your server to relay their mail; any server that’ll agree to relay their mail will work, and ISPs’ servers are there to relay their customers’ mail.

    Unfortunately, I’ve heard reports of a very small number of ISPs that require not only that the sending host be connected to the ISP’s network, but also that the sender use the address provided by his ISP as his envelope sender address. I’ve never seen a non-Unix mail client that allows one to specify an envelope sender address that’s different from the address that appears in the “From” header, so if your customer wants to relay mail through his ISP’s SMTP server (and he has one of these envelope-checking ISPs) he won’t be able to show in his “From” header the address that you’ve provided him–all his mail will have to appear to come from his ISP address.

    So if my customer has one of these idiot ISPs and wants his mail to show an address with my domain, what is he to do?

    There are some partial solutions to this problem; I don’t think any of them is ideal. Probably the best is “SMTP-after-POP”: you allow a particular IP address to relay through your server for a short period of time after a host at that address authenticates via POP. There are various implementations of SMTP-after-POP; one which doesn’t require any patching is Bruce Guenter’s relay-ctrl. The only problem with this approach is that at least some popular Windows mail clients are hard-wired to send any queued mail before checking mail. Your users will have to get into the habit of checking their mail before putting anything in their outboxes.

    Another possible solution that people have recommended is running a separate instance of qmail-smtpd on a different IP address and a non-standard port, and telling your users to configure their mail clients to use it for their outgoing mail. One problem with this is that some mail clients don’t allow you to set a non-standard SMTP port. Another problem is that it offers no real security, only “security through obscurity.” You can make it somewhat safer, however, with tarpitting. This will help prevent it from being abused if it is discovered.

    There are patches to qmail-smtpd that allow it to use SMTP AUTH, an extension to SMTP that implements user/password authentication for relaying. If your clients support SMTP AUTH, this is an excellent way to allow relaying to selected users who are not on your network. See the qmail web site for more information. <!—

    I think I’ve got everything set up correctly. How can I test my server to make sure it’s not an open relay?

    Try the relay tester at http://www.fabel.dk/relay/test/. Unlike many relay testers, this one requires that its probe message actually be relayed back to it in order for it to determine that you’re an open relay. Other testers may flag you as an open relay if you simply accept a probe, whether or not you ultimately relay it.

    Questions? Comments? I’m glad to hear them.

    —>

    Chris Johnson
    dcj-qmaildoc@palomine.net

    April 22, 2009

    dimesnions of life, luck in particular

    by viggy — Categories: Uncategorized — Tags: , , , Leave a comment

    A point has no dimensions. A line has a single dimension. A square has 2 dimensions. A plane has three dimensions. More the dimensions, more the complexity of that entity. Life is such a complex entity. Imagine its number of dimensions. It might be countless but somehow the way in which nature runs, it makes me feel that it is not infinity. May be it is an enity with variable dimensions. Interesting. With life having so many features by itself, i am sure, it can be divided into smaller parts which have less dimensions and hence less complex. For example, How much a child is gonna weigh after about 5 years from now, can be decided by its food habits, daily habits and many more parameters. Again we might end up with having lots of parameters to play with but it is definitely less then the number of parameters on which life is dependent as a whole. Infact the parameters of life themselves are entities which have thier own parameters, which again are entities which have thier own parameters and so on. My present intentions are to concentrate on parameters that luck depend on. I have found 2 importent parameters. One is hard work. This one i got it from one of my favorite quote-harder u try, luckier u get. Second parameter is a more vague parameter. Or u can call it as an entity by itself. It is the fight between ur brain and ur conscience. U can lie to everybody in this world, sometimes even to urself. But u will realize it someday. What u do after that realization is the parameter that i am considering. will elaborate on it some other day. let me see if i can find more parameters to find the equations of luck.

    April 20, 2009

    the lost history of my college

    by viggy — Categories: Uncategorized — Tags: , , Leave a comment

    http://naxalrevolution.blogspot.com/2006/07/life-and-struggle-in-regional.html Some how i cant believe that it is the history of my college.

    March 10, 2009

    a good day or a bad day

    by viggy — Categories: Uncategorized — Tags: , , Leave a comment

    How wonderful it will be if we come to know how our day is going to be. Whether it will be a very successful day or a very irritating day. Well i think i have one small technique by which u can predict how your day is going to be. unfortunately i cant share it with anybody. However it is still in testing stage. will let u know whether it is true or not. i even think that technique extended can give you an idea of your month is going to be also. let me see. :)

    February 16, 2009

    story of the road, white line and bus tyre.

    by viggy — Categories: Uncategorized — Tags: , , 1 Comment

    right from my childhood, i used to hear how different people used to disconver great facts just by a simple incident in natre that they observed during their daily life. For example, Newton discovered gravity just because an apple fell on his head. Thats why i always used to try to observe simple things while i used travel or when i was free and sitting idle, imagining that i would also discover something big. Yesterday when we were travelling by bus to Howrah, i was trying to observe the white line on the edge of the road which followed the road indefinitely. Even though, i always wanted to make a great scientifc discovery but what i observed was a solution to one of my personal problem. I have devised a story to explain my observation.
    the 3 characters in my story are, the road, the white line and the bus tyre. Now since the bus tyre is regular on the road, it is a good friend of the road and constantly keeps in touch with it. Also since the white line is on the road also, it also has a good relationship with the road.

    Once when the bus tyre was travelling on the road, it observes that wherever it goes on the road, the white line reaces there before it. The bus tyre increases its speed and goes very fast but it still finds that white line has also increases its speed. And how much ever fast it tries to travel, the speed of white line increases accordingly. Getting very frustrated, the bus tyre tries to remove white line from the road. It goes to the side of road and tries to cover the white line with dust and it succeeds to some extent. quite happy with this effort the bus tyre continues its journey but it gets shocked on seeing the white line again racing it. It gets so frustrated that it stops over the white line and starts rotating so fast by applying break that it makes a hole in the road and white line gets rubbed off. In this process, the tyre also is quite injured as it had to feel the pressure of rotating so fast. But it is happy with the result as it had managed to rub off the white line. So it again continues its journey. But it again is shocked as the white line was still racing it away. Frustrated, the bus tyre accepts its defeat.

    After travelling for few more kilometers, the tyre observes that the road ahead was not good. It had many potholes as there was some construction work going on nearby. So the bus tyre decides to take a bypass route which would lead to the same road ahead by a different route. So it follows that route and it sees that there is no white line on this road. It feels very happy but since this road is not that same road, it is not very comfortable with this. However after some time, it again joins the road in which it was travelling earlier and feels very comfortable. But it observes that the white line is still racing it.

    That is when it realized what a fool it was. It always envied the realtionship of the white line and the road as the white line always was there with the road but it couldnt be. The tyre realized the result of his earlier activities. In order to cover the white line, it had put dust over the road making the road look dirty. In order to rub off the white line it had created a hole on the road hurting not only itself but also the road. Also when the road was not good, it had easily changed its route forgetting its relaionship with the road but the white line had not left the road. the tyre felt very guilty that day.

    February 13, 2009

    meaning of “finger hug”— this meaning is approved by international agencies.

    by viggy — Categories: Uncategorized — Tags: Leave a comment

    tightly holding the finger by ur hand so that the person feels ver warm and comforted

    February 4, 2009

    shani dev – the planet or god responsible for bad luck

    by viggy — Categories: Uncategorized — Tags: Leave a comment

    I was told this time by my aunty that my bad time thanks to Shani Dev will start in around 6 months and it will be there for around 7 years. This made me scary at start but then i started thinking about it. I came to following conclusion.
    If my bad time should start, that should be because I had done something wrong in the past and thats why i will suffer for it. I am not talking about last birth’s sins but things that i didnt do in this birth which i should have done. Like the way i wasted my engineering life without gaining any knowledge. I am sure, due to that reason i will suffer in future. However this also made me think that if my next r going to be very bad for me, then the time after that will be very good for me. Hence I came to the conclusion that what i will be doing during my bad time is actually right and that is what will bring good time for me.

    P.S. writing blog in a haste, so the blog might not be very good.

    January 7, 2009

    Back to life….Prabhuji

    by viggy — Categories: Uncategorized — Tags: Leave a comment

    one month ago, i had no clue as to what i was doing or what i am supposed to do. my life had just come to a standstill with no work to do at all. spent most of the time watching movies and series. But fifteen days with Nettech has changed everything completely. From a back bencher who tried to hide his face from professors so that he could sleep nicely during class, i became a guy who always wanted to get noticed in class by his questions and by his answers and sometimes by his jokes. From a person who used to take photocopies of notes from toppers of class during exams, i became a guy who maintained notes of every single point mentioned in class and my notes were referred to before the tests by others even though my handwriting is very bad. I dont know why i changed. It might be because for the first time in my engineering life, professors called me by name in class or might be because the subject was so interesting that i couldnt just ignore it or might be because since i had already very good knowledge in Linux, i had an advantage over all other classmates and i just wanted to continue. Whatever might be the reason, i am surely happy that i have changed. I just hope that i am able to make these changes permanent and not turn back into my older version now that i am back in college.