• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Mail Group disabled using mail command

Antonio CarlosR

New Pleskian
Guys,

I'm using this command to create my forwards:

Code:
/usr/local/psa/bin/mail --update [email][email protected][/email] -forwarding-addresses add:[email protected]

It works, but they are all disabled in panel. I need to know if there is a command line to enabled it or will I have to go to every single box in panel and click "Switch on mail forwarding"?

Thanks!
 
Last edited:
Antonio,
If its not answered in: /usr/local/psa/bin/mail --help then its not possible ..
 
Antonio,
If its not answered in: /usr/local/psa/bin/mail --help then its not possible ..

It is not. I was hoping it could be in another tool, because names are a little different, almost conflicting (forwarding and mail group).

But thanks for your answer, Abdi. :)
 
There is another function missing from this command: turning on/off spamfilter for the mailbox, like you can do for antivirus. The problem is that I'm mass migrating a lot of domains from my current Debian server, manually managed, to an Ubuntu, with Plesk Panel and it would be a pain to edit one-by-one all mailboxes. Do you know any other way of automating this kind of task in Plesk Panel?

Edit: spam is in another tool:

Code:
/usr/local/psa/bin/spamassassin -u [email protected] -status true -action move
 
Last edited:
Enabling Mail Forwarding via CLI

(Even the post is very old, it was the first entry at Google for my problem)

Antonio,
If its not answered in: /usr/local/psa/bin/mail --help then its not possible ..

Yes, it is! "-forwarding true" is the right parameter to be passed, like e.g.:

/usr/local/psa/bin/mail --update [email protected] -forwarding-addresses add:[email protected] -forwarding true

Greetings, Julian
 
Back
Top