Enable CI/CD by adding .onedev-buildspec.yml
| .gitignore | Loading last commit info... | |
| Dockerfile | ||
| README.md | ||
| config.json | ||
| config.json.example | ||
| config.v | ||
| docker-compose.yml | ||
| forwarder.v | ||
| main.v | ||
| smtp_server.v | ||
| v.mod |
README.md
⚡ Vorward - Standalone Vlang Email Forwarder
Vorward is a 100% standalone, ultra-lightweight (< 1.3MB binary, < 3MB RAM) SMTP email forwarding server written in V (Vlang). It requires no third-party relays, no SendGrid, no AWS SES, and no external services.
It accepts incoming emails on Port 25 for your custom domains (clyo.cloud, oplnova.xyz), performs automated DNS MX lookups for target destination addresses, upgrades the connection to STARTTLS TLS 1.3/1.2 encryption, and delivers messages directly to destination mail servers (Gmail, Titan Mail, Outlook).
🚀 Quick Start Guide
1. Build Binary
cd forwarder
v -prod -o vorward .
2. Configure Forwarding Rules (config.json)
{
"listen_addr": "0.0.0.0:25",
"managed_domains": [
"clyo.cloud",
"oplnova.xyz"
],
"rules": {
"*@clyo.cloud": "myrealemail@gmail.com",
"*@oplnova.xyz": "myrealemail@gmail.com",
"admin@clyo.cloud": "myadmin@gmail.com"
},
"default_target": "myrealemail@gmail.com",
"max_message_bytes": 26214400
}
3. Test Rule Matching
./vorward --test-rule hello@clyo.cloud
# Output: Recipient: hello@clyo.cloud -> Target: myrealemail@gmail.com
4. Start Server on VPS
sudo ./vorward --config config.json