Recently, I've a seen large increase in the amount of spam to me apparently coming from me.
Note: Exchange 2003 and 2007 displays the "from" addressTo stop spamming yourself, configure your SMTP gateway server to reject all external emails from your domain(s). Here's how to do this using the Exchange 2007 Edge Transport server:
of these emails as the full SMTP address (i.e., firstname.lastname@example.org), rather than the resolved name (Jeff Guillet), to show that the email actually came from outside the company.
- Open the Exchange Management Console (EMC) on the Exchange Edge Transport server
- Expand Microsoft Exchange and select Edge Transport
- Double-click Sender Filtering to open its properties
- Click the Blocked Senders tab and click Add
- Select Domain, enter your SMTP domain name, Include all subdomains, and click OK
- Click OK again to close the Sender Filtering Properties window
Now the Edge server will not accept non-authenticated emails from your domain to your domain. Note that this does not affect any external Windows Mobile or Outlook Express clients from sending email into your domain, as long as these users are authenticated.
You can use the following VB script to test the new settings:
'VBScript to test SMTP email
CONST mailServer = "incoming.mydomain.com"
CONST emailAddress = "email@example.com"
Set objEmail = CreateObject("CDO.Message")
objEmail.From = emailAddress
objEmail.To = emailAddress
objEmail.Subject = "Test Message"
objEmail.Textbody = "This is a test message."
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = mailServer
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
MsgBox "SMTP Email sent successfully to " & emailAddress, vbInformation, "TestSMTP"
Change the mailServer variable to use your Edge Transport server name and the emailAddress variable to use your internal SMTP address. The script will send SMTP email to the email address from the same email address.
Before Sender Filtering is enabled, the script will return a success message:
After Sender Filtering is enabled, the script will return a Sender Denied message: