I have to write an application which processes and forwards mails which are delivered to a default user, but the original sender must be preserved.
I already know that the Send as permission is required to send mails as any other Exchange user according to the Microsoft KB and also this SF question
But does that also work with users/senders which are not Exchange users?
In other words, this works:
[email protected] ---> [email protected] ---> [email protected]
Jane sends a mail to the default user. My application processes the inbox and composes a new message based on the original message and sends it to John with Jane as the sender.
But how about this:
[email protected] ---> [email protected] ---> [email protected]
In this case an unknown external sender sends the original e-mail. Can the forwarding application still set the sender of the new message to the original unknown sender?
I fear that this is not allowed because that would be a spammer's tactic (although here it is incoming mail, not outgoing)
(Unfortunately I don't have access to an Exchange server in the foreseeable future, so I can't just test this.)
Well,
this will depend on the configuration of the SMTP server that you are using to send the Email(assuming you are using SMTP), The IP address of your application conputer should be allowed to Relay on the SMTP server for this esenario to work, or you should authenticate to the SMTP server for the Relay to be permited.
Here is an Microsoft KB about configuring Relay on Exhchange servers:
http://technet.microsoft.com/en-us/library/dd277329.aspx