This tool will help you create a proxy service with an SMTP protocol implementation and XOR packets to confuse and disguise packets from Deep Packet Inspection (DPI) and recognize them as SMTP communications. This project is inspired by smtp-tunnel-proxy
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment section for notes on how to deploy the project on a live system.
Prequisites packages:
- Go (Go Programming Language)
- GoReleaser (Go Automated Binaries Build)
- Make (Automated Execution using Makefile)
Optional packages:
- Docker (Application Containerization)
-
Install Docker CE based on the manual documentation
-
Run the following command on your Terminal or PowerShell for the server side
docker run -d \
-p <PROXY_SERVER_PORT>:<PROXY_SERVER_PORT>
--name proxy-over-smtp-server \
--rm dimaskiddo/proxy-over-smtp:latest \
proxy-over-smtp -secret <YOUR_SECRET_WORD> -mode server -server <PROXY_SERVER_PORT>
# Example of Usage
docker run -d \
-p 465:465
--name proxy-over-smtp-server \
--rm dimaskiddo/proxy-over-smtp:latest \
proxy-over-smtp -secret "THIS_IS_YOUR_SECRET_WORD" -mode server -server "0.0.0.0:465"- Run the following command on your Terminal or PowerShell for the client side
docker run -d \
-p <CLIENT_PROXY_PORT>:<CLIENT_PROXY_PORT>
--name proxy-over-smtp-client \
--rm dimaskiddo/proxy-over-smtp:latest \
proxy-over-smtp -secret <YOUR_SECRET_WORD> -mode client -client <CLIENT_PROXY_PORT> -remote <YOUR_SERVER_IP>:<PROXY_SERVER_PORT>
# Example of Usage
docker run -d \
-p 1080:1080
--name proxy-over-smtp-client \
--rm dimaskiddo/proxy-over-smtp:latest \
proxy-over-smtp -secret "THIS_IS_YOUR_SECRET_WORD" -mode client -client "0.0.0.0:1080" -remote "192.168.1.100:465"-
Now open your favourite browser and set the Connection setting to use Proxy
-
Set the proxy to use SOCKS version 5 protocol with address to 127.0.0.1 with port 1080 / Your Client Proxy Port
-
Download Pre-Build Binaries from the release page
-
Extract the zipped file
-
Run the pre-build binary for the server side
# MacOS / Linux
chmod 755 proxy-over-smtp
# -- Example of Usage
# -- ./proxy-over-smtp -secret <YOUR_SECRET_WORD> -mode server -server <PROXY_SERVER_PORT>
./proxy-over-smtp -secret "THIS_IS_YOUR_SECRET_WORD" -mode server -server "0.0.0.0:465"
# Windows
# You can double click it or using PowerShell
# -- Example of Usage
# -- .\proxy-over-smtp.exe -secret <YOUR_SECRET_WORD> -mode server -server <PROXY_SERVER_PORT>
.\proxy-over-smtp.exe -secret "THIS_IS_YOUR_SECRET_WORD" -mode server -server "0.0.0.0:465"- Run the pre-build binary for the client side
# MacOS / Linux
chmod 755 proxy-over-smtp
# -- Example of Usage
# -- ./proxy-over-smtp -secret <YOUR_SECRET_WORD> -mode client -client <CLIENT_PROXY_PORT> -remote <YOUR_SERVER_IP>:<PROXY_SERVER_PORT>
./proxy-over-smtp -secret "THIS_IS_YOUR_SECRET_WORD" -mode client -client "0.0.0.0:1080" -remote "192.168.1.100:465"
# Windows
# You can double click it or using PowerShell
# -- Example of Usage
# -- .\proxy-over-smtp.exe -secret <YOUR_SECRET_WORD> -mode client -client <CLIENT_PROXY_PORT> -remote <YOUR_SERVER_IP>:<PROXY_SERVER_PORT>
.\proxy-over-smtp.exe -secret "THIS_IS_YOUR_SECRET_WORD" -mode client -client "0.0.0.0:1080" -remote "192.168.1.100:465"-
Now open your favourite browser and set the Connection setting to use Proxy
-
Set the proxy to use SOCKS version 5 protocol with address to 127.0.0.1 with port 1080 / Your Client Proxy Port
Below is the instructions to make this source code running:
- Create a Go Workspace directory and export it as the extended GOPATH directory
cd <your_go_workspace_directory>
export GOPATH=$GOPATH:"`pwd`"- Under the Go Workspace directory create a source directory
mkdir -p src/github.com/dimaskiddo/proxy-over-smtp- Move to the created directory and pull codebase
cd src/github.com/dimaskiddo/proxy-over-smtp
git clone -b master https://github.com/dimaskiddo/proxy-over-smtp.git .- Run following command to pull vendor packages
make vendor- Until this step you already can run this code by using this command
make run- (Optional) Use following command to build this code into binary spesific platform
make build- (Optional) To make mass binaries distribution you can use following command
make releaseCurrently the test is not ready yet :)
- Go - Go Programming Languange
- GoReleaser - Go Automated Binaries Build
- Make - GNU Make Automated Execution
- Docker - Application Containerization
- Dimas Restu Hidayanto - Initial Work - DimasKiddo
See also the list of contributors who participated in this project
You can seek more information for the make command parameters in the Makefile
Copyright (C) 2026 Dimas Restu Hidayanto
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.