Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing on an e-mail

Status
Not open for further replies.

gr8gonzo

MIS
Feb 6, 2001
21
US
Hi,
Basically, the only thing I am trying to do is change the e-mail address of an incoming e-mail and send the e-mail out again with the new From address.

I've set up Sendmail to feed incoming mail to this program, and that works fine. The program then opens up a socket to Sendmail:

HELO me
250 mydomain.com Hello localhost [127.0.0.1], pleased to meet you

MAIL FROM: new.address@domain.com
250 2.1.0 new.address@domain.com... Sender ok

RCPT TO: original.recipient@domain.com
250 2.1.5 original.recipient@domain.com... Recipient ok

DATA
354 Enter mail, end with "." on a line by itself

From original.sender@domain.com Thu Aug 2 14:15:48 2001
Received: from mx.domain.net (mx.domain.net [234.123.34.2])
by dest.server.com (8.11.1/8.11.1) with ESMTP id f72LFmW03103
for <original.recipient@domain.com>; Thu, 2 Aug 2001 14:15:48 -0700 (PDT)
(envelope-from original.sender@domain.com)
Received: from mailserver.domain.com (anotherdomain.com [123.12.123.1] (may be forged))
by mx.domain.net (8.11.3/8.11.3) with ESMTP id f72L57U06555
for <original.recipient@domain.com>; Thu, 2 Aug 2001 14:05:07 -0700 (PDT)
(envelope-from original.sender@domain.com)
Received: by mailserver.domain.com with Internet Mail Service (5.5.2653.19)
id <P4CVSHHQ>; Thu, 2 Aug 2001 14:15:18 -0700
Message-ID: <5D90F61EB6FDD411836500508B137F1A2689E1@mailserver.domain.com>
Subject: Testing Again
Date: Thu, 2 Aug 2001 14:15:18 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
charset=&quot;iso-8859-1&quot;

Testing again...

.
250 2.0.0 f76Fkie37346 Message accepted for delivery

RSET
250 2.0.0 Reset state

QUIT

Now, the mail is sent out. I receive it, but then I try the exact same thing again (exact same data, headers, etc... as shown above), and it says Message accepted for delivery, but it never gets sent. Why not???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top