SMTP Relay with Exchange, how to capture emails

Hi,

I have a website that is relaying emails through Exchange 2013 (Office 365) account, sending emails by authenticating through one of the accounts.

How do I capture these emails and put them in some inbox or folder. Preferably a sent folder.

Or is there a better way of doing it through another provider like sendgrid.com or gunmail?

Thanks
RFVDBAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Paris VicenteSystems and Comunications  Administrator Commented:
Hi RFVDB,

I believe that the best way is to enable Journaling for that mailbox but for that you will need to have an Enterprise Account for office 365.
If you are using an enterprise account you can follow this link

If you are using a SBS Account the journaling feature is not available, so the workaround could be:
1. Create a new mailbox to collect all the messages. For example, MBXForward@domain.com.
 
 2. Connect Windows PowerShell to the Exchange Online service: http://help.outlook.com/en-us/beta/cc952755.aspx?sl=1.

3. Run this command in Remote PowerShell:
  Get-Mailbox | Where {$_.RecipientType -eq "UserMailbox"}| Set-Mailbox -DeliverToMailboxAndForward $true
 
 4. Run another command to set forwarding rules for all the user mailboxes:
 Get-Mailbox | Where {$_.RecipientType -eq "UserMailbox"}| Set-Mailbox -ForwardingAddress MBXForward@domain.com
 
 5. Remove the forwarding rule for the public forward mailbox:
 Set-Mailbox pulicforward -ForwardingAddress $null
 
 After that, all the user messages will be forwarded to the mailbox MBXForward@domain.com

I hope this was your question.

Let us know if helped.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RFVDBAuthor Commented:
Hi,

Thanks for the quick detailed response. They are using the Exchange Online Plan1. Which is the first tier Exchange. However with Journaling, when I setup a Journal rule, I specify the Exchange Account I am Authenticating through "joe@domain.com" for "If the message is sent to or received from ..."

Then select * Journal the following messages..." I select "All Messages" and it gives me the following error.

"the JournalEmailAddress can only be a mail user, a mail contact or an external address."

This error comes up no matter whether I select External, Internal or All messages.

What's happening is the websites will use SMTP relay through smtp.office365.com port 587, authenticating through a valid Office 365 account. It will be from user@internaldomain.com to user@externaldomain.com, the external addresses will be random, depending on who fills out a form on the website.

If I'm supposed to use a valid account to authenticate through, how could I use a "mail user, a mail contact or an external address".

Tried using Mail Flow Transport Rules but it didn't seem to work.

Looking at your other method for SBS, I'm not as familiar as you are with Exchange PowerShell so I'm not exactly sure what all of those commands are doing to know that it will implement what I'm trying to do - want to make sure we're on the same page.

Thanks again.
0
David Paris VicenteSystems and Comunications  Administrator Commented:
Hi.

You can´t because you are not using an Enterprise Account, only this account can do some settings, like Journaling, Transport Rules etc...
As I mention before the Only to Accounts who can do some configurations are SBS and Enterprise.

Because you are not using an mail account from your exchange you cannot use Journaling, you are only relaying messages through Exchange Organization the only way is to create transport rules or Journaling SMTP connector, but because you don´t have an Account for that, as a possible solution, is to tell your App in the Web Server for every mail relayed to exchange also insert in BCC a exchange mailbox Account.

Or third party tools.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

RFVDBAuthor Commented:
Hi,

Thanks for the reply. Exchange Online Plan1 is the first tier of the Enterprise Plans, so it is an enterprise plan.

I ran into the Journaling issue/error above that I didn't know how to resolve - do you have an answer to that one by chance?

I was able to create transport rules no problem.
0
David Paris VicenteSystems and Comunications  Administrator Commented:
Can you show us the error?

The transport rule is Working?
0
RFVDBAuthor Commented:
Sorry. I'm no longer trying to solve this issue.

The transport rule did the trick for me.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.