Bitmessage Forum

General Discussion => General Discussion => Topic started by: deadserious on June 23, 2013, 02:11:10 AM

Title: bitmsg.cc - Dead Simple Email Gateway
Post by: deadserious on June 23, 2013, 02:11:10 AM
I have created a dead simple email gateway for Bitmessage and would love your feedback.

To use, simply send a regular email to a Bitmessage address @bitmsg.cc. 

For example:
BM-2DC13MWuuK9s6LvDEyXfD66yV9B3WsdzHm@bitmsg.cc

The owner of that Bitmessage address will receive the email in their Bitmessage client.  When the user replies in Bitmessage, the message will be sent back as an email to the original sender.

This is very beta at the moment but I welcome your testing to help it mature quickly.  Please do not depend on this right now for anything important or send anything sensitive.

There is a very simple site at http://bitmsg.cc that pretty much explains what I did here.

Feedback and bug reports are welcome.

Thanks
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: bitbutter on June 23, 2013, 03:10:46 AM
Excellent! I was hoping a service like this would show up.

Aside from it being in beta, are there security/privacy implications of using a bridge service like this that people should be aware of?
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: Olomana on June 23, 2013, 04:05:01 AM
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  BM-GtbNFGpp3DqDVZXceoFR6nJV9Ygeiben@bitmsg.cc
    SMTP error from remote mail server after RCPT TO:<BM-GtbNFGpp3DqDVZXceoFR6nJV9Ygeiben@bitmsg.cc>:
    host mail.bitmsg.cc [37.139.3.72]: 550 This email account is not valid on this domain.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: AyrA on June 23, 2013, 04:58:38 AM
Since the from address can be spoofed, how do you prevent people from signing up with random addresses?
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: r00tz on June 23, 2013, 08:51:18 AM
Quote
Since the from address can be spoofed, how do you prevent people from signing up with random addresses?
I don't understand AyrA, there is no sign up, how do you mean? It just forwards Emails to/replies from BM addresses.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: r00tz on June 23, 2013, 09:13:44 AM
Same error message as Olomana. No doubt you'll get it fixed, let us know when it's working again?
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: deadserious on June 23, 2013, 10:18:46 AM
Excellent! I was hoping a service like this would show up.

Aside from it being in beta, are there security/privacy implications of using a bridge service like this that people should be aware of?

The main privacy and security concerns are the same with any email service. Plain text, unencrypted,  nsa spying on traffic etc.

I do not log anything serverside though that isn't necessary to make the exchange. So basically all I know is that xyz@abc.com now represents a BM-164876... address. I also currently have the private key for that address on my server in an unencrypted keys.dat file. This makes them open to theft, but the exposure is somewhat minimal since if they are ever compromised all I have to do is delete it. I Addresses will automatically get new addresses when one is not found. However replies to old addresses would fail until an email from that address was again received. Working on a way to better protect this to prevent that scenario.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: deadserious on June 23, 2013, 10:20:26 AM
Since the from address can be spoofed, how do you prevent people from signing up with random addresses?

There is no sign up necessary. If you send a mail to bitmsg from a spoofed address, replies would go to that address, not the original sender.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: deadserious on June 23, 2013, 10:20:59 AM
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  BM-GtbNFGpp3DqDVZXceoFR6nJV9Ygeiben@bitmsg.cc
    SMTP error from remote mail server after RCPT TO:<BM-GtbNFGpp3DqDVZXceoFR6nJV9Ygeiben@bitmsg.cc>:
    host mail.bitmsg.cc [37.139.3.72]: 550 This email account is not valid on this domain.

Odd. Looking into it.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: deadserious on June 23, 2013, 05:29:41 PM
  BM-GtbNFGpp3DqDVZXceoFR6nJV9Ygeiben@bitmsg.cc

Simple bug effecting 35 character addresses.  Should be fixed.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: deadserious on June 23, 2013, 07:04:19 PM
Added a FAQ to the webpage

http://bitmsg.cc/
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: r00tz on June 24, 2013, 09:18:14 AM
Is that your BM-address given as example on the site? If so would like to DBM you :)

-- Addresses without BM- should perhaps also be acceptable, currently they're not

-- Now no error comes back, but almost an hour later, the Email has not arrived in BM
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: deadserious on June 24, 2013, 10:28:51 AM
Is that your BM-address given as example on the site? If so would like to DBM you :)

-- Addresses without BM- should perhaps also be acceptable, currently they're not

-- Now no error comes back, but almost an hour later, the Email has not arrived in BM

That is my address, though the one on the site is preferred for discussion on this topic.

Regarding delay, I am running into the 100% cpu issue on my Linux server and I often have to restart bitmessage to get it to go through. I have a cron job that restarts it every 4 hours so there shouldn't be a delay much longer than that.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: dokument on June 24, 2013, 02:07:51 PM
Awesome service. Added to the directory.

.dok
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: deadserious on June 24, 2013, 02:23:19 PM
-- Addresses without BM- should perhaps also be acceptable, currently they're not

Forgot to say that I use the BM- do make sure that the address is valid and not lowercased by the sending service.

-- Now no error comes back, but almost an hour later, the Email has not arrived in BM

Has it come through yet?
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: deadserious on June 24, 2013, 02:23:50 PM
Awesome service. Added to the directory.

Thanks.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: dokument on June 24, 2013, 04:58:47 PM
By the way, I suppose people can test this via one of the echo addresses (send email, get echo email back).

.dok
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: deadserious on June 24, 2013, 06:14:47 PM
By the way, I suppose people can test this via one of the echo addresses (send email, get echo email back).

I haven't tried, but I don't see why not.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: r00tz on June 26, 2013, 10:14:36 PM
Some things still need fixing:
Also many (most?) people are using BMwrapper to allow Bitmessage to be used in a powerful open source Email client Thunderbird rather than PyBitmessage. Thus it should ideally work well in Email format in that client, but it fails to display HTML as HTML -- perhaps this is something you can discuss with Arceliar who is the creator of BMWrapper, to find out where the problem lies. The test email displays thus:
Code: [Select]
Message part 1:

Message part 2:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Test
</BODY>
</HTML>
<br/><br/>--- via bitmsg.cc
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: onli on July 30, 2013, 09:30:30 AM
Is there a way to debug this service? I really like the idea (currently trying to use bitmessage as a mail-server). But I sent now two messages from an mailadress to a bm-address of mine, and they never arrived. One yesterday, one two hours ago. Simply sending a mail from a x@y.com to BM-...@bitmsg.cc should work, or did I misunderstand?
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: boondoggle on August 01, 2013, 06:42:02 AM
If there is no encryption between the email client and the bitmsg.cc server, or if the SSL certificate/authority is compromised, then anything sent or received via such gateways will be readable by XKeyscore or similar systems.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: onli on August 01, 2013, 08:21:57 AM
Thanks. That is correct.

My plan is a bit complicated maybe. I really would like to use bitmessage, but I also need email. So I wanted to use bitmessage additionally as a decentralized mailsever (something I never wanted to setup) by having pybitmessage running on my homeserver, using it via a mailclient, and for bc-comaptibility with the mailsystem forward mails to one of my bitmessage-addresses by using a simple email gatway - like this one. Which sadly fails and I don't know why :(

bitmessage.ch I saw, but it doesn't seem possible to forward mails as bitmessage to a controlled-by-me bitmessage-address.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: AyrA on August 01, 2013, 08:29:15 AM
bitmessage.ch I saw, but it doesn't seem possible to forward mails as bitmessage to a controlled-by-me bitmessage-address.
Just go into the E-mail control panel and setup forwarding to <youraddress>@bitmessage.ch and all messages are forwarded to another bitmessage address.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: onli on August 01, 2013, 09:01:18 AM
Thanks! That would be great.

However, I seem to make a mistake. After enabling the forwarding, the mail bounces back:

Quote
From: admin@bitmessage.ch

Your Message could not be sent, because the receiver is not known.
You cannot send bitmessages from your regular account (yet), but we will add this feature.
Head over to https://bitmessage.ch/setup.html for more instructions.
Thanks

I don't see a hint on the page of what I'm doing wrong. Do I have to tell your system my own bitmessage-address somehow? Maybe I didn't understand how to in parallel use an address on bitmessage.ch and also on pybitmessage locally, if that is the general idea.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: AyrA on August 01, 2013, 09:26:02 AM
The system is different from bitmsg.cc
You have to create an account first. It will generate a bitmessage address for you (I call this A). You can then configure this account to forward all messages to another address in the E-Mail settings. if it should go into the bitmessage network, you can forward messges to <BM-Addr>@bitmessage.ch (call this B)


You can then send messages to A and it will forward it into the network to B. if you enter "broadcast@bitmessage.ch" as B in the settings you have made yourself a free mailing list. Most users seem to use it this way according to the message numbers in the virtual broadcast account.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: onli on August 01, 2013, 09:46:27 AM
Thanks again.
You have to create an account first. It will generate a bitmessage address for you (I call this A). You can then configure this account to forward all messages to another address in the E-Mail settings. if it should go into the bitmessage network, you can forward messges to <BM-Addr>@bitmessage.ch (call this B)
That is exactly what I did, I think. A is an account on bitmessage.ch, registered by using a password. B is a bitmessage address generated in pybitmessage. And there is an unrelated email-address used, let's call it C.

I'm able to send a mail from C to A. I'm able to send a bitmessage from B to A, and from A to B. But I don't seem to be able to send a mail from C to A which get forwarded to B, because the moment the forwarding is enabled, the bounce with the quoted message occurs.

Wait. Do I need to use the same email-address I used to generate the account to send the mail which shall become a forwarded bitmessage, and it just fails because I didn't use a mail-address to generate the account?
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: AyrA on August 01, 2013, 11:37:28 AM
Wait. Do I need to use the same email-address I used to generate the account to send the mail which shall become a forwarded bitmessage, and it just fails because I didn't use a mail-address to generate the account?
Nope. Using an E-mail address at all is optional for account generation. I will look into this as forwarding seems to be an issue.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: onli on August 01, 2013, 11:39:47 AM
That would be great. Thank you very much, for the support and the service itself!
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: AyrA on August 01, 2013, 02:22:37 PM
That would be great. Thank you very much, for the support and the service itself!
Everything should be working by now. Looks like the mailserver did not replace from and to fields in the message when forwarding. Implemented manual replacement, including for broadcasting.
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: onli on August 01, 2013, 03:35:51 PM
Confirmed, works. Thanks! Now I have an alternative to the blackholey bitmsg.cc :-) (and maybe even that gets resolved in the future)
Title: Re: bitmsg.cc - Dead Simple Email Gateway
Post by: AyrA on August 01, 2013, 03:44:02 PM
Confirmed, works. Thanks! Now I have an alternative to the blackholey bitmsg.cc :-) (and maybe even that gets resolved in the future)
I think so. He wouldn't let it die so early.