On my Ubuntu server, I use Plesk to manage email accounts, among other things.
Emails to info@mydomain.com
are automatically forwarded to myname@gmail.com
. No problems so far.
But today I received an email in my Gmail inbox:
- From:
someone@otherwebsite.com
viamydomain.com
- To:
info@mydomain.com
So my question is (regarding the via mydomain.com
): Is someone sending me mails via my own server?
I've tried to check if there is a security problem. So I used Putty to connect from my computer at home to my webserver. I used telnet mydomain.com 25
.
Then I entered mail from: info@mydomain.com
and the response was 250 2.1.0 Ok
.
Now when I send rcpt to: person@example.com
, it fails with 554 5.7.1 <person@example.com>: Relay access denied
. But when I type my own address again (rcpt to: info@mydomain.com
), it seems to succeed: 250 2.1.5 Ok
.
Does that mean anyone can send emails to me via my own server?
The whitelist in Plesk's mail settings has only two entries:
- 127.0.0.0 / 8
- ::1 / 128
Are they okay?
Now I've changed the setting "Relaying" from "Authorization required for SMTP" to "Closed". rcpt to: info@mydomain.com
now results in 451 4.7.1 Service unavailable - try again later
. Has this been the solution?