šŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
8 messages
8 total messages Started by dotter Wed, 30 Jul 2025 15:01
smtpdump as a tor mail server – issues with security/authentication
#330475
Author: dotter
Date: Wed, 30 Jul 2025 15:01
23 lines
2153 bytes
I'm playing around with running an email server over onion, like described here:
https://tilde.club/~pollux/ and also somewhere in this group.
But I'm a bit confused about the lack of any real authentication.

Right now, anyone who knows my server address can just do something like:
oniux swaks --to pollux@topsecrettorserver.onion \
            --from pollux@topsecrettorserver.onion \
            --server topsecrettorserver.onion \
            --port 2525 \
            --auth CRAM-MD5 \
            --data "Subject: Test\n\nThis is a test message."


And I’m not even worried here about spoofing the From field - that can
be solved with GPG signatures.
The real problem is: literally anyone who knows the address can use this
method and start sending thousands of emails, no barriers.

Is this a bug? Or a feature?

I get that this setup is probably meant for a small circle
of trusted people, but... are there any alternatives
or "additional layers" that would make this a bit more secure?
Re: smtpdump as a tor mail server – issues with security/authentication
#330480
Author: Stefan Claas
Date: Wed, 30 Jul 2025 15:50
54 lines
3714 bytes
dotter wrote:
> 
> I'm playing around with running an email server over onion, like described here:
> https://tilde.club/~pollux/ and also somewhere in this group.
> But I'm a bit confused about the lack of any real authentication.
> 
> Right now, anyone who knows my server address can just do something like:
> oniux swaks --to pollux@topsecrettorserver.onion \
>             --from pollux@topsecrettorserver.onion \
>             --server topsecrettorserver.onion \
>             --port 2525 \
>             --auth CRAM-MD5 \
>             --data "Subject: Test\n\nThis is a test message."
> 
> 
> And I’m not even worried here about spoofing the From field - that can
> be solved with GPG signatures.
> The real problem is: literally anyone who knows the address can use this
> method and start sending thousands of emails, no barriers.
> 
> Is this a bug? Or a feature?
> 
> I get that this setup is probably meant for a small circle
> of trusted people, but... are there any alternatives
> or "additional layers" that would make this a bit more secure?

Hi, 

well, mail servers are usually public and in this case it is no
difference. However, you can set-up an additional pluto smtp relay
and then you give only the ORB (Onion Reply Block) to interested
parties. That way the onion address is no longer visible, but people
have then to use your pluto server. But it still let then send people
who have your ORB a lot of emails.

The general idea of smtpdump(+) is that it is intended for decentralized
communications, with family, friends and co-workers.

BTW. smtpdump is a fork from someone else and I may consider to add
authentication in the future.

To make communications more secure and option would be to use Onion Courier
instead of email. Onion Courier allows you to send data between two parties,
where everybody has to run his own server/client (locally) with an additional
password for the address, so that when the address would get public, third
parties do not have your password to send you data. It has also support for
TypeI remailer like nodes.

https://github.com/Ch1ffr3punk/oc

Regards
Stefan

Re: smtpdump as a tor mail server – issues with security/authentication
#330483
Author: Stefan Claas
Date: Wed, 30 Jul 2025 16:16
26 lines
2609 bytes
Stefan Claas wrote:

> To make communications more secure and option would be to use Onion Courier
> instead of email. Onion Courier allows you to send data between two parties,
> where everybody has to run his own server/client (locally) with an additional
> password for the address, so that when the address would get public, third
> parties do not have your password to send you data. It has also support for
> TypeI remailer like nodes.
> 
> https://github.com/Ch1ffr3punk/oc

Another option available would be to use my ephemeral Onion Box project.

This way you can set-up as root an Onion Box server, which sends in defined
intervals, the initial password you gave your friends, a new address, encrypted
to your friends regular email address. The server is like an ftp server
where users of your system can create folders, files and upload/download them
and therefore can in this way communicate with each other, but they can
also delete files from each other, instead of the onces created by root.

Maybe a good alternative to email ... ;-)

https://github.com/Ch1ffr3punk/eob

Regards
Stefan
Re: smtpdump as a tor mail server – issues with security/authentication
#330484
Author: Stefan Claas
Date: Wed, 30 Jul 2025 16:39
18 lines
2005 bytes
dotter wrote:

> The real problem is: literally anyone who knows the address can use this
> method and start sending thousands of emails, no barriers.
> 
> Is this a bug? Or a feature?
> 
> I get that this setup is probably meant for a small circle
> of trusted people, but... are there any alternatives
> or "additional layers" that would make this a bit more secure?

I completely forgot. You can set-up client authentication for Tor Hidden
Services.

<https://community.torproject.org/onion-services/advanced/client-auth/>

Regards
Stefan
Re: smtpdump as a tor mail server – issues with security/authentication
#330485
Author: Stefan Claas
Date: Wed, 30 Jul 2025 16:42
21 lines
2136 bytes
Stefan Claas wrote:
> dotter wrote:
> 
> > The real problem is: literally anyone who knows the address can use this
> > method and start sending thousands of emails, no barriers.
> > 
> > Is this a bug? Or a feature?
> > 
> > I get that this setup is probably meant for a small circle
> > of trusted people, but... are there any alternatives
> > or "additional layers" that would make this a bit more secure?
> 
> I completely forgot. You can set-up client authentication for Tor Hidden
> Services.
> 
> <https://community.torproject.org/onion-services/advanced/client-auth/>

https://github.com/Ch1ffr3punk/onionauth

Regards
Stefan
Re: smtpdump as a tor mail server – issues with security/authentication
#330490
Author: Nomen Nescio
Date: Thu, 31 Jul 2025 00:09
22 lines
1650 bytes
On 30 Jul 2025, Stefan Claas
<pollux@yeffqiea4xtcu6woyab6z6bz4oehisfuzgtmk4e277bydq25p7nha7ad.onion>
posted some news:106dhs6$e031$1@paganini.bofh.team: 

> dotter wrote:
> 
>> The real problem is: literally anyone who knows the address can use
>> this method and start sending thousands of emails, no barriers.
>> 
>> Is this a bug? Or a feature?
>> 
>> I get that this setup is probably meant for a small circle
>> of trusted people, but... are there any alternatives
>> or "additional layers" that would make this a bit more secure?
> 
> I completely forgot. You can set-up client authentication for Tor
> Hidden Services.
> 
><https://community.torproject.org/onion-services/advanced/client-auth/>

I had to do that on OmniMix after I shared an SMTP onion link meant for
private use. 
Re: smtpdump as a tor mail server – issues with security/authentication
#330585
Author: Anonymous User
Date: Mon, 04 Aug 2025 22:43
26 lines
1760 bytes
Nomen Nescio wrote:

>> <https://community.torproject.org/onion-services/advanced/client-auth/>
> 
> I had to do that on OmniMix after I shared an SMTP onion link meant for
> private use.

Do you know where I find examples for private and public keys and their
base32 representations ready to be deployed within the Tor system? There
are several base32 variants and I don't know which to use.

I created

-----BEGIN PRIVATE KEY-----
MC4CAQAwBQYDK2VuBCIEIGDtPiNQMQQY+Nnkx0LKGH0SQt8D/noGDGxjTNGjh1FE
-----END PRIVATE KEY-----

and

-----BEGIN PUBLIC KEY-----
MCowBQYDK2VuAyEAfGdTTadjrYtpzHgLXbC+RM0IL3uefDZuJIDNhI+peGI=
-----END PUBLIC KEY-----

and would like to know how to convert them correctly.

Thanks
Re: smtpdump as a tor mail server – issues with security/authentication
#330593
Author: Stefan Claas
Date: Tue, 05 Aug 2025 10:52
48 lines
3025 bytes
Anonymous User wrote:
> Nomen Nescio wrote:
> 
> > > <https://community.torproject.org/onion-services/advanced/client-auth/>
> > 
> > I had to do that on OmniMix after I shared an SMTP onion link meant for
> > private use.
> 
> Do you know where I find examples for private and public keys and their
> base32 representations ready to be deployed within the Tor system? There
> are several base32 variants and I don't know which to use.
> 
> I created
> 
> -----BEGIN PRIVATE KEY-----
> MC4CAQAwBQYDK2VuBCIEIGDtPiNQMQQY+Nnkx0LKGH0SQt8D/noGDGxjTNGjh1FE
> -----END PRIVATE KEY-----
> 
> and
> 
> -----BEGIN PUBLIC KEY-----
> MCowBQYDK2VuAyEAfGdTTadjrYtpzHgLXbC+RM0IL3uefDZuJIDNhI+peGI=
> -----END PUBLIC KEY-----
> 
> and would like to know how to convert them correctly.
> 
> Thanks
> 

Why not use my previously mentioned onionauth program?

$ onionauth -h
Usage: onionauth <name> <onion_address>

$ onionauth pollux yeffqiea4xtcu6woyab6z6bz4oehisfuzgtmk4e277bydq25p7nha7ad
pollux public key:  LRNSKXA76FVZPFTDNKCQWXSAZLJYVJOLNQOJ2JSZXKDPUVYMO5JA
pollux private key: FDNK5VN4CXYUMFNP2WFPJ7GSJJFU3HEH7MRWBXUPI4HLWWZGTNGQ
Public key saved to pollux.auth
Private key saved to pollux_onion.auth_private

$ cat pollux.auth
descriptor:x25519:LRNSKXA76FVZPFTDNKCQWXSAZLJYVJOLNQOJ2JSZXKDPUVYMO5JA

$ cat pollux_onion.auth_private
yeffqiea4xtcu6woyab6z6bz4oehisfuzgtmk4e277bydq25p7nha7ad:descriptor:x25519:FDNK5VN4CXYUMFNP2WFPJ7GSJJFU3HEH7MRWBXUPI4HLWWZGTNGQ

Regards
Stefan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads