Exchange Server Forums
Forums |
Register |
Login |
My Profile |
Inbox |
RSS
|
My Subscription |
My Forums |
Address Book |
Member List |
Search |
FAQ |
Ticket List |
Log Out
SMTP Forwarding for External & Internal Mail
Users viewing this topic:
none
|
Logged in as: Guest
|
Login | |
|
SMTP Forwarding for External & Internal Mail - 15.Sep.2008 2:02:45 PM
|
|
|
ainsof
Posts: 3
Joined: 15.Sep.2008
Status: offline
|
Hi, I need to setup and configure a new SMTP coneector in exchange 2007. Creating the connector wasn't the problem. According to these instructions: http://www.shudnow.net/2008/08/21/how-anonymous-relay-works-in-exchange-2007/ I should be able to run this command in the power shell: Get-ReceiveConnector "LISTSERV SMTP FWD" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient" But I keep getting the following error (or permutations thereof). PS C:\Documents and Settings\netadmin> GetReceiveConnector "LISTSERV SMTP FWD"|Add-ADPermission -User "NT AUTHORITY\ANON YMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient" The term 'GetReceiveConnector' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. At line:1 char:20 + GetReceiveConnector <<<< "LISTSERV SMTP FWD"|Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights " Ms-Exch-SMTP-Accept-Any-Recipient" PS C:\Documents and Settings\netadmin> GetReceiveConnector"LISTSERV SMTP FWD"|Add-ADPermission -User "NT AUTHORITY\ANONY MOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient" The term 'GetReceiveConnectorLISTSERV SMTP FWD' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. At line:1 char:39 + GetReceiveConnector"LISTSERV SMTP FWD"| <<<< Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "M s-Exch-SMTP-Accept-Any-Recipient" PS C:\Documents and Settings\netadmin> GetReceiveConnector"LISTSERV SMTP FWD" |Add-ADPermission -User "NT AUTHORITY\ANON YMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient" The term 'GetReceiveConnectorLISTSERV SMTP FWD' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. At line:1 char:39 + GetReceiveConnector"LISTSERV SMTP FWD" <<<< |Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights " Ms-Exch-SMTP-Accept-Any-Recipient" PS C:\Documents and Settings\netadmin> Each time, the Line and Char noted refers to "whitespace." Each time I ran the command (to produce the errors above) I manually entered the string, but left out the offending space... then the next whitespace, etc... You can see the results... Can anyone please explain to me what I'm doing wrong here? I really need to get this system setup and running. Thanks in advance.
|
|
|
RE: SMTP Forwarding for External & Internal Mail - 15.Sep.2008 5:30:25 PM
|
|
|
jveldh
Posts: 2335
Joined: 12.Apr.2008
From: The Netherlands
Status: offline
|
Hi, You should use get-receiveconnector instead of without the "-" sign.
_____________________________
Best regards, Johan Veldhuis Visit my Exchange blog
|
|
|
RE: SMTP Forwarding for External & Internal Mail - 16.Sep.2008 10:47:31 AM
|
|
|
ainsof
Posts: 3
Joined: 15.Sep.2008
Status: offline
|
Hi jveldh, Thanks for answering my post. Already tried that since my first post here: (no hyphen) PS C:\Documents and Settings\netadmin> Get ReceiveConnector "LISTSERV SMTP FWD" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient" The term 'Get ReceiveConnector' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. I also tried this: (no whitespace) PS C:\Documents and Settings\netadmin> GetReceiveConnector "LISTSERV SMTP FWD" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient" The term 'GetReceiveConnector' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. And when I run the command as spelled in their own bloody help pages, without arguments, I get: PS C:\Documents and Settings\netadmin> Get-ReceiveConnector The term 'Get-ReceiveConnector' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. All this, of course, is run through their windows "power" shell.
|
|
|
RE: SMTP Forwarding for External & Internal Mail - 16.Sep.2008 12:54:01 PM
|
|
|
ainsof
Posts: 3
Joined: 15.Sep.2008
Status: offline
|
Of course Power Shell doesn't recognize the command. It has to be run in the Exchange Management Shell... Now that's been established, what's the point of this power shell anyway?
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|