Good morning. I'm a little worried about my Qmail server (I'm using Plesk 7.5.4). We're using SMTP authentication (configured under "Mail" option at Plesk administrator) and everything looks close and secure, till we found that messages containing virus (inside zip files) are being delivered to users in our server. And worst: these messages were being sent from our own SMTP server!
I've discoverd that if you're using default's Plesk Qmail install, anyone is able to send messages to local domains (listed in the rcpthosts file) using the server's SMTP server, whithout any kind of authentication :eek: !
Here's a quick explanation (from command prompt anywhere):
telnet smtp.yourdomain.com 25
220 smtp.yourdomain.com ESMTP
helo
250 smtp.yourdomain.com
mail from:anybody@anywhere.com
250 ok
rcpt to:someone@yourdomain.com
250 ok
data
354 go ahead
subject=test
content
.
250 ok 1149174825 qp 6354
Where "yourdomain.com" is a domain configured at Plesk and "anywhere.com" can be whatever you want.
And the message is sent without any athentication method... Is that ok? Most SMTP servers I have used does not allow this, requiring some authentication, even if the message are destinated to a local address/domain.
You can also do this with your e-mail client program (ie. Outlook). Just configure the SMTP server and test it. As long as you're a sending a message to a local domain you'll not be blocked by a 553 error or something else. The message simply goes to it's destination.
This flaw can be used (matter of fact *is* being used) by spammers. The messages are being delivered to our domains as local messages (also bypassing SPF verification since Plesk 7.5.4 does not offer SPF checks and the messages are delivere internally/locally). I believe is pretty easy to built a tool or a simple script that can use this flaw to send spam or spread virus, bypassing many security protections on the way (for example: our server is using a MX gateway that do SPF/ORBL checks/etc before delivering the message to the server. The thing is that, without authentication, anyone can send messages directly to our domains, bypassing any security check.
Are you guys aware of this? Have something to share? Tips to avoid it? There's got to be a way to make Plesk's Qmail server asks for authentication BEFORE sending the message, locally or remotely (it shouldn't matter).
Many thanks!
