mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #5130] frp tunneling for synology mail plus server by passes authentication #4013
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4013
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @last-Programmer on GitHub (Jan 16, 2026).
Original GitHub issue: https://github.com/fatedier/frp/issues/5130
Bug Description
When we are tunneling smtp ports 25, 465, 587 to synology mail plus server we can send semtp messages without authentication and the mail is relayed
Here is the problem report
https://community.synology.com/enu/forum/1/post/195544
Is there anyway we can overcome this?
frpc Version
0.66.0
frps Version
0.66.0
System Architecture
linux/amd64
Configurations
proxied 25, 465 and 587 ports
Logs
No response
Steps to reproduce
Affected area
@fatedier commented on GitHub (Jan 20, 2026):
frp is a transparent TCP proxy and does not implement or bypass SMTP authentication itself. If unauthenticated relaying becomes possible only when exposing SMTP ports via frp, it usually indicates the backend SMTP service treats the proxied connection as “trusted/internal” (e.g., based on source IP/network) and allows relay without AUTH. Please review Synology Mail Plus relay/auth policies (disable open relay, require SMTP AUTH for submission, restrict relay to authenticated users) and add network controls on the frps side (firewall / IP allowlist / avoid exposing port 25 publicly).
@last-Programmer commented on GitHub (Jan 20, 2026):
Thank you for the reply. It seems to be that it is an issue with synology mail plus server. since frpc is connecting to smtp server from localhost it is being treated as trusted and sends the mail. I tried sending real ip with transport.proxyProtocolVersion = "v2" and synology mail plus server does not like it. it is failing to send the mails. I have contacted synology support in regard to this.