Re: SMTP Forwarding Connector: powershell cmd errors



It looks like you're missing the hyphen in Get-ReceiveConnector.

"ainsof" <ainsof@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:BA4B26EE-9141-465D-85A7-7D8398AA6BDF@xxxxxxxxxxxxxxxx
Hi,

I need to setup and configure a new SMTP connector in exchange 2007.
Creating the connector wasn't the problem.

Mail messages need to be forwarded from one specific IP, but will be coming
from outside our domain.

I've followed these instructions:

http://www.shudnow.net/2008/08/21/how-anonymous-relay-works-in-exchange-2007/

... and 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? Is there a
better way to do this?

I really need to get this system setup and running.

Thanks in advance.

.



Relevant Pages

  • Re: Login Errors Seem to indicate we are being hacked?
    ... thing on the box using that authentication package. ... The SMTP or IIS logs should answer everything. ... Logon Failure: ... Caller User Name: SERVER01$ ...
    (microsoft.public.windows.server.sbs)
  • Messages stuck in outbound queue.
    ... Windows 2000 server SP4. ... The default SMTP virtual server was setup and configured with pretty much ... There was also an SMTP connector setup with the default SMTP VS as its ...
    (microsoft.public.exchange.connectivity)
  • Re: OWA, Exchange Alias
    ... I am wondering if they old SMTP address is still there on the User Object. ... When you logon to OWA with an implicit logon http://server/exchange you must ... What OWA does is use your SID to find you in the AD. ... but the exchange alias was setup as john. ...
    (microsoft.public.exchange2000.protocols)
  • Re: POP3 Setup
    ... Can the exchange server be setup to ... > I setup the smtp connector with the ISP's domain name and setup my ... > inboxy with an additional smtp e-mail address. ... >> Exchange server and not through your ISP, ...
    (microsoft.public.exchange2000.admin)
  • Re: POP3 Setup
    ... Can the exchange server be setup to ... > I setup the smtp connector with the ISP's domain name and setup my ... > inboxy with an additional smtp e-mail address. ... >> Exchange server and not through your ISP, ...
    (microsoft.public.exchange2000.information.store)

Loading