Configure IIS to send email from another IP

emailiis-6smtpwindows-server-2008

Frustratingly when I was setting email up I was sending test emails to my googlemail account. Now our IP has been blacklisted, all gmail emails end up in badmail with this notice:

Final-Recipient: rfc822;xyz@gmail.com
Action: failed
Status: 5.5.0
Diagnostic-Code: smtp;550-5.7.1 [108.60.144.10       1] Our system has detected an unusual rate of
550-5.7.1 unsolicited mail originating from your IP address. To protect our
550-5.7.1 users from spam, mail sent from your IP address has been blocked.
550-5.7.1 Please visit http://www.google.com/mail/help/bulk_mail.html to review
550 5.7.1 our Bulk Email Senders Guidelines. j20si5947381qct.182

We have spare IP's so I though I'd just change the IP of the SMTP server from 108.60.144.10 to 108.60.144.14:

enter image description here

However when we send emails to gmail they still come back with the same error message and originating IP address.

What do I need to do to change this?

Best Answer

The option to change the IP address is for inbound connections. Outbound connections are not, to my knowledge, configurable within IIS when multiple IP addresses exist on a network card. The IIS SMTP service grabs the default IP address on your network card and uses that as the outbound SMTP virtual server.

The solution is to change the default IP address on your NIC. The "default" is the first IP address that shows up when you look at TCP/IP v4 properties. So-called "non-default" IPs are those that are seen when you click the Advanced... button and then view the IP Settings tab.

Swap the default IP for one of the ones on the IP Settings tab.