Groups | Blog | Home
all groups > iis smtp nntp > may 2008 >

iis smtp nntp : Change Received: from host1 "([127.0.0.1])"



24CG
5/7/2008 1:44:01 AM
Using Win2003 with IIS and smtp, have a ASP application using the SMTP
service to send emails connecting to smtp server with IP 127.0.0.1.

Relaying is only allowd from the localhost.

I would like the outoging emails replacing the localhost ip adress with the
public ip address on the server, can i do this? I rather not relay trough the
24CG
5/7/2008 2:38:02 AM
Thx for the reply.

[quoted text, click to view]

Can you explain this?

Does it mean that i create a file of the email and put it in the pickup
Sanford Whiteman
5/7/2008 5:22:06 AM
[quoted text, click to view]

The Received: header reflects the true source IP, which is either
going to be 127.0.0.1 or the private IP of the server, depending on
which one you choose to connect to. You're not going to be able to
"spoof" IIS into logging another IP at connection time. This most
recent Received: header is trusted information (in fact, the only
trusted information in SMTP headers is the last Received: header added
by a server you know and/or control).

If you wrote an event sink, you would be able to munge the headers on
the way out. But that would be a huge waste of time, IMO. You might
instead try to send using the \Pickup folder, which will not leave the
local IP in the headers.

[quoted text, click to view]

Well, yes, and with many firewalls it isn't even possible to do that
kind of double-NAT.

--Sandy


------------------------------------
Sanford Whiteman, Chief Technologist
Broadleaf Systems, a division of
Cypress Integrated Systems, Inc.
Sanford Whiteman
5/7/2008 12:12:27 PM
[quoted text, click to view]

Microsoft components like CDOSYS already understand the
'SendUsingPickup' concept, so you don't necessarily have to craft the
message any differently than you would to send using regular SMTP.

I don't want to say it will have the "correct" source: the message
will show that it was 'sent using Pickup' as opposed to submitted over
IP to the localhost IP. You may find that more pleasing to the eye.

--Sandy


------------------------------------
Sanford Whiteman, Chief Technologist
Broadleaf Systems, a division of
Cypress Integrated Systems, Inc.
AddThis Social Bookmark Button