Proper configuration for Windows SMTP Virtual Server to only send email from localhost, and tracking down source of spam emails

Posted by ilasno on Server Fault See other posts from Server Fault or by ilasno
Published on 2012-02-09T22:16:00Z Indexed on 2012/03/21 23:31 UTC
Read the original article Hit count: 210

Filed under:
|

We manage a server that is hosted on Amazon EC2, which has web applications that need to be able to send outgoing email. Recently we received a notice from Amazon about possible email abuse on that server, so i've been looking into it.

It's Windows Server Datacenter (2003, i guess), and uses SMTP Virtual Server (you know, the one that requires IIS 6 for admin). The settings on the Access tab are as follows: - Authentication: Anonymous - Connection: Only from 3 ip addresses (127.0.0.1 and 2 others that refer to that server) - Relay: Only from 3 ip addresses (127.0.0.1 and 2 others that refer to that server)

In the SMTP logs there are many entries like the following:

2012-02-08 23:43:56 64.76.125.151 OutboundConnectionCommand SMTPSVC1 FROM: 0 0 4 0 26364 SMTP - - - - 2012-02-08 23:43:56 64.76.125.151 OutboundConnectionResponse SMTPSVC1 250+ok 0 0 6 0 26536 SMTP - - - - 2012-02-08 23:43:56 64.76.125.151 OutboundConnectionCommand SMTPSVC1 TO: 0 0 4 0 26536 SMTP - - - - 2012-02-08 23:43:56 64.76.125.151 OutboundConnectionResponse SMTPSVC1 250+ok 0 0 6 0 26707 SMTP - - - -

([email protected] is sending quite a lot of emails :-/)

Can anyone confirm if the SMTP server settings seem correct?

I'm also wondering if a web application on the machine could be exposing a contact form or something that would allow this sort of abuse, looking into that (and how to look into that) further.

© Server Fault or respective owner

Related posts about windows-server-2003

Related posts about spam