Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SMTP Relay with Exchange, how to capture emails

Posted on 2014-09-05
7
Medium Priority
?
377 Views
Last Modified: 2016-06-13
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
Comment
Question by:RFVDB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 12

Accepted Solution

by:
David Paris Vicente earned 2000 total points
ID: 40307043
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
 

Author Comment

by:RFVDB
ID: 40307074
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
 
LVL 12

Expert Comment

by:David Paris Vicente
ID: 40309535
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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 

Author Comment

by:RFVDB
ID: 40369661
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
 
LVL 12

Expert Comment

by:David Paris Vicente
ID: 40370829
Can you show us the error?

The transport rule is Working?
0
 

Author Comment

by:RFVDB
ID: 40460093
Sorry. I'm no longer trying to solve this issue.

The transport rule did the trick for me.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question