I have a specific web service on the Internet which requires to send
an email out to Internet email addresses. I have installed IIS SMTP
service on the same W2K server hoping that it would "relay" the SMTP
email created on the web application out to the Internet destinined
for the recipient. Unfortunately this is failing to send anything out.
The single server is located on a DMZ and has access rules though the
firewall and router permitting outward DNS & SMTP and inward HTTP &
HTTPS connections.
The web service (not IIS) is fully accessible. I can use nslookup on
the server to query external DNS servers to get MX addresses from
domains. I can also Telnet to these addresses on port 25(SMTP) and
then manually craft a valid external email which is delivered. So I
am happy that the router/firewall configurations are working fine.
If I use Outlook on the same server to create an email, sending it to
the IIS service on the same server, it is accepted and Outlook is
happy. However the email simply remains in the IIS SMTP QUEUE
folder, and after a while some non-delivery warnings appear in the
queue. I don't want any inward SMTP from the Internet to arrive at
this server, and all non-delivery notifications etc. are to be sent to
another IP domain via another Internet connection which has a fully
working in and out SMTP service.
I was hoping that IIS's SMTP service would do the external MX lookup
and establish a direct SMTP connection with the recipients IP domain
mail server(s), but it' not :( I did try setting up a "REMOTE
domain" in IIS for *.co.uk but test emails to this domain were still
queued.
I know there is an option to specify a "smart host" to relay SMTP
emails to, but I don't want to pass this to an external SMPT relay and
I would prefer that this single server was a "smart host" and actually
sent the email.
Questions:
1. can IIS SMTP server take SMTP email from an application the same
server and then connect directl;y out to the Internet to send it on to
the recipient's mail server ?
2. If it can, anyone got any ideas what may be wrong, or anthing I
should be checking ? (The logs only show the SMTP sevice accepting
the emails with no sign of any attempts to send it)
3. If IIS can't do this, can anyone suggest a simple product that
could ?
TIA
HammY
Thank you. I hope this information is helpful.
Tim Coffey [MSFT]
This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2001 Microsoft Corporation. All rights reserved.
--------------------
| From: "Agent 008:" <fag...@mahame.co.uk>
| Newsgroups: microsoft.public.inetserver.iis
| Subject: SMTP virtual server failing to send email
| Organization: ATHame
| Reply-To: fag...@mahame.co.uk
| Message-ID: <o1irnvcgbp5g7a75u...@4ax.com>
| X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 62
| Date: Fri, 03 Oct 2003 20:32:23 +0100
| NNTP-Posting-Host: 82.41.73.166
| X-Complaints-To: ab...@blueyonder.co.uk
| X-Trace: news-binary.blueyonder.co.uk 1065209543 82.41.73.166 (Fri, 03 Oct 2003 19:32:23 GMT)
| NNTP-Posting-Date: Fri, 03 Oct 2003 19:32:23 GMT
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!skynet.be!skynet.be!newsgate.cistron.nl!
amsnews01.chello.com!news-hub.cableinet.net!blueyonder!internal-news-hub.cableinet.net!news-binary.blueyonder.co.uk.POSTED!53ab2750!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.iis:278169
| X-Tomcat-NG: microsoft.public.inetserver.iis
Reply from original poster:-
Just in case anyone has similar problems -
My problem was the router/firewall rules only permitting UDP out on
port 53 (DNS). While this worked for "usual" DNS queries, I found out
that IIS's SMTP service was using TCP. Once I permitted outgoing TCP
on port 53 everything started working fine.
HammY