Monday, February 23, 2015

Configuring IIS to use a Gmail SMTP relay server

Configuring IIS to use a Gmail SMTP relay server


Starting here make sure the IP address is set to “All Unassigned” port 25.
graphic



Under “Access” > “Authentication” check Anonymous, leave basic and windows unchecked.
graphic

“Access” > “Connection” check “All except the list below” leave it blank.
graphic


“Access” > “Relay Restrictions” same, check “Only the list below” and also check “Allow all computers which successfully authenticate to relay, regardless of list above.”
graphic


Match message size limits/etc. to below image (or adjust per environment.)
graphic


Also match Delivery settings to below (or adjust per environment.)
graphic



For “Outbound Security” select Basic Auth + TLS encryption. Account must be provided by customer.



Set “Outbound Connections” to the listed settings or adjust per environment as necessary.
graphic



Lastly be sure the fully-qualified domain name is used. If using an IP address here things can get dicey. Set smart host to smtp.gmail.com andUNCHECK the “Attempt direct delivery before sending to smart host.”

No comments:

Post a Comment