How does this work?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • william

    How does this work?

    You guys are a great resource for learners such as I. I have seen the way
    that you go over and above in explaining even the most mudane things to
    beginners, and I think it is a great thing that you do here. I only hope
    that you can help me understand how a certain type of application works.

    I loaded an app that filters out spam (as it puts it) "before it hits your
    inbox".

    Now, how does this work? It changed my incoming and outgoing email servers
    to 127.0.0.1. So, it appears that it is acting as a local proxy server.

    But, how does it handle the email requests from my Outlook? Is there a
    certain protocol that I could look at for Outlook or Thunderbird or Eudora?
    If so, what would I be looking for?

    I am curious because the application works quite well, but is restricted to
    only a single email account (unless you pay a handsome sum) and I'd like to
    write my own freeware version that is unrestricted in the number of accounts
    that you can use.

    I figure it will be a good project to learn .Net on, and it would be nice to
    offer as freeware. Why freeware? Well, I'd like to see spammers hanging
    dead in the streets...but the government kinds frowns on that. So, next
    best thing is to smack a hot fire poker right in thier eyes by giving away a
    tool that helps people never even see thier crap in the first place.

    Any help you could give me towards learning what I need to know to write
    this freeware .Net app would be greatly appreciated. I may even release the
    source code under GPL (assuming my beginning code doesn't make me look like
    too much of an idiot).

    And please include your real name so that I can give proper credit in my
    application's credit screen for your help.

    Thanks!


  • Göran Andersson

    #2
    Re: How does this work?

    Here's something to start unwinding information:

    Mail is sent using the SMTP protocol, and recieved using the POP3
    protocol. SMTP uses port 25 and POP3 uses port 110.

    (There are of course other protocols in use, for an example if you
    connect to an MS Exchange Server, but those are the ones that is
    normally used.)

    william wrote:[color=blue]
    > You guys are a great resource for learners such as I. I have seen the way
    > that you go over and above in explaining even the most mudane things to
    > beginners, and I think it is a great thing that you do here. I only hope
    > that you can help me understand how a certain type of application works.
    >
    > I loaded an app that filters out spam (as it puts it) "before it hits your
    > inbox".
    >
    > Now, how does this work? It changed my incoming and outgoing email servers
    > to 127.0.0.1. So, it appears that it is acting as a local proxy server.
    >
    > But, how does it handle the email requests from my Outlook? Is there a
    > certain protocol that I could look at for Outlook or Thunderbird or Eudora?
    > If so, what would I be looking for?
    >
    > I am curious because the application works quite well, but is restricted to
    > only a single email account (unless you pay a handsome sum) and I'd like to
    > write my own freeware version that is unrestricted in the number of accounts
    > that you can use.
    >
    > I figure it will be a good project to learn .Net on, and it would be nice to
    > offer as freeware. Why freeware? Well, I'd like to see spammers hanging
    > dead in the streets...but the government kinds frowns on that. So, next
    > best thing is to smack a hot fire poker right in thier eyes by giving away a
    > tool that helps people never even see thier crap in the first place.
    >
    > Any help you could give me towards learning what I need to know to write
    > this freeware .Net app would be greatly appreciated. I may even release the
    > source code under GPL (assuming my beginning code doesn't make me look like
    > too much of an idiot).
    >
    > And please include your real name so that I can give proper credit in my
    > application's credit screen for your help.
    >
    > Thanks!
    >
    >[/color]

    Comment

    • Tom Spink

      #3
      Re: How does this work?

      william wrote:
      [color=blue]
      > You guys are a great resource for learners such as I. I have seen the way
      > that you go over and above in explaining even the most mudane things to
      > beginners, and I think it is a great thing that you do here. I only hope
      > that you can help me understand how a certain type of application works.
      >
      > I loaded an app that filters out spam (as it puts it) "before it hits your
      > inbox".
      >
      > Now, how does this work? It changed my incoming and outgoing email
      > servers
      > to 127.0.0.1. So, it appears that it is acting as a local proxy server.
      >
      > But, how does it handle the email requests from my Outlook? Is there a
      > certain protocol that I could look at for Outlook or Thunderbird or
      > Eudora? If so, what would I be looking for?
      >
      > I am curious because the application works quite well, but is restricted
      > to only a single email account (unless you pay a handsome sum) and I'd
      > like to write my own freeware version that is unrestricted in the number
      > of accounts that you can use.
      >
      > I figure it will be a good project to learn .Net on, and it would be nice
      > to
      > offer as freeware. Why freeware? Well, I'd like to see spammers hanging
      > dead in the streets...but the government kinds frowns on that. So, next
      > best thing is to smack a hot fire poker right in thier eyes by giving away
      > a tool that helps people never even see thier crap in the first place.
      >
      > Any help you could give me towards learning what I need to know to write
      > this freeware .Net app would be greatly appreciated. I may even release
      > the source code under GPL (assuming my beginning code doesn't make me look
      > like too much of an idiot).
      >
      > And please include your real name so that I can give proper credit in my
      > application's credit screen for your help.
      >
      > Thanks![/color]

      Hi William,

      Take a look at http://en.wikipedia.org/wiki/Smtp
      and http://en.wikipedia.org/wiki/Pop3

      SMTP is the protocol used for sending e-mail, and POP3 is a protocol for
      retrieving mail from a mail server. It looks like your application sits as
      a man-in-the-middle between your client and your mail-server, i.e. when
      Outlook wants to connect to the mail server, it actually connects to your
      local computer, which simply forwards all the requests to the mail
      server... which means you're totally right, it's acting as a local proxy
      server.

      Is there anything else specific you'd like to know?

      Hope this helps,
      -- Tom Spink

      Comment

      • Mehdi

        #4
        Re: How does this work?

        [FU2 microsoft.publi c.dotnet.genera l]

        On Fri, 23 Jun 2006 22:36:12 -0400, william wrote:
        [color=blue]
        > I loaded an app that filters out spam (as it puts it) "before it hits your
        > inbox".
        >
        > Now, how does this work? It changed my incoming and outgoing email servers
        > to 127.0.0.1. So, it appears that it is acting as a local proxy server.
        >
        > But, how does it handle the email requests from my Outlook? Is there a
        > certain protocol that I could look at for Outlook or Thunderbird or Eudora?
        > If so, what would I be looking for?[/color]

        In addition to the other answers, you should also have a look at the IMAP4
        protocol (often used for corporate email systems). The free version of
        hotmail uses its own and not documented protocol.

        By the way, there are free anti-spam systems that can deal with multiple
        accounts. Have a look at Spam Bayes <http://spambayes.sourc eforge.net/>. It
        free, open source and works either as an outlook plugin (outlook only) or
        as a local proxy server (similar to what you've descibed, works with any
        email client). I've tried to outlook plugin and, once it's been trained,
        i've found it to be very effective.

        PS: praising the participants of this newsgroup for how great what they're
        doing is does not frees you from respecting the basic usenet posting rules.
        In particular, it is generally considered very bad manner to cross post
        accros multiple groups. In the very rare cases when your post doesn't fit
        in any group in particular, cross-posting to 2 different groups or at the
        very most 3 groups is tolerated but in this case you should set the
        Folloup-To field to one group only and specify in your post in which group
        the discussion is going to take place. Followup set to
        microsoft.publi c.dotnet.genera l.

        Comment

        • william

          #5
          Re: How does this work?


          "Mehdi" <vioccc@REMOVEM E.gmail.com> wrote in message
          news:4ef3ve4oyi gp$.1ju3x1fm55g bl$.dlg@40tude. net...[color=blue]
          > [FU2 microsoft.publi c.dotnet.genera l]
          >
          > On Fri, 23 Jun 2006 22:36:12 -0400, william wrote:
          >[color=green]
          >> I loaded an app that filters out spam (as it puts it) "before it hits
          >> your
          >> inbox".
          >>
          >> Now, how does this work? It changed my incoming and outgoing email
          >> servers
          >> to 127.0.0.1. So, it appears that it is acting as a local proxy server.
          >>
          >> But, how does it handle the email requests from my Outlook? Is there a
          >> certain protocol that I could look at for Outlook or Thunderbird or
          >> Eudora?
          >> If so, what would I be looking for?[/color]
          >
          > In addition to the other answers, you should also have a look at the IMAP4
          > protocol (often used for corporate email systems). The free version of
          > hotmail uses its own and not documented protocol.
          >
          > By the way, there are free anti-spam systems that can deal with multiple
          > accounts. Have a look at Spam Bayes <http://spambayes.sourc eforge.net/>.
          > It
          > free, open source and works either as an outlook plugin (outlook only) or
          > as a local proxy server (similar to what you've descibed, works with any
          > email client). I've tried to outlook plugin and, once it's been trained,
          > i've found it to be very effective.
          >
          > PS: praising the participants of this newsgroup for how great what they're
          > doing is does not frees you from respecting the basic usenet posting
          > rules.
          > In particular, it is generally considered very bad manner to cross post
          > accros multiple groups. In the very rare cases when your post doesn't fit
          > in any group in particular, cross-posting to 2 different groups or at the
          > very most 3 groups is tolerated but in this case you should set the
          > Folloup-To field to one group only and specify in your post in which group
          > the discussion is going to take place. Followup set to
          > microsoft.publi c.dotnet.genera l.[/color]

          I have used SpamBayes before but this other application is much more strict
          in its denial of unsolicited email and much simpler to setup for the average
          user. It uses a blacklist/whitelist for contacts that are able to send you
          email and includes a way for new emailers to request to be placed on your
          whitelist. It is supremely effective with no "training" and very little
          required for setup.

          It is very simple and very effective. Just whatthe average user
          needs...only they need it for all accounts, not just one.

          Your comments about posting have been noted.

          Thank you for your input.


          Comment

          • william

            #6
            Re: How does this work?


            "Tom Spink" <tspink@gmail.c om> wrote in message
            news:uGZ1ga2lGH A.4268@TK2MSFTN GP05.phx.gbl...[color=blue]
            > william wrote:
            >[color=green]
            >> You guys are a great resource for learners such as I. I have seen the
            >> way
            >> that you go over and above in explaining even the most mudane things to
            >> beginners, and I think it is a great thing that you do here. I only hope
            >> that you can help me understand how a certain type of application works.
            >>
            >> I loaded an app that filters out spam (as it puts it) "before it hits
            >> your
            >> inbox".
            >>
            >> Now, how does this work? It changed my incoming and outgoing email
            >> servers
            >> to 127.0.0.1. So, it appears that it is acting as a local proxy server.
            >>
            >> But, how does it handle the email requests from my Outlook? Is there a
            >> certain protocol that I could look at for Outlook or Thunderbird or
            >> Eudora? If so, what would I be looking for?
            >>
            >> I am curious because the application works quite well, but is restricted
            >> to only a single email account (unless you pay a handsome sum) and I'd
            >> like to write my own freeware version that is unrestricted in the number
            >> of accounts that you can use.
            >>
            >> I figure it will be a good project to learn .Net on, and it would be nice
            >> to
            >> offer as freeware. Why freeware? Well, I'd like to see spammers hanging
            >> dead in the streets...but the government kinds frowns on that. So, next
            >> best thing is to smack a hot fire poker right in thier eyes by giving
            >> away
            >> a tool that helps people never even see thier crap in the first place.
            >>
            >> Any help you could give me towards learning what I need to know to write
            >> this freeware .Net app would be greatly appreciated. I may even release
            >> the source code under GPL (assuming my beginning code doesn't make me
            >> look
            >> like too much of an idiot).
            >>
            >> And please include your real name so that I can give proper credit in my
            >> application's credit screen for your help.
            >>
            >> Thanks![/color]
            >
            > Hi William,
            >
            > Take a look at http://en.wikipedia.org/wiki/Smtp
            > and http://en.wikipedia.org/wiki/Pop3
            >
            > SMTP is the protocol used for sending e-mail, and POP3 is a protocol for
            > retrieving mail from a mail server. It looks like your application sits
            > as
            > a man-in-the-middle between your client and your mail-server, i.e. when
            > Outlook wants to connect to the mail server, it actually connects to your
            > local computer, which simply forwards all the requests to the mail
            > server... which means you're totally right, it's acting as a local proxy
            > server.
            >
            > Is there anything else specific you'd like to know?
            >
            > Hope this helps,
            > -- Tom Spink[/color]

            Fantastic pace to start! Thanks for the links!

            I guess I will have to go beta and feel my way along. As the protocols for
            email services like Hotmail are not published (you can;t even use Outlook to
            check free hotmail accounts anymore) they will not be included in the
            application.

            Thank you for your help. I will post here as soon as I have a beta ready
            for trials.


            Comment

            • william

              #7
              Re: How does this work?

              Thanks Göran! That's just they type of stuff I need to know.

              I will begin my project today and should have a beta ready by Monday.


              "Göran Andersson" <guffa@guffa.co m> wrote in message
              news:%23BMy$N2l GHA.856@TK2MSFT NGP03.phx.gbl.. .[color=blue]
              > Here's something to start unwinding information:
              >
              > Mail is sent using the SMTP protocol, and recieved using the POP3
              > protocol. SMTP uses port 25 and POP3 uses port 110.
              >
              > (There are of course other protocols in use, for an example if you connect
              > to an MS Exchange Server, but those are the ones that is normally used.)
              >
              > william wrote:[color=green]
              >> You guys are a great resource for learners such as I. I have seen the
              >> way that you go over and above in explaining even the most mudane things
              >> to beginners, and I think it is a great thing that you do here. I only
              >> hope that you can help me understand how a certain type of application
              >> works.
              >>
              >> I loaded an app that filters out spam (as it puts it) "before it hits
              >> your inbox".
              >>
              >> Now, how does this work? It changed my incoming and outgoing email
              >> servers to 127.0.0.1. So, it appears that it is acting as a local proxy
              >> server.
              >>
              >> But, how does it handle the email requests from my Outlook? Is there a
              >> certain protocol that I could look at for Outlook or Thunderbird or
              >> Eudora? If so, what would I be looking for?
              >>
              >> I am curious because the application works quite well, but is restricted
              >> to only a single email account (unless you pay a handsome sum) and I'd
              >> like to write my own freeware version that is unrestricted in the number
              >> of accounts that you can use.
              >>
              >> I figure it will be a good project to learn .Net on, and it would be nice
              >> to offer as freeware. Why freeware? Well, I'd like to see spammers
              >> hanging dead in the streets...but the government kinds frowns on that.
              >> So, next best thing is to smack a hot fire poker right in thier eyes by
              >> giving away a tool that helps people never even see thier crap in the
              >> first place.
              >>
              >> Any help you could give me towards learning what I need to know to write
              >> this freeware .Net app would be greatly appreciated. I may even release
              >> the source code under GPL (assuming my beginning code doesn't make me
              >> look like too much of an idiot).
              >>
              >> And please include your real name so that I can give proper credit in my
              >> application's credit screen for your help.
              >>
              >> Thanks![/color][/color]


              Comment

              • Oenone

                #8
                Re: How does this work?

                william wrote:[color=blue]
                > I loaded an app that filters out spam (as it puts it) "before it hits
                > your inbox".[/color]
                [...][color=blue]
                > I figure it will be a good project to learn .Net on, and it would be
                > nice to offer as freeware.[/color]

                Not wanting to stop you working on your project, but you do know about
                POPFile?

                Download POPFile - Automatic Email Classification for free. POPFile is an email classification tool with a Naive Bayes classifier, POP3, SMTP, NNTP proxies and IMAP filter and a web interface. It runs on most platforms and with most email clients.


                It's a spam filter that works in the way you describe, is very good, is
                free, has an excellent HTML-based user interface, and works with as many
                email accounts as you like.

                --

                (O)enone


                Comment

                • william

                  #9
                  Re: How does this work?

                  Looks like a nice freeware product, but it also needs to be "trained" like
                  SpamBayes.

                  This app does not need to be "trained" because it simply allows people in
                  your contact list to email you and adds people to your allowed list as you
                  send emails. Very simple concept and no "training" needed.

                  At this point, the project will take some time for me to figure out just how
                  they are placing themselves in between my Outlook and my email server. I
                  know that they change the POP and SMTP to point to the local IP 127.0.0.1
                  and change the outgoing SMTP port to 30, but I don't know all of the
                  specifics about whether they are simply relaying the requests from Outlook
                  or if they are doing more.


                  "Oenone" <oenone@nowhere .com> wrote in message
                  news:O3hng.1881 $SO4.199@newsfe 3-win.ntli.net...[color=blue]
                  > william wrote:[color=green]
                  >> I loaded an app that filters out spam (as it puts it) "before it hits
                  >> your inbox".[/color]
                  > [...][color=green]
                  >> I figure it will be a good project to learn .Net on, and it would be
                  >> nice to offer as freeware.[/color]
                  >
                  > Not wanting to stop you working on your project, but you do know about
                  > POPFile?
                  >
                  > http://popfile.sourceforge.net
                  >
                  > It's a spam filter that works in the way you describe, is very good, is
                  > free, has an excellent HTML-based user interface, and works with as many
                  > email accounts as you like.
                  >
                  > --
                  >
                  > (O)enone
                  >[/color]


                  Comment

                  • william

                    #10
                    Re: How does this work?

                    In addition to learnign how they do thier thing......I am considering an
                    addin for Outlook. Unfortunately, this seems to be another area that .Net
                    has complicated with no apparent reason.

                    The VSTO only works for Office 2003 (as far as I have read) and the new
                    security neasures incorporated in .Net are a pain in the ass that are not
                    only unneccessary but are also a stumbling block for other developers of
                    Microsoft add-ins.

                    Makes me wonder if Microsoft isn't making programming the system more
                    difficult on purpose with .Net - to stifle competition. Sure, the easy
                    things are easier.....but the hard (or uncommon) things are harder.

                    I may write the addin with VB6.....more straightforward and easier to
                    implement than the whole PIA/security fiasco that I am finding with VB.Net
                    2005 and Outlook.


                    "william" <william@not.co m> wrote in message
                    news:jy1ng.5962 $Ud4.5564@bigne ws1.bellsouth.n et...[color=blue]
                    > You guys are a great resource for learners such as I. I have seen the way
                    > that you go over and above in explaining even the most mudane things to
                    > beginners, and I think it is a great thing that you do here. I only hope
                    > that you can help me understand how a certain type of application works.
                    >
                    > I loaded an app that filters out spam (as it puts it) "before it hits your
                    > inbox".
                    >
                    > Now, how does this work? It changed my incoming and outgoing email
                    > servers to 127.0.0.1. So, it appears that it is acting as a local proxy
                    > server.
                    >
                    > But, how does it handle the email requests from my Outlook? Is there a
                    > certain protocol that I could look at for Outlook or Thunderbird or
                    > Eudora? If so, what would I be looking for?
                    >
                    > I am curious because the application works quite well, but is restricted
                    > to only a single email account (unless you pay a handsome sum) and I'd
                    > like to write my own freeware version that is unrestricted in the number
                    > of accounts that you can use.
                    >
                    > I figure it will be a good project to learn .Net on, and it would be nice
                    > to offer as freeware. Why freeware? Well, I'd like to see spammers
                    > hanging dead in the streets...but the government kinds frowns on that.
                    > So, next best thing is to smack a hot fire poker right in thier eyes by
                    > giving away a tool that helps people never even see thier crap in the
                    > first place.
                    >
                    > Any help you could give me towards learning what I need to know to write
                    > this freeware .Net app would be greatly appreciated. I may even release
                    > the source code under GPL (assuming my beginning code doesn't make me look
                    > like too much of an idiot).
                    >
                    > And please include your real name so that I can give proper credit in my
                    > application's credit screen for your help.
                    >
                    > Thanks!
                    >[/color]


                    Comment

                    Working...