• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 621
  • Last Modified:

exchange 2007 invalid headers

Hi experts i am trying to increase the number of header errors my server will accept  i cannot get this command to run properlyt what am i doing wrong.
the server name is Ambered-server and the domain  name is ambered.local please help
i am runneing the commnand in power shell as admin.
her is a snapshot of the powershell text.

[PS] C:\Windows\System32>Set-ReceiveConnector -Identity ($Env:computername + "\W
indows SBS Fax Sharepoint Receive " + $Env:computername) -MaxProtocolErrors 500

WARNING: The command completed successfully but no settings of
'AMBERED-SERVER\Windows SBS Fax Sharepoint Receive AMBERED-SERVER' have been
modified.
[PS] C:\Windows\System32>Stop-Service pop3connector
[PS] C:\Windows\System32>Restart-Service -force MSExchangeTransportStart-Service
 pop3connector
Restart-Service : A parameter cannot be found that matches parameter name 'pop3
connector'.
At line:1 char:16
+ Restart-Service  <<<< -force MSExchangeTransportStart-Service pop3connector
[PS] C:\Windows\System32>
[PS] C:\Windows\System32>Set-ReceiveConnector -Identity ($Env:amber-server + "\W
indows SBS Fax Sharepoint Receive " + $Env:amber-server) -MaxProtocolErrors 500

You must provide a value expression on the right-hand side of the '-' operator.
At line:1 char:44
+ Set-ReceiveConnector -Identity ($Env:amber-s <<<< erver + "\Windows SBS Fax S
harepoint Receive " + $Env:amber-server) -MaxProtocolErrors 500
[PS] C:\Windows\System32>Stop-Service pop3connector
[PS] C:\Windows\System32>Restart-Service -force MSExchangeTransportStart-Service
 pop3connector
Restart-Service : A parameter cannot be found that matches parameter name 'pop3
connector'.
At line:1 char:16
+ Restart-Service  <<<< -force MSExchangeTransportStart-Service pop3connector
[PS] C:\Windows\System32>
[PS] C:\Windows\System32>Set-ReceiveConnector -Identity ($Env: amber-server + "\
Windows SBS Fax Sharepoint Receive " + $Env: amber-server) -MaxProtocolErrors 50
0
Unexpected token 'amber-server' in expression or statement.
At line:1 char:51
+ Set-ReceiveConnector -Identity ($Env: amber-server  <<<< + "\Windows SBS Fax
Sharepoint Receive " + $Env: amber-server) -MaxProtocolErrors 500
[PS] C:\Windows\System32>Stop-Service pop3connector
[PS] C:\Windows\System32>Restart-Service -force MSExchangeTransportStart-Service
 pop3connector
Restart-Service : A parameter cannot be found that matches parameter name 'pop3
connector'.
At line:1 char:16
+ Restart-Service  <<<< -force MSExchangeTransportStart-Service pop3connector
[PS] C:\Windows\System32>Set-ReceiveConnector -Identity ($Env: amber-server + "\
Windows SBS Fax Sharepoint Receive " + $Env: amber-server) -MaxProtocolErrors 50
0
Unexpected token 'amber-server' in expression or statement.
At line:1 char:51
+ Set-ReceiveConnector -Identity ($Env: amber-server  <<<< + "\Windows SBS Fax
Sharepoint Receive " + $Env: amber-server) -MaxProtocolErrors 500
[PS] C:\Windows\System32>Set-ReceiveConnector -Identity ($Env: amber-server+ "\W
indows SBS Fax Sharepoint Receive " + $Env: amber-server) -MaxProtocolErrors 500

Unexpected token 'amber-server+' in expression or statement.
At line:1 char:52
+ Set-ReceiveConnector -Identity ($Env: amber-server+  <<<< "\Windows SBS Fax S
harepoint Receive " + $Env: amber-server) -MaxProtocolErrors 500
[PS] C:\Windows\System32>Set-ReceiveConnector -Identity ($Env: amber-server + \W
indows SBS Fax Sharepoint Receive " + $Env: amber-server) -MaxProtocolErrors 500

Unexpected token 'amber-server' in expression or statement.
At line:1 char:51
+ Set-ReceiveConnector -Identity ($Env: amber-server  <<<< + \Windows SBS Fax S
harepoint Receive " + $Env: amber-server) -MaxProtocolErrors 500
[PS] C:\Windows\System32>Set-ReceiveConnector -Identity ($Env: ambered-server +
\Windows SBS Fax Sharepoint Receive " + $Env: amber-server) -MaxProtocolErrors 5
00
Unexpected token 'ambered-server' in expression or statement.
At line:1 char:53
+ Set-ReceiveConnector -Identity ($Env: ambered-server  <<<< + \Windows SBS Fax
 Sharepoint Receive " + $Env: amber-server) -MaxProtocolErrors 500
[PS] C:\Windows\System32>Set-ReceiveConnector -Identity ($Env: ambered-server.am
bered.local + \Windows SBS Fax Sharepoint Receive " + $Env: amber-server) -MaxPr
otocolErrors 500
Unexpected token 'ambered-server.ambered.local' in expression or statement.
At line:1 char:67
+ Set-ReceiveConnector -Identity ($Env: ambered-server.ambered.local  <<<< + \W
indows SBS Fax Sharepoint Receive " + $Env: amber-server) -MaxProtocolErrors 50
0
[PS] C:\Windows\System32>Set-ReceiveConnector -Identity ($Env: ambered-server.am
bered.local + \Windows SBS Fax Sharepoint Receive " + $Env: ambered-server.amber
ed.local) -MaxProtocolErrors 500
Unexpected token 'ambered-server.ambered.local' in expression or statement.
At line:1 char:67
+ Set-ReceiveConnector -Identity ($Env: ambered-server.ambered.local  <<<< + \W
indows SBS Fax Sharepoint Receive " + $Env: ambered-server.ambered.local) -MaxP
rotocolErrors 500
[PS] C:\Windows\System32>Set-ReceiveConnector -Identity ($Env: ambered-server +
\Windows SBS Fax Sharepoint Receive " + $Env: ambered-server) -MaxProtocolErrors
 500
Unexpected token 'ambered-server' in expression or statement.
At line:1 char:53
+ Set-ReceiveConnector -Identity ($Env: ambered-server  <<<< + \Windows SBS Fax
 Sharepoint Receive " + $Env: ambered-server) -MaxProtocolErrors 500
[PS] C:\Windows\System32>



pic of txt
0
fessiambre
Asked:
fessiambre
  • 4
  • 3
1 Solution
 
GusGallowsCommented:
Well for starters, you have merged two commands to one line so Powershell is confused.
Change the following:
Restart-Service -force MSExchangeTransportStart-Service pop3connector
to:
Restart-Service -force MSExchangeTransport
Start-Service pop3connector

Try that and lets see if breaks beyond that.

Also, the first message is just letting you know that no changes were made. This is usually due to the settings you gave it already being applied.
0
 
GusGallowsCommented:
Also, further in your script, I notice that it does not like the server name as specified. That is probably because of the hyphen in the name. Best to put it in quotes.

Set-ReceiveConnector -Identity ($Env:"amber-server" + "\Windows SBS Fax Sharepoint Receive " + $Env:"amber-server") -MaxProtocolErrors 500
0
 
fessiambreAuthor Commented:
i entered just this and got this reply

Set-ReceiveConnector -Identity ($Env:"amber-server" + "\Windows SBS Fax Sharepoint Receive " + $Env:"amber-server") -MaxProtocolErrors 500

Unexpected token 'amber-server' in expression or statement.
At line:1 char:52
+ Set-ReceiveConnector -Identity ($Env:"amber-server"  <<<< + "\Windows SBS Fax
 Sharepoint Receive " + $Env:"amber-server") -MaxProtocolErrors 500
0
Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

 
GusGallowsCommented:
What if you did the following:

$serverName = "Amber-Server"
Set-ReceiveConnector -Identity ($ServerName + "\Windows SBS Fax Sharepoint Receive " + $ServerName) -MaxProtocolErrors 500
0
 
fessiambreAuthor Commented:
this is what i get
[PS] C:\Windows\System32>$serverName = "Ambered-Server"
[PS] C:\Windows\System32>Set-ReceiveConnector -Identity ($ServerName + "\Windows SBS Fax Sha
repoint Receive " + $ServerName) -MaxProtocolErrors 500
WARNING: The command completed successfully but no settings of 'AMBERED-SERVER\Windows SBS
Fax Sharepoint Receive AMBERED-SERVER' have been modified.
[PS] C:\Windows\System32>
0
 
GusGallowsCommented:
When you get that response, it means that the setting is already applied so it made no changes.
0
 
fessiambreAuthor Commented:
ok thanks i have moved to a hosted exchange so this question is no longer valid but i will appy points for the help thanks
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now