How to forward e-mail messages based on sender's OU?

Hey guys,
In Exchange 2010, I'm trying to forward every e-mail from X sender to the corresponding department. In order to do this, I have to get that user's OU and then send it to [email protected]
I already have all the mailboxes created, I just need to know how to add a rule that looks at a sender's OU and forwards the message to the right e-mail address.
Many thanks in advance!
Best,
Alex

Hi,
I'm afraid we can't create a transport rule to filter user based on the user's OU.
To work around this issue, you can use the following command to get the organizational unit first, then you find the right e-mail address which you want to forward to. After that, you can create a transport rule to forward these messages from X sender to
this specific email address.
Get-Mailbox -Identity mailbox | fl Name, OrganizationalUnit
Best regards,
Belinda
Belinda Ma
TechNet Community Support

Similar Messages

  • How do I transfer Mail Message Rules between Macs?

    How do I transfer Mail Message rules from an iMac running OS X 10.6.8 to an iMac running OS X 10.8.5? The names of the plist files don't match.

    The easiest way to accomplish this is to *create a new admin account* in the System Preferences/Accounts Pref Pane. Once the new admin account *(make sure the Allow user to administer this computer is checked in the new account)* is set up and performing like it should (by logging into it and verifying that you can actually administer the computer), change your primary account (the account that owns your emails) to a standard account by un-checking the *Allow user to administer this computer* in the Accounts Pref Pane. You can still administer the computer with your standard account, you will have to provide your admin login and password in the Authentication dialog boxes.
    Hope this helps.
    D.
    Message was edited by: D. Fraser

  • How to Forward Apple Mail

    Can you tell me how to forward apple mail? I need a more powerful junk/spam screener that Yahoo.com provides....
    <E-mail Edited by Host>

    Not sure I understand correctly:
    Apple Mail is a desktop email client; Yahoo is an online email service.
    Is your problem that Apple Mail does not filter junk mail well enough? And you want to open your Apple Mail in Yahoo Mail?
    Or are you currently getting your Yahoo mail forwarded to Apple Mail and opening it on Apple Mail?

  • Cannot Create New/Repy To/Forward e-Mail Messages

    I have an iPhone 3G with the latest version of OS 4.x and about a week or so ago, the mail app stopped having the functionality to create new e-mails when I tap on the envelop in the bottom right of the screen; the icon highlights for a second but no new email screen opens up. I also cannot use the arrows to reply to or forward an already open e-mail. If I am in the Contacts app and select the button to send an e-mail, it opens the mail app, but only to the inbox not a new e-mail screen.
    I have two e-mail accounts on this phone -- one is for gmail and one is a work e-mail account set up through Exchange; I am receiving e-mail and my work contacts and calendar just fine, but I am increasingly frustrated that I cannot send e-mail since that is 45% of what I use the phone for.
    Please help!

    Hi,
    I'm afraid we can't create a transport rule to filter user based on the user's OU.
    To work around this issue, you can use the following command to get the organizational unit first, then you find the right e-mail address which you want to forward to. After that, you can create a transport rule to forward these messages from X sender to
    this specific email address.
    Get-Mailbox -Identity mailbox | fl Name, OrganizationalUnit
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Rewrite rules: how to forward all mails to the specific channel?

    I have written an anti-virus plugin using the MTA SDK. Now I want to forward all the incoming messages to the channel, which is 'guarded' by my program (so my program is the channel's master).
    I've added following to the end of imta.cnf, according to MTA SDK example:
    ! kav
    x-kav master_debug logging
    x-kav-daemon
    And at the beginning of imta.cnf:
    avp.ru $U%avp.ru@x-kav-daemon$Nx-kav
    avp.ru $[email protected]
    In this configuration, any incoming mail just miss my channel completely.
    I changed it to this one:
    $* $U%avp.ru@x-kav-daemon$Nx-kav
    <2nd line removed>
    in this case, mail is sent to our channel, but has host part '$*', and the message is failed to enqueue.
    Also, it seems like this reqrite entry conflicts with ours:
    ! Rules to select local users
    $* $A$E$F$U%$H$V$[email protected]
    ultra5.avp.ru $U%$[email protected]
    avp.ru $U%$[email protected]
    As I understand, according to these rules, everything goes to @avp.ru or @ultra5.avp.ru goes to the local delivery channel ultra5.avp.ru. This is not what I want.
    So, the questions are:
    1. How to move all the messages (or just messages. which matched the specific domain) into my channel?
    2. How to configure rewrite rules, so the message can leave the channel after processing, and continue the routing?

    Still doesn't work.
    We've downloaded and installed patch 116568-52, and configured the channels:
    tcp_local aliasdetourhost tcp_scan smtp mx single_sys remotehost inner switchchannel identnonenumeric subdirs 20 maxjobs 7 pool SMTP_POOL maytlsserver maysaslserver saslswitchchannel tcp_auth missingrecipientpolicy 0
    tcp-daemon
    ! tcp_intranet
    tcp_intranet aliasdetourhost tcp_scan smtp mx single_sys subdirs 20 dequeue_removeroute maxjobs 7 pool SMTP_POOL maytlsserver allowswitchchannel saslswitchchannel tcp_auth missingrecipientpolicy 4 tcp_intranet-daemon
    tcp_scan smtp mx single_sys subdirs 20 noreverse maxjobs 7 pool SMTP_POOL dequeue_removeroute
    tcp_scan
    After sending the message, it silently goes to tcp_scan channel, and handled by channel master program. After that the message stays in tcp_scan queue forever, with HELD extension.
    Our channel master enqueues the processed message into the channel where it dequeues it, so the message seems to be looped. Here is the message:
    t;1093881341
    p;3
    *;4
    u;mailsrv
    c;tcp_scan
    s;tcp_scan.ultra5.avp.ru
    n;f
    h;<[email protected]>
    m;[email protected]
    d;20
    j;rfc822
    f;[email protected]
    @tcp_scan:[email protected]
    ..Boundary_(ID_+ko348xG8vRKcadifuDhJg)
    Received: from tcp_scan.ultra5.avp.ru by ultra5.avp.ru
    (Sun Java System Messaging Server 6.1 HotFix 0.01 (built Jun 24 2004))
    id <[email protected]> for [email protected] (ORCPT [email protected]
    30 Aug 2004 19:55:41 +0400 (MSD)
    Received: from tcp_scan.ultra5.avp.ru by ultra5.avp.ru
    (Sun Java System Messaging Server 6.1 HotFix 0.01 (built Jun 24 2004))
    id <[email protected]> for [email protected] (ORCPT [email protected]
    30 Aug 2004 19:55:41 +0400 (MSD)
    Received: from tcp_scan.ultra5.avp.ru by ultra5.avp.ru
    (Sun Java System Messaging Server 6.1 HotFix 0.01 (built Jun 24 2004))
    id <[email protected]> for [email protected] (ORCPT [email protected]
    30 Aug 2004 19:55:41 +0400 (MSD)
    Received: from tcp_scan.ultra5.avp.ru by ultra5.avp.ru
    (Sun Java System Messaging Server 6.1 HotFix 0.01 (built Jun 24 2004))
    id <[email protected]> for [email protected] (ORCPT [email protected]
    30 Aug 2004 19:55:41 +0400 (MSD)
    Received: from tcp_scan.ultra5.avp.ru by ultra5.avp.ru
    (Sun Java System Messaging Server 6.1 HotFix 0.01 (built Jun 24 2004))
    id <[email protected]> for [email protected] (ORCPT [email protected]
    30 Aug 2004 19:55:40 +0400 (MSD)
    Received: from tcp_scan.ultra5.avp.ru by ultra5.avp.ru
    (Sun Java System Messaging Server 6.1 HotFix 0.01 (built Jun 24 2004))
    id <[email protected]> for [email protected] (ORCPT [email protected]
    30 Aug 2004 19:55:40 +0400 (MSD)
    Received: from tcp_scan.ultra5.avp.ru by ultra5.avp.ru
    (Sun Java System Messaging Server 6.1 HotFix 0.01 (built Jun 24 2004))
    id <[email protected]> for [email protected] (ORCPT [email protected]
    30 Aug 2004 19:55:40 +0400 (MSD)
    Received: from tcp_scan.ultra5.avp.ru by ultra5.avp.ru
    (Sun Java System Messaging Server 6.1 HotFix 0.01 (built Jun 24 2004))
    id <[email protected]> for [email protected] (ORCPT [email protected]
    30 Aug 2004 19:55:40 +0400 (MSD)
    Received: from tcp_scan.ultra5.avp.ru by ultra5.avp.ru
    (Sun Java System Messaging Server 6.1 HotFix 0.01 (built Jun 24 2004))
    id <[email protected]> for [email protected] (ORCPT [email protected]
    30 Aug 2004 19:55:40 +0400 (MSD)
    Received: from tcp_scan.ultra5.avp.ru by ultra5.avp.ru
    (Sun Java System Messaging Server 6.1 HotFix 0.01 (built Jun 24 2004))
    id <[email protected]> for [email protected] (ORCPT [email protected]
    30 Aug 2004 19:55:40 +0400 (MSD)
    Received: from tcp_scan.ultra5.avp.ru by ultra5.avp.ru
    (Sun Java System Messaging Server 6.1 HotFix 0.01 (built Jun 24 2004))
    id <[email protected]> for [email protected] (ORCPT [email protected]
    30 Aug 2004 19:55:40 +0400 (MSD)
    Received: from localhost.localdomain ([172.16.0.35])
    by ultra5.avp.ru (Sun Java System Messaging Server 6.1 HotFix 0.01 (bu
    24 2004)) with ESMTP id <[email protected]> for test@avp.
    (ORCPT [email protected]); Mon, 30 Aug 2004 19:55:39 +0400 (MSD)
    Content-return: allowed
    Date: Mon, 30 Aug 2004 19:55:39 +0400 (MSD)
    Date-warning: Date header was inserted by ultra5.avp.ru
    From: [email protected]
    Subject: sent on Mon Aug 30 19:58:29 2004
    To: Undisclosed recipients: ;
    Message-id: <[email protected]>
    ..Boundary_(ID_+ko348xG8vRKcadifuDhJg)
    How to avoid this loop? Should our master enqueue the processed messages into another channel? If yes, what channel should we enqueue to? If no, how to avoid this loop?

  • Hi new 3Gs How to forward G-Mail?

    Hi just got my first smart phone a 3Gs I have access to my g-mail account and I can't figure out how to forward it to another g-mail account.

    You can setup a post master account for this http://support.microsoft.com/kb/313832 To designate who is to get Exchange Server non-delivery reports (NDRs), use Exchange System Manager (ESM) to set the desired non-delivery report recipient: 1. In ESM, navigate
    to Servers -> Protocols -> SMTP. 2. Right click Default SMTP Queue, select Properties. 3. Go to the Messages tab. 4. In the field titled Send Copy of Non-Delivery Report to:, enter a valid SMTP email
    Blog: http://theinfraguys.com
    Follow me at Facebook
    The Infra Guys Facebook Page
    Please remember to click Mark as Answer on the answer if it helps you in anyway

  • In search of assistance learning how to modify the mail message from an out of the box SP2010 approval workflow.

    So, I have found the article
    http://punaro.com/2012/01/derek/modifying-a-sharepoint-2010-workflow-email/comment-page-1/ which appears to walk through the process of modifying an out of the box workflow's mail message.
    However, there is a basic problem that I run into before I get started.
    I am logged into the system as a regular user (ie not a farm admin, etc.).
    I do, however, have full control on the site on which I am working.
    I create a custom list.
    I create a simple one step approval - sharepoint 2010 out of the box workflow.
    I start SharePoint designer and give it the URL of the list. It opens up and I see the various objects on the left side of the screen.
    I click right on the Workflows object - which is where the article says I will find the ability to copy and modify the workflow.
    All I see is "open", "open in a new tab" and "Pin".
    I selecdt open in a new tab - and I get a blank screen labeled workflows that says "There are no items to show in this view".
    So, I click on Lists and Libraries, then on the name of my custom list.
    When the list displays, the Workflows section of the page has a "Modified Workflow" displayed.
    When I right click on it, no menu is shown. When I click on the modified workflow, I get the workflow settings page for that workflow.
    I am trying to figure out how to create the copy of the workflow so that I can modify one of the mail messages in SharePoint designer.
    Is there someone who has some advice on how to find this copy and modify option?  Or perhaps a web site, web forum, article series, or book covering the topic?
    Thank you! 

    Hi lwvirden,
    According to your description, my understanding is that you want to modify the OOB approval workflow in SharePoint Designer.
    After opening the site in SharePoint Designer, just click Workflows in the left panel and then the workflows in the site will load in the right part.
    If you want to copy and modify the OOB approval workflow, then you need to right the approval workflow
    Approval – SharePoint 2010 under Globally Reusable Workflow. After that you will see the
    Copy and Modify button.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How can I save mail messages on iPad

    I (strictly, my wife) have just bought a WiFi-only iPad to replace an ageing MacBook, and I also have an iMac.  I have a need to store and organize a limited number of Mail messages in the iPad, such that they are available in the future when I do not have internet access - i.e. while travelling.  These are varied, but typically contain reference information, reservation details, receipts, directions, etc.
    Previously, this was easy to do with the MacBook.  I set up our GMail account as POP3, and filed such messages as we needed in as many Filed Mail mailboxes as I wanted.  Unfortunately, if you set up a Mail account as POP on the iPad, you can't define Filed Mail mailboxes.  And if you set up the account as IMAP, you don't have access to your filed mail when not connected to the internet.  So you're damned if you do, and damned if you don't.
    So here's the question.  Is there any organised way to save messages permanently on the iPad?  And any attachments need to be kept as well.  While strictly they no longer need to be in Mail format (i.e. can't be forwarded or replied to), that would be a less convenient approach, and those all-important attachments would have to be dealt with.  But I am willing to be flexible.
    And before anyone says that POP will not work with multiple devices, GMail POP has a feature that allows the same email to be downloaded to multiple devices as well as being held on the server if required, and all sent emails are also echoed back to all devices (the "recent" feature).  This has worked fantastically up to now.
    Any help would be appreciated.

    Do you need to be able to initiate this entirely from the iPad, or would it be acceptable to have to use one of your Macs when you save one of the limited number of messages? If involving a Mac would be acceptable, I can see ways to work around the iPad's lack of local mailbox storage.
    You could use one of the various free cloud storage services that allow general file storage and local retention on the iPad (for example, Dropbox or Dump Truck, but not iCloud).
    For Dropbox, you would make a folder for this cluster of saved messages inside Dropbix. For each message you want to save, create a folder inside that cluster folder, do a "Save As..." in Mac Mail.app for the text body, then a "Save Attachments..." if appropriate. (The inner folder wouldn't be strictly necessary for messages without attachments, but I suggest it for consistency.)
    The key part is to open Dropbox on the iPad and mark the message and attachments as favorites (starred). That causes Dropbox to preload them on the iPad and retain them there until they are unstarred (lose favor).
    You could probably do something similar with Evernote and favorites.

  • How can I save mail messages to my computer and not my mail program

    My mail program seems to be slow.  I'm not sure why.  I get the spinning ball frequently.  I need to save mail messages sometimes for a few years and there are hundreds of emails. Is it better to save them on my computer than my mail program?  I may need to retrieve them at some other time so they need to be readable.  Is that possible?
    I'm using OS X 10.9.4. I have a 3.06 GHz processor and 12 GB of memory.  Thanks

    You can select to export a folder to save as a .mbox file. This file would need to be imported if you wanted to view the messages.
    Select mailbox (folder)
    Under Mailbox in the Menu bar select Export Mailbox...
    You might also want to check out the demo for EagleFiler by the author for SpamSieve. You could view and search the messages archived in EagleFiler.
    http://c-command.com/eaglefiler/
    Regarding Mail being slow....
    Is it only Mail that is slow?  How much free space on your drive? Use Disk Utility to find available space.

  • How do I keep Mail messages from vanishing?

    I don't use  iCloud for much, but I have sent a few Mail messages from my iPad (iCloud address) and I have received a few at that address that I need to be able to view on my Mac and to have available for viewing on my iPad. The received messages consistently disappear after a few weeks. The most recent one that I forwarded to my iCloud address from my desktop machine appeared in the list of messages (already a very short list due to the vanishing act) for a nanosecond when I first opened Mail on my iPad, and then vanished. Only a single message is still there out of maybe a dozen messages that ought to be there.
    The iPad is running the most recent iOS version. I use Snow Leopard most of the time on my Mac, but I boot into Mountain Lion when I have to: I sync the iPad in Mountain Lion. I access iCloud through my browser when I'm in Snow Leopard.
    What do I have to set or change to make iCloud e-mail at least minimally useful? I've looked at the settings, and don't see anything obvious. My regular e-mail accounts are configured to never automatically be deleted from the server, but I don't see a way to do that with iCloud mail.

    Ok, just discovered it only does this in split-keyboard mode.

  • How to delete empty mail messages in my Ipad2

    I am receiveng empty mail messages in IPad2 and can not select them for deletion. They have no headers, no from or to, nothing? Any clues on how to select them? Edit in mail does not work either.

    Try turning the account off and on : Settings > Mail, Contacts, Calendars , then tap the account on the right, slide Mail to 'off', exit settings and go back into the Mail app, and then go back to Settings and slide Mail back to 'on'

  • How do I delete mail messages without opening?

    I'm using Mountain Lion...before ML, when I had a mail message in my Inbox that I suspected might contain malicious content I could use multiple selection to delete it along with another email that was currently in the reading pane but no longer wanted. Mail would not show the malicious email in the reading pane after selection. Now whenever I select a message it's always opened in the reading pane. How do I select a message and delete it without opening it? This is a dangerous omission. Thanks.

    James,
    Here's a recent thread on the subject that may be of interest.
    https://discussions.apple.com/message/19300450#19300450
    Matt

  • How to import old mail messages

    Hi all
    I have a new iMac. I have setup all my email accounts already. However I have about 2000 old email messages saved on two external hard drives ( through backups)
    How can I import and seamlessly integrate the old mail messages into the new iMac ?
    Thanks

    The normal method depends upon how you backed up your old mail. If you backed up the entire Mail folder and its content then use Mail's Import Mail option under the File menu. Select the Apple Mail option then click on the OK button. Navigate in the File Open dialog to the /Mail/Mailboxes/ folder. Select and click on the Open button. Check the mailboxes you wish to import then click on the Import button. Your mailboxes will appear in Mail's sidebar under the Imported Mail heading.

  • How do you stop mail messages from poping up in ipad

    When I turn on my Ipad 3, i receive mail messages in the center of the screen of all new messages.  you have to manually tap each screen in the middle of the screen to continue working.  I changed the setting in general mail to manually fetch the mail, however the messages still pop up.  This is not part of the notifications screen that you can pull down from the top of the screen.  Any suggestions
    Thanks

    Re-visit Settings/Notifications/Mail. It is probably set to "Alerts" which require an action before they are removed. Set it to Banners which go away on their own or None to remove them completely.

  • How to open multiple mail messages in their own windows

    All:
    Anyone know of a keyboard command to open several Mail messages in their own windows? For example, I can't highlight all messages in the Inbox and then double click one of them to open them all in separate windows.
    Surprisingly, Mail lacks an Open... command.
    TIA,
    Mike
      Mac OS X (10.4.4)  

    Just select multiple messages and hit Return.

Maybe you are looking for