Last post Jul 05, 2009 05:21 AM by Cheese Slayer
Jul 04, 2009 04:29 AM|Cheese Slayer|LINK
If I want incoming emails to my server be routed to a different email depending on the value of the "To" field in the email, would I need to manipulate the SMTP server(Exchange or w/e) or can I do this directly with ASP.NET?
If I have to modify the mail server, would it be possible to have a script run everytime an email is sent TO my server?
Jul 04, 2009 10:20 AM|HostingASPNet|LINK
It will be much better to configure such rule in your mail server, not to use ASP.NET. You should just check how to setup such rule depending on the mail server that you have used.
Jul 04, 2009 11:00 AM|Cheese Slayer|LINK
Can this be done with regular IIS SMTP service or would I need an Exchange Server or something of the sort?
I'm running Windows XP ATM for my development server, with IIS 5.1. I tried look at the SMTP options in my IIS, but couldn't find anyway to make it interact with the SQL instance i'm running.
Jul 04, 2009 11:25 AM|HostingASPNet|LINK
"couldn't find anyway to make it interact with the SQL instance i'm running" - what exactly you are trying to do?
Jul 05, 2009 05:21 AM|Cheese Slayer|LINK
Ok, so the basic thing I want to do is redirect incoming emails to my domain (firstname.lastname@example.org) to a different email (not on my domain/server)
Someone sends an email to: email@example.com
In my SQL database, I have a table called "ForwardTo" in that table:
Email | RedirectTo
The script would look up the table for "someone" and then forward that email to "firstname.lastname@example.org"
All I really want to do is redirect emails depending on the account(@mydomain.com) it was sent to.