Re: forward all incoming emails to a single address

Tech-Archive recommends: Speed Up your PC by fixing your registry



Great ideas, thank you.
Speaking of which, someone already wrote a tiny program that does what you
mention.
Here's what I just implemented (saves me from writing the code):
http://smtp-preprocessor.sergey-merzlikin.qarchive.org/



"Sanford Whiteman" <swhitemanlistens-software@xxxxxxxxxxxxxxxxxxxxx> wrote
in message news:op.t7ha5slu6c17zw@xxxxxxxxxxxxxxxxxxxxxxx
We'd like to prevent our staging and testing environments from sending
emails out to real employees/clients. Is there a way to configure Win2k3
server's SMTP server to forward all incoming email to a single email
address?

Well, no. But I really wouldn't advise you to do that kind of thing at
the MTA level, anyway. Rather, I would just wrap all your outbound
mail code in a switch() that, in your non-production sites, replaces
the envelope RCPT TO domain (not the header To: domain) with your
preferred destination mailbox. I would suggest this is the best
practice to retain end-to-end control.

If you must, you could write a simple JScript/VBScript SMTP transport
event sink off the MSDN examples that just replaces the envelope
recipient on all mail.

--Sandy



------------------------------------
Sanford Whiteman, Chief Technologist
Broadleaf Systems, a division of
Cypress Integrated Systems, Inc.
------------------------------------


.