cstephen100
asked on
issues setting up catch all for exchange 2003
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,";", nDomainPar t)
nNextAddress = InStr(nDomainPart+Len("@g* *****a.ie; "),strFixe dList,"SMT P:")
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.c om;"
Else
' @example.com is not the last name in the recipient list
strFixedList = "SMTP:g****mail@gmail.com; " & Right(strFixedList,Len(str FixedList) -nNextAddr ess+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,nNamePar t) & "SMTP:g***mail@gmail.com;"
Else
' @example.com is not the last name in the recipient list
strFixedList = Left(strFixedList,nNamePar t) & "SMTP:g****mail@gmail.com; " & Right(strFixedList,Len(str FixedList) -nNextAddr ess+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
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)
nDomainPart = InStr(LCase(strFixedList),
nNamePart = InStrRev(strFixedList,";",
nNextAddress = InStr(nDomainPart+Len("@g*
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.c
Else
' @example.com is not the last name in the recipient list
strFixedList = "SMTP:g****mail@gmail.com;
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,nNamePar
Else
' @example.com is not the last name in the recipient list
strFixedList = Left(strFixedList,nNamePar
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.