I have noticed that my firewall registers connection attempts from my tor-server on port 465 and 587. My relay performs normally, so it appears that they have no significance for the operation.
Could somebody please explain the logic behind those SMTP connections? I am a bit puzzled!
/Ole Rydahl
OS: Fedora Linux 43 (Server Edition), Platform: Tor 0.4.9.8 on Linux
That is a bad actor on tor, attempting to send spam email that uses smtp ports to using your tor node as a relay, potentially spoofing the source to make it look like your relay is the sender. be sure to block any and all ports for smtp, 25, 465, 587, 2525 (not a comprehensive list of ports) for both incoming and outgoing connections. Your host, once it appears that your server is sending mass amounts of spam, may suspend or terminate your account. just went through this with hetzner this week.
···
Thanks,
Robert Shults
IT Administrator & Solution Architect
CEO, TheMadHacker LLC https://themadhacker.net
Hm, maybe it is the bad actor you describe, but another option is that
these are normal Tor relays listening with their ORPort on port 465 or
587. There is nothing sacred about these numbers, and people can pick
them for their ORPort, and it could even be a good idea if it means
they are reachable from behind firewalls that other destination ports
wouldn't allow.
There is nothing wrong here, but you are right that some sysadmins
might misunderstand what is going on and get upset at you for making
connections on that port.
There are 31 relays running with their ORPort set to 465:
On Thu, Jun 11, 2026 at 04:01:49AM -0500, TheMadHacker Schism via tor-relays wrote:
That is a bad actor on tor, attempting to send spam email that uses smtp
ports to using your tor node as a relay
[...]
> I have noticed that my firewall registers connection attempts from my
> tor-server on port 465 and 587. My relay performs normally, so it appears
> that they have no significance for the operation.
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
Please read the SMTP RFCs. 25 is for unauthenticated mail and if that is allowed, it can be used as a spambot.
465 and 587 are for authenticated mail. If the user does not have credentials on the remote server, it cannot send mail.
2525 is not standardized at all for mail.
Exclude port 25 in the ExitPolicy, not only the firewall. Otherwise your relay might end as a Bad one.
···
Am 11.06.26 um 11:01 schrieb TheMadHacker Schism via tor-relays:
be sure to block any and all
ports for smtp, 25, 465, 587, 2525 (not a comprehensive list of ports) for
both incoming and outgoing connections.
--
Gruß
Marco
Junk-Mail bitte an trashcan@stinkedores.dorfdsl.de
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
Fra: Roger Dingledine via tor-relays <tor-relays@lists.torproject.org>
Sendt: 11. juni 2026 12:06
Til: support and questions about running Tor relays (exit, non-exit, bridge)
<tor-relays@lists.torproject.org>
Cc: Roger Dingledine <arma@torproject.org>
Emne: [tor-relays] Re: Strange SMTP attempts from my tor relay
On Thu, Jun 11, 2026 at 04:01:49AM -0500, TheMadHacker Schism via tor-relays wrote:
That is a bad actor on tor, attempting to send spam email that uses
smtp ports to using your tor node as a relay [...]
> I have noticed that my firewall registers connection attempts from
> my tor-server on port 465 and 587. My relay performs normally, so it
> appears that they have no significance for the operation.
Hm, maybe it is the bad actor you describe, but another option is that these
are normal Tor relays listening with their ORPort on port 465 or 587. There
is nothing sacred about these numbers, and people can pick them for their
ORPort, and it could even be a good idea if it means they are reachable from
behind firewalls that other destination ports wouldn't allow.
There is nothing wrong here, but you are right that some sysadmins might
misunderstand what is going on and get upset at you for making connections
on that port.
There are 31 relays running with their ORPort set to 465:
[Ole Rydahl ] Thank you Roger! The Wireshark recordings I made fits nicely
with your list of ip's using 465/587 as or-port.
/Ole
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org To unsubscribe
send an email to tor-relays-leave@lists.torproject.org
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
I have to agree on this one, figure out which IP addresses are being
connected to. I have relays running on all kinds of popular ports
(80,143,443,465,587,995 and some more), I would strongly advise not to
block ports 465 or 587 as was suggested somewhere earlier in this
thread. The port you should block, and most likely is already blocked by
your provider, is port 25. I recognize some of the IP’s in this list as
mine, like 37.221.209.198 for example belongs to 3 of my Hungarian guards.
Kind regards,
Dennis Bronk.
···
On 6/11/26 12:05, Roger Dingledine via tor-relays wrote:
On Thu, Jun 11, 2026 at 04:01:49AM -0500, TheMadHacker Schism via tor-relays wrote:
That is a bad actor on tor, attempting to send spam email that uses smtp
ports to using your tor node as a relay
[…]
I have noticed that my firewall registers connection attempts from my
tor-server on port 465 and 587. My relay performs normally, so it appears
that they have no significance for the operation.
Hm, maybe it is the bad actor you describe, but another option is that
these are normal Tor relays listening with their ORPort on port 465 or
There is nothing sacred about these numbers, and people can pick
them for their ORPort, and it could even be a good idea if it means
they are reachable from behind firewalls that other destination ports
wouldn’t allow.
There is nothing wrong here, but you are right that some sysadmins
might misunderstand what is going on and get upset at you for making
connections on that port.
There are 31 relays running with their ORPort set to 465:
Thanks for the info on this, you guys, i would not have immediately thought that some relays use 587 / 465 as an ORPort. Learned something new today, and i’ll be sure exit policy matches any firewall rules that may be defined, the last thing i want to do is exclude legitimate relays from connecting through mine just because they picked a common port.
···
Thanks,
Robert Shults
IT Administrator & Solution Architect
CEO, TheMadHacker LLC https://themadhacker.net