Forwarding Mail to an external domain

I am trying to forward all mail for one local user to an external mail account(user@externaldomain.ca). I have tried setting the inbound relay controls as follows but when I send an email to user@externaldomain.ca from user@someexternaldomain.ca I keep getting this message: "DELIVERY FAILURE: Router: user@someexternaldomain.ca is restricted from sending mail through server HOST/ServerName " Can anyone lend some advice?

Thanks


Inbound Relay Controls:

Allow messages to be sent only to the following external internet domains: externaldomain.ca

Deny messages to be sent to the following external internet domains:

Allow messages only from the following internet hosts to be sent to external internet domains:

Deny messages from the following internet hosts to be sent to external internet domains:


Inbound Relay Enforcement

Perform Anti-Relay enforcement for these connecting hosts: External hosts

Exclude these connecting hosts from anti-relay checks:

Exceptions for authenticated users: Allow all authenticated users to relay

Subject: Forwarding Mail to an external domain

What about an agent? Something like the one I wrote for Dominozone:

http://www.dominozone.net/domzone/dzCMS.nsf/web/DZCodeXCopyMailNotForward

Regards,

Rune Carlsen

Founder Dominozone

http://www.dominozone.net

Subject: RE: Forwarding Mail to an external domain

Thanks for the agent. I tried it and now I get this error: “Invalid mailbox: bad return-path syntax” Have you seen this error yet? I think this time the email is being sent but is being rejected by the server that I am sending it to. Any more ideas?

Subject: RE: Forwarding Mail to an external domain

I have found the reason for getting the “bad return path syntax” error. I created the agent while signed in as the administrator. After going to the security tab on the agent properties and choosing the user whose mail I am forwarding in the “run on behalf of” field, it worked like a charm. Thanks Rune!