poorly written and documented secure mail server - and client mock
PROOF OF CONCEPT
written in go (golang) and shellscript
sends encrypted and signed mails packed in tar gzip packages...

i'm new to golang and the nsa e-mail scandal was just around so i did this to learn something... i guess.
then i got bored so not everything is implemeted yet.
- opens a http server and awayts a connection
- you can get authenticated with a password and then send email (server local)
- you can get a token to send email to a local account from "outside"
- you can get authenticaed and download your mail
- you can request an public key for all users

- no ssl
- no server to server communication

	new file:   golang/secure-mail-server/SecureMailServer.go
	new file:   golang/secure-mail-server/cheatsheet
	new file:   golang/secure-mail-server/client-mock
	new file:   golang/secure-mail-server/mail/1376068306.629727710+0200.smail
	new file:   golang/secure-mail-server/mail/1376068307.629727710+0200.smail
	new file:   golang/secure-mail-server/mail/attach/1.jpg
	new file:   golang/secure-mail-server/mail/attach/1.jpg.asc
	new file:   golang/secure-mail-server/mail/attach/2.pdf
	new file:   golang/secure-mail-server/mail/attach/2.pdf.asc
	new file:   golang/secure-mail-server/mail/meta
	new file:   golang/secure-mail-server/mail/payload.tgz
	new file:   golang/secure-mail-server/mail/response
	new file:   golang/secure-mail-server/mail/sign
	new file:   golang/secure-mail-server/mail/subject
	new file:   golang/secure-mail-server/mail/subject.asc
	new file:   golang/secure-mail-server/mail/text
	new file:   golang/secure-mail-server/mail/text.asc
	new file:   golang/secure-mail-server/public_keys/.pkey
	new file:   golang/secure-mail-server/public_keys/ben@netzbasis.de.pkey
	new file:   golang/secure-mail-server/public_keys/hexa@netzbasis.de.pkey
	new file:   golang/secure-mail-server/public_keys/user1@netzbasis.de.pkey
	new file:   golang/secure-mail-server/users/ben@netzbasis.de.md5
	new file:   golang/secure-mail-server/users/de/netzbasis/ben/sent/1376068306.629727710+0200.smail
	new file:   golang/secure-mail-server/users/de/netzbasis/ben/sent/1376068307.629727710+0200.smail
	new file:   golang/secure-mail-server/users/de/netzbasis/ben/sent/1377890172.017488255+0200.smail
	new file:   golang/secure-mail-server/users/de/netzbasis/ben/sent/1377890209.500728407+0200.smail
	new file:   golang/secure-mail-server/users/de/netzbasis/hexa/inbox/1376068306.629727710+0200.smail
	new file:   golang/secure-mail-server/users/de/netzbasis/hexa/inbox/1376068307.629727710+0200.smail
	new file:   golang/secure-mail-server/users/de/netzbasis/hexa/inbox/1377890172.017488255+0200.smail
	new file:   golang/secure-mail-server/users/de/netzbasis/hexa/inbox/1377890209.500728407+0200.smail
	new file:   golang/secure-mail-server/users/de/netzbasis/user1/inbox/1376068306.629727710+0200.smail
	new file:   golang/secure-mail-server/users/de/netzbasis/user1/inbox/1376068307.629727710+0200.smail
	new file:   golang/secure-mail-server/users/hexa@netzbasis.de.md5
	new file:   golang/secure-mail-server/users/user1@netzbasis.de.md5
	new file:   shell/secure-mail-client/smConfig.sh
	new file:   shell/secure-mail-client/smGetMail.sh
	new file:   shell/secure-mail-client/smSend.sh