We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

issues setting up catch all for exchange 2003

cstephen100
cstephen100 asked
on
Medium Priority
320 Views
Last Modified: 2012-05-06
Hi

I am having a small prob with setting up catch all with exchange.
I have created scripts, however when i the program was intiated emails stopped being delivered to mailboxes.

********************
'
'  Change any @example.com recipient(s) to bob@company.com
'
Function FixupRecipList(strList)
  On Error Resume Next
  Dim strFixedList
  Dim nDomainPart
  Dim nNamePart
  Dim nNextAddress
  strFixedList = strList
  While (InStr(LCase(strFixedList),"@g******a.ie"))
    nDomainPart = InStr(LCase(strFixedList),"@g******a.ie")
    nNamePart = InStrRev(strFixedList,";",nDomainPart)
    nNextAddress = InStr(nDomainPart+Len("@g******a.ie;"),strFixedList,"SMTP:")
    If (0 = nNamePart) Then
      ' @example.com is first name in recipient list
      If (0 = nNextAddress) Then
        ' @example.com is the last name in the recipient list
        strFixedList = "SMTP:g*******mail@gmail.com;"
      Else
        ' @example.com is not the last name in the recipient list
        strFixedList = "SMTP:g****mail@gmail.com;" & Right(strFixedList,Len(strFixedList)-nNextAddress+1)
      End If
    Else
      ' @example.com is not the first name in recipient list
      If (0 = nNextAddress) Then
        ' @example.com is the last name in the recipient list
        strFixedList = Left(strFixedList,nNamePart) & "SMTP:g***mail@gmail.com;"
      Else
        ' @example.com is not the last name in the recipient list
        strFixedList = Left(strFixedList,nNamePart) & "SMTP:g****mail@gmail.com;" & Right(strFixedList,Len(strFixedList)-nNextAddress+1)
      End If
    End If
  Wend
*********************************

I added in emails aboce, it mentioned that delivery address needs to be differnent domain that internal domain.  So I created a gmail account for this, and forwarded that back to internal mailbox.
Is there something i am missing?
Thanks
STephen
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2008
Commented:
Don't forward it to an external address - create a new FAKE address on the inside, user@catchall.example.com for instance

Add it to the recipient policy, add it to a single user and rejig your catchall script

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.