mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 01:16:01 +03:00
[GH-ISSUE #1667] Unauthenticated SMTP possible on port 25 #1311
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1311
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 @PatTheMav on GitHub (Feb 7, 2019).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1667
Impacted versions
Steps to reproduce
25, leave name and password emptyCurrent behavior
On port 25 the email server allows arbitrary emails to be sent to local, existing mailboxes without authentication. This allows any client (even such test pages) to spam existing users.
Non-local email addresses are correctly rejected with the message
Relay access denied, also using port 587 blocks access.Expected behavior
When authentication is enabled, all attempts to send email via SMTP without auth should be blocked.
As far as I could check, authentication is enabled and works, i.e. I can't send an email using Apple Mail without proper authentication. If I enter a wrong password however, Apple Mail's connection test tells me that the connection was successful, but no authentication is needed (actually sending out an email fails however).
But I successfully "spammed" my own users with the test tool and my own SMTP. 😕
@PatTheMav commented on GitHub (Feb 7, 2019):
Let this be a lesson for later generations:
Closed.. 🙈😂
@carbans commented on GitHub (Feb 19, 2019):
@tonioo this problems exist and I recibing a lot SPAM by this way. How we can fix it? I think it's a important bug
@Arvedui commented on GitHub (Feb 20, 2019):
This is not a bug, it's a feature.
Yes it is most certainly how all the spam reaches you, just like any other mail coming from other servers. If you fix this "bug" you won't be able to receive mails from people using other mail providers like gmail or outlook.
If you are absolutely certain that that is what you want, just delete the MX record and close port 25 in you firewall.
@PatTheMav commented on GitHub (Feb 25, 2019):
@carbans at first I thought this to be an error as well, but after "understanding how Email works" (as I've written before I closed the issue), it's obvious it can't be locked down (simplified explanation follows):
MXrecord of domain.com will name the server that should receive that mail, on port 25.In essence, an open port 25 needs to "allow spamming" of local email accounts, because that's how email is transferred - other SMTPs send emails to your SMTP on that port. That's why SMTPs need to be closed down to not relay email to any domain outside of their own. And that's why DKIM/SPF/DMARC are necessary.