• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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]name@domain.com[/email] -forwarding-addresses add:othername@domain.com

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 user@domain.com -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 hello@world.com -forwarding-addresses add:some@what.com -forwarding true

Greetings, Julian
 
Back
Top