Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 453
  • Last Modified:

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
0
RFVDB
Asked:
RFVDB
  • 3
  • 3
1 Solution
 
David Paris VicenteCommented:
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
 
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 VicenteCommented:
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 VicenteCommented:
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

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now