I've a linux server with Postfix and I want to send emails from my server with TOR to clear email addresses like "gmail", "yahoo", etc.

How can I setup Postfix to send emails with TOR?

Can you explain me in details? Thank you very much

  • Possible duplicate of Unix command 'mail', send mail to an .onion address mail
    – cacahuatl
    Feb 11, 2017 at 18:01
  • NO, I want to send emails to CLEAR email addresses, NOT .onion address email. Feb 12, 2017 at 7:50
  • You understand, of course, that this simply won't work because all Tor exit's which can exit to port 25 (which is very limited) are all on multiple blacklists? And you'd need to own a valid domain that specifies all of the Tor exit relays in it's SPF record, etc. This simply will not work even if you get it to "work", your mail will be rejected as spam on the basis that it's coming from Tor.
    – cacahuatl
    Feb 12, 2017 at 18:46

1 Answer 1


Hello and good time of the day! To avoid too-overcomplicated setups just use a routing via firewall for all the MTA(Postfix in your case) usernames to route them directly through Tor. The only delicate spot here is the DNS - use your own local BIND setup to resolve all the stuff - Tor does not work with UDP, so it will fail to tunnel DNS requests via Tor too, and Tor's DNS backend is very limited in functionality, so it won't work for a mail server as it should(because Tor DNSPort is made for some different tasks).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .