• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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