Mailing List CGatePro@mail.stalker.com Message #104761
From: Quinton Wells <quinton.wells@ba.com>
Subject: Re: CLI equivalent of Mail forwarding rule
Date: Thu, 20 Feb 2014 14:32:31 +0000
To: CommuniGate Pro Discussions (CGatePro@mail.stalker.com) <CGatePro@mail.stalker.com>

Hi Oliver

Reviewing your reply, I notice you have an extra pair of brackets around the dictionary.

I have just re-typed the command, adding the extra brackets and the rule does now show in the WebAdmin interface for the specified account.

Great!

Thanks

Quinton

 

From: CommuniGate Pro Discussions [mailto:CGatePro@mail.stalker.com] On Behalf Of Quinton Wells
Sent: 20 February 2014 09:19
To: CommuniGate Pro Discussions
Subject: Re: CLI equivalent of Mail forwarding rule

 

Thanks for your reply, Oliver.

 

I’ve done some further exploring and found the CLI command SetAccountMailRules <account> <rules dictionary>.

Based upon the results of GetAccountMailRules <account>, I have executed the following:

SetAccountMailRules <account1> (1,”#Redirect”,(),((“Mirror to”, <address2>),(Discard,”---“)))

The rule shows if I execute a GetAccountSettings <account> - but not in the WebAdmin interface for the account in question.

 

When I test the rule by sending an email to the account, the rule does not appear to be active – as indicated by the WebAdmin view.

 

Quinton

 

 

From: CommuniGate Pro Discussions [mailto:CGatePro@mail.stalker.com] On Behalf Of quinton.wells@ba.com
Sent: 19 February 2014 16:30
To: CommuniGate Pro Discussions
Subject: CLI equivalent of Mail forwarding rule

 

Hi There
We are running CGP v5.4.10.

I can use the WebAdmin interface to set a forwarding address on an account - to forward all incoming mail to a different address.
('Users' -> <domain> -> <object> -> 'Mail' -> 'Incoming Mail Rules' -> 'Redirect All Mail to')

I have a need to action this in bulk.

Can anyone show me the equivalent CLI command/format to do this, please?

Regards

Quinton

-- 




Be the first to hear our news by following us on Twitter,  You Tube and  Facebook



This message is private and confidential and may also be legally privileged. If you have received this message in error, please email it back to the sender and immediately permanently delete it from your computer system. Please do not read, print, re-transmit, store or act in reliance on it or any attachments. British Airways may monitor email traffic data and also the content of emails, where permitted by law, for the purposes of security and staff training and in order to prevent or detect unauthorised use of the British Airways email system. Virus checking of emails (including attachments) is the responsibility of the recipient. British Airways Plc is a public limited company registered in England and Wales. Registered number: 1777777. Registered office: Waterside, PO Box 365, Harmondsworth, West Drayton, Middlesex, England, UB7 0GB. Additional terms and conditions are available on our website: www.ba.com
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster