电子邮件匿名化类似Craigslist在C# [英] Email Anonymization Similar to Craigslist in C#

查看:173
本文介绍了电子邮件匿名化类似Craigslist在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个网站,我想通过匿名他们的电子邮件地址保护买家。类似于craigslist的系统,当卖家需要联系买家时,他们应该能够发送电子邮件到匿名地址,如1425415125 @ mysite.com,然后将路由到用户的电子邮件地址。



我现在的计划是:


  1. 设置一个桶 - 所有)收件箱

  2. 为每个买方生成一个随机密钥,这些密码将是电子邮件地址的用户特定('1425415125')部分

  3. 监视桶收件箱并解析出该用户特定的部分。一旦我知道用户,电子邮件可以转发到正确的地址

我的问题如下:


  1. 您可以看到上述解决方案的任何问题

  2. 现有问题是否有任何开源解决方案

  3. 开发这样的系统时,应该注意什么?

提前感谢



JP

解决方案

我做了一些相关的事情,虽然不一样。我设置一个捕获我现有的pop3服务器上的所有收件箱(你可能已经有一个我猜)。然后,我使用 OpenPop.NET 读取计时器上的所有新消息(例如每30秒钟)。在我的情况下,我停止处理messagse,但是很容易产生一个新的邮件到适当的地址,并复制身体,然后在您的SMTP服务器上发送新的消息。



我看到你的设置有一个问题,也许这只是一个误会,就是当你保护用户的原始电子邮件地址时,他们将继续可以到达1425415125@mysite.com永远。如果我理解craigslist的工作方式,每个发布都有不同的电子邮件地址,一旦发布被删除/删除(或不久之后),电子邮件地址就会停止工作。这样做使得人们不能仅仅在电子邮件地址上发现错误。这个问题的解决方案很简单,只是使电子邮件地址与发布ID或其他id相对应,而不是数据库中的用户ID。查找将会很快,但每次都会有一个新的电子邮件地址。


I am developing a site for which I would like to protect buyers by anonymizing their email addresses.Similar to craigslist's system, when a seller needs to contact a buyer they should be able to send an email to an anonymized address such as 1425415125@mysite.com which will then be routed to the user's email address.

My plan right now is to:

  1. Set up a bucket (catch-all) inbox
  2. Generate a random key for each buyer which will be the user specific ('1425415125' above) section of the email address
  3. Monitor the bucket inbox and parse out this user specific section. Once I know the user, the email can be forwarded to the correct address

My questions are as follows:

  1. Can you see any issues with the above solution
  2. Are there any open source solutions to the existing problem
  3. Are there any gotchas that one should be aware of when developing such a system?

Thanks in advance

JP

解决方案

I did something related, though not quite the same. I setup a catch all inbox on my existing pop3 server (you probably have one already I'm guessing). I then used OpenPop.NET to read all new messages on a timer (say every 30 seconds). In my case I stopped at just processing the messagse but it's easy enough to generate a new message to the appropriate address and copy the body over, then send the new message out on your SMTP server.

One problem I see with your setup, and maybe it's just a misunderstanding on my part, is that while you are protecting the users original email address they will continue to be reachable at 1425415125@mysite.com basically forever. If I understand the way craigslist works, each posting has a different email address, and once the posting has been deleted/removed (or shortly after) the email address stops working. This makes it so that people can't just keep bugging you on that email address. The solution to this issue is easy, just make the email address coorespond to a post id or some other id rather then the users id in the database. The lookup will be just as quick but they will have a new email address each time.

这篇关于电子邮件匿名化类似Craigslist在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆