Problem with exchange email policy race condition.

We are having an issue with the email address policy self resolving internal collisions by appending the number "2" to email addresses.
Basically what we do is new employees receive contacts for the GAL automatically. The user can then choose to create a user object or even get an exchange account via online self-provisioning site.
So our process deletes the contact object, then creates a user object. That user object is then mail-enabled.  At that moment the email address policy kicks in and adds a few addresses  ( [user]@[domain] [user]@excahnge.[domain] etc)
here is example code of how we sometimes do this manually for users that don't self-provision.
#remove contact
Get-ADObject -filter { cn -eq $user } -Server $script:dc | Remove-ADObject -Confirm:$false -Server $script:dc
#create new user object
New-ADUser -Name $user -SamAccountName $user -Enabled $true -ChangePasswordAtLogon $True  -UserPrincipalName $userPrincipalName -DisplayName $User_displayname -Path $ou -GivenName $userFirstName -Surname $userLastName -AccountPassword $Private -Server $script:dc
#mail enable user object
Enable-MailUser -identity $user -ExternalEmailAddress $externalAddress -Alias $user -domainController $script:dc
Now the problem seems to be that even thought the contact is deleted the address is still somewhere in the system because when the user is mail enabled their addresses look like this: [user]2@[domain] and [user]2@exchange.[domain]. it sticks 2s on all of
them
best guess is the policy sees the old address *somewhere* but rather than fail it just appends a 2 to avoid the collision and goes on it's merry way.  All the script lines run against the same DC and all the exchange servers point to one DC.
what is causing this and how do we stop it ?

I've put small sleeps in without help. I don't know how long it might be taking. I don't want to keep adding delays until the app appears to hang. Also this is a more recent phenomena, it used to work fine.
We did have some replication problems in the past but those were alleviated by using the -domaincontroller parameter and making sure all commands run on the same server. 
the weird thing is if it is replication I don't know to what. The object is indeed gone or I would get an "already exists" error when I create the user object. the server does not see any object but the address policy still sees the addresses somewhere.

Similar Messages

  • Problem with exchange email

    Hi, I just purchased an iPhone 3G. I setup my exchange email at the office. When I am connected to the Wi-Fi network at the office the email, calendar, and contacts will sync perfectly. Once I disconnect from the Wi-Fi, the email will sync just fine until I connect to another Wi-Fi network, or until the phone locks up (which happened yesterday after having the phone 3 days, extremely disappointing). Any advice?

    I've put small sleeps in without help. I don't know how long it might be taking. I don't want to keep adding delays until the app appears to hang. Also this is a more recent phenomena, it used to work fine.
    We did have some replication problems in the past but those were alleviated by using the -domaincontroller parameter and making sure all commands run on the same server. 
    the weird thing is if it is replication I don't know to what. The object is indeed gone or I would get an "already exists" error when I create the user object. the server does not see any object but the address policy still sees the addresses somewhere.

  • Problem with Exchange email in Yosemite

    My Exchange email account has two addresses associated with it. On the iPhone (6, iOS 8.1), it sees both of them, but with my upgrade to Yosemite, it sees only the emails with the address listed in Accounts. Incoming emails to the other address appear on the iPhone, but not on my MacBook Pro (Retina, mid 2012). There is no way to give another address in Accounts, and you cannot add an additional Exchange account with the same username. Does anybody have a solution?

    Terribly sorry for the long delay in replying (Work, Life, etc. BUSY).
    The send as option is set to "Account of selected mailbox". I set it to the flast@ account specifically yet the behavior does not change.
    Still not working as it should in Yosemite either.

  • What is the problem with this code ? Race condition??

    Guys,
    The idea behind the attached code is quite simple.
    I have a 2D parent array. First, I print a subset of this array into a table control (based on a sensor selection). Now, I want edit the numbers in the table. I need the changes to be reflected in the table and the parent 2D array. (In simple terms, this is like replacing the the edited array subset into the parent 2D array)
    The problem is when I change(edit) any entry in the table, the entry changes back to its original value. The change doesnt seem to be reflecting on the parent 2D array and the table. .
    Can anyone tell me where the problem is?
    Thanks
    Ravi
    Solved!
    Go to Solution.
    Attachments:
    Alarm threshold test.vi ‏14 KB

    I agree with Chris, here's an idea (of whatI think your code does):
    The case structure in your code was unnecessary, all the cases were the same so I removed them.
    The sequence structure was unnecessary.
    Ton
    Message Edited by TonP on 11-20-2008 07:52 PM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Alarm threshold test_BD.png ‏19 KB

  • HT1414 Since updating to iso6.0 I have had problems with my email exchange account syncing correctly - I keeps loosing connection with the server.

    Since updating to iso6.0 I have had problems with my email exchange account syncing correctly - I keeps loosing connection with the server.

    Are you losing the connection to iTunes on the iPad or the computer? You are saying that iTunes is updated. Of course iTunes is updated when you update the iOS software. That's a no brainer.
    If you mean that iTunes is updated on the computer, that has absolutely nothing whatsoever to do with downloading and updating apps on the iPad itself so changing the date on the iPad, signing in and out of the stores on the iPad .... Doing any of that on the iPad would have nothing to do with iTunes on your computer.
    If .... you have not been able to connect to the iTunes or app stores at all on the iPad - try this ...
    Settings>Privacy>Location Services>System Services (swipe to the bottom of the page to find this)>Location Based iAds>Off.
    If the downloads are stalled or "waiting" - try these suggestions.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If you can't connect at all - you can also try rebooting your router. Unplug it from power for about 30 seconds and then plug it in again.

  • Problem with IMAP email in E52

    Hello,
    I have that problem with the email on my E52 v034.001:
    I am using my personal email (Gmail via IMAP) and it is working fine, on this one I am receiving few emails a day.
    When I am trying to set up my company's email, all the settings are ok, receives emails and then just hangs up, frozes. Sometimes even for like 10 miutes! I can always click on "hang up" button, and it goes back to home screen, but then again it ignores me when i want to go to menu or email for at least 10-15minutes. Then I'm going back to email when it's fine, opening it, it connects and then after few seconds crashes again. Every time I go near email it crashes. I went to settings, i wanted to get my companys email preview on  to my homescreen, i just higlighted "email" field and it crashed.
    Tested couple of different emails (POP3, IMAP, Exchange) and all of them are working fine. It's this particular one which i am having problems with, and i have no idea why is it happening. My workmates are using blackberries and iphones and it's working fine for them.
    Did any of you hear about something like that?

    I can confirm that this bug was fixed with version 054.003 (15-Jan-2011).

  • Problem with exchange on my Iphone6

    I have tryed everything possible but still problem with Exchange on my Iphone6.

    What problem? You need to provide more information in order for us to help you.

  • I'm having problems with excessive email usage on my iphone 4/ios 7. Just noticed that (settings/usage) it was using 900  mb. I deleted all my mail, deleted the mail account, and it still says it's using 661 mb. My ipad uses a fraction of that.

    I'm having problems with excessive email usage on my iphone 4/ios 7. Just noticed that it (settings/usage) was using 900+ mb. I deleted all my mail, deleted the mail account, turned the phone off and back on, downloaded any remaining mail on the server to Outlook on my computer, and it still says it's using 661 mb. My ipad uses a fraction of that.
    Background: I recently (December) bought an ipad and set up icloud for contacts and calendar, but NOT mail. My email provider is Verizon. I use computer, iphone, and ipad to check my email; eventually I download it from the server using Outlook on the computer and then delete any remaining emails from the phone and ipad. I can't find info on this problem anywhere.

    Howdy there COUGAR444,
    It sounds like your iPad all of a sudden seems to be restarting out of no where. If you haven't called AppleCare yet, I would start with quitting either the app that seems to be causing the issue, or all the apps if a single doesn't seem to be the culprit. 
    iOS: Force an app to close
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the device and test the issue again:
    iOS: Turning off and on (restarting) and resetting
    If the issue persists, backup your device to iTunes, then restore it as new and verify that it works. 
    How to erase your iOS device and then set it up as a new device or restore it from backups
    If it does, then restore your backup to either verify it still works and the software just needed reinstalled, or isolate the issue to the backup file itself. 
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Print problem with Yahoo email

    Ever since upgrading to Safari Version 7.0.1 (9537.73.11), I have had several different problems with printing emails.  For the time being, let me ask here about only my AT&T Yahoo mail.
    Here is the description of the problem in Yahoo.  When I pull down the “Actions” menu to “Print Message,” I get this dialog box:
                      Print Error
                      There was a problem printing, most likely caused by a pop-up blocker. Please click Try Again.
    Try Again
    So I click the button labeled “Try Again,” and Safari opens the email in a new window with a “Print” tool in the upper left corner. 
    I click the “Print” tool.  With multi-page emails, I like printing on both sides.  I choose either,
    Print Two-sided, or
    Print either odd or even pages.
    With the former option Safari prints one page of the email and stalls.  With the latter Safari prints the whole series of selected pages and stalls.  My printer (HP LaserJet Professional P1102w) refuses to print any more pages.  I have to go into my printer’s application and stop the print job.  Then I have to turn off the printer, wait a while for the machine to re-set, and turn it back on.  Then I can print the remaining page or pages.
    That’s inefficient. Is there some remedy to get Safari to print emails in Yahoo straight through?

    Problems like that with Firefox printing look like they are fixed in Firefox 4.

  • Has anyone had a problem with Draft Emails getting sent with Mac OS 10.8.2? It just happened to me and sent a few drafts out to a potential employer I planned on sending out torrow.

    Has anyone had a problem with Draft Emails getting sent with Mac OS 10.8.2? It just happened to me and sent a few drafts out to a potential employer I planned on sending out tomorrow.

    Hi, one question & one suggestion...
    What possible things are connected at home but not at the store, inlude every cable, etc.
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • Contacts do not sync up to iCloud with Exchange email on phone

    Contacts do not sync up to iCloud with Exchange email on phone.

    Contacts Troubleshooting
    Contacts - Troubleshooting iCloud Contacts

  • Ongoing problem with newsletter-eMail-actions: CF is hanging

    Hi forum-members, we have an ongoing problem with
    newsletter-eMail-actions.
    We use CFMX 7.02 Entperprise on Win 2003 Server. (between
    100.000 and 200.000 receivers).
    The deep links into the shops are of the following structure:
    http://www.xyz.com/shop.cfm?ml=171,92560,21,24,1,nhs1381639,03081,nsletter,03081-138163966 958-nl-3eb938532a4be8b9e94cb5002154789e
    In the highest hours we have between 80 and 200 current
    users/connections
    per second. We are running two HP 380, 3 GB, CF-Servers in a
    static loadsharing.
    From time to time CF gets unresponsive and I don't know why.
    We use fusion reactor and there are no long running requests
    from
    what I have seen, when CF is hanging. There is nothing in the
    logfiles which is obvious to what it could
    be related what is casing it. Does anybody have any idea what
    else to look into ? Uwe: confused;

    Direct link to http://www.imgburn.com/index.php?act=download (send the author a PayPal donation if you like his program)
    I use Imgburn for ALL of my disc writing... backup files/folders as well as Encore output

  • Problem with push email key and adding mailbox

    There seems to be a strange problem with the email key. I added my gmail account initially but then i deleted it. I don't see any mailbox in the email setup, but i still receive notification on recieving a new email. But when I press the push email key on the home screen to open my inbox, it takes me to the email setup. I tried adding a mailbox, but when i select "add mailbox" the screen becomes whitish and nothing happens.
    I need to add my gmail account again. Please help me with this. Thanks!

    1. Predictive text can only be enabled in alphanumeric keypad, but from testing the QuickOffice 6 on the 5800 (same app used for both phones), It cannot use predictive text. Its not in the typing options. Furthermore, if you would be using the qwerty keyboard on the mini, predictive text AFAIK cannot be used.
    2. If using "vodaphone live" is giving an error in ALL applications, then it is not the fault of your phone but of the "vodaphone live" settings not being compatible to your phone. I assumed that it was only for email that it did not work. A similar case was one on T-mobile, wherein the T-mobile GPRS settings were incorrect which leads to the same issue as you do. The fix was to configure GPRS settings manually. You can also take it to vodaphone for them to configure it themselves.
    3. As I said, unless we find out what is different from the files that can play and cannot I cannot help you. Its not like I can check the files themselves. You can try attaching two each of the working files and non working files here for some of us to test on our phones.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • I have upgraded to OS X mavericks and there is now a problem with my email. I have discovered several emails no longer contain the original message instead another completely different message is appearing but under the name of original sender. Any ideas?

    I have upgraded to OS X mavericks and there is now a problem with my email. I have discovered several emails no longer contain the original message instead another completely different message is appearing but under the name of original sender. Any ideas?

    With the account mailbox selected, Mailbox menu, Rebuild.

  • Problem with Thunderbird email: When I send email using a mailing list, with my email included in the list, the message shows up in my Sent list and others rece

    Problem with Thunderbird email:
    When I send email using a mailing list, with my email included in the list, the message shows up in my Sent list and others receive it but it does not come to my email Inbox. The same problem occurs when I send the email to the mailing list addresses individually. When I send a simple test message to myself, I do receive it in my Inbox. Can you help me??
    Bob Greenman

    Are you using either cc or bcc? Is googlemail involved? Some email providers suppress cc's and bcc's to oneself since you will have a copy in your Sent folder.

Maybe you are looking for

  • Why did the default save location use the users appdata location and not create an Adobe Premiere Folder in documents.

    I have a user that started working on a premiere pro project 2 weeks ago.  She then received an update from adobe which she ran and the next day the premiere pro project she was working on was gone.  After I looked at found that the save location was

  • BPM Studio and 64bit OS (Win7)

    Hello, I'm experiencing problems with UI while running BPM Studio on 64bit OS (Win7 Ult). I know that installation file is for Win 32bit, but certification matrix says Vista x64 is supported (Win7 not, but dont see too big difference). Problems are w

  • How to changed my security question

    hi good morning, i need help pls. i would like to changed my security question  pls..

  • Itunes in I movie 08

    can someone help me??? I cant see I tunes in imovie.....it said i needed to open itunes but I did and it still wont upload...arrrgggh

  • About utl_file

    Hi, I have one excel file as follows; Insured               Policy #     Attn to               Fax Spring Industries, Inc. WC-000008-03     Juengermann, Allen      (805) 644-1842 I want read only policy # from this file to check the policy number is