2024-12-03 10:03:57 +03:00
2024-08-07 10:10:59 +03:00
2024-03-18 23:40:26 +03:00
2024-10-31 19:35:41 +03:00
2024-03-19 00:58:10 +03:00
2024-08-07 10:10:59 +03:00
2024-08-07 10:10:59 +03:00
2024-10-31 19:35:41 +03:00

mail-proxy

... is a simple and secure mail service deployed at mailer.fybx.dev. Provides a REST API endpoint for sending emails with built-in rate limiting and IP filtering.

Environment Variables

ENVIRONMENT=PROD|TEST|TEST-MAIL
EMAIL=sender@example.com
EMAIL_PASSWORD=your_password
EMAIL_HOST=smtp.example.com
EMAIL_PORT=465
ALLOWED_IPS=ip1,ip2,ip3

POST /api/mail

Sends an email. Limited to 1 request per minute.

{
  "subject": "Email Subject",
  "text": "Email Body",
  "recipient": "recipient@example.com"
}

Security Features

  • IP whitelist filtering
  • Rate limiting (10 requests/min globally, 1 request/min for mail endpoint)
  • Helmet security headers
  • Trust proxy enabled

credits

Feel free to contact me for collaboration on anything!

Yiğid BALABAN, <fyb@fybx.dev>

My WebsiteMy BentoXLinkedIn

2024

Description
A simple proxy endpoint that sends emails!
https://mail-proxy.vercel.app/
Readme 111 KiB
Languages
JavaScript 100%