• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Plesk CLI - mail creation - easy fix?

P

pelfed

Guest
I'm trying to create a mail user with a redirect using the following:

./mail.sh -c [email protected] -cp_access true -redirect true -rediraddr [email protected]

but i get the following error:


mailmng: Command line argument number 4 contains unprintable characters
An error occured during mailname creation: Can't set redirect to "aaa@bbbbbb/": mailmng failed: mailmng: Command line argument number 4 contains unprintable characters


I'm sure its an easy fix, but not sure what it may be?
 
Try putting double quotes around the values:


./mail.sh -c "[email protected]" -cp_access "true" -redirect "true" -rediraddr "[email protected]"

I believe the docs and examples show this (maybe not for the mail.sh, but look at some of the other CLI examples, such as client or domain management)
Creating a domain:
./domain.sh --create "domain.zone" -clogin "client1" -ip "192.168.1.1"

Setting up hosting:
./domain.sh --update "domain.zone" -hosting true -hst_type phys -login "domain_zone" -passwd "password"

Changing domain limits:
./domain_pref.sh --update "domain.zone" -disk_space 10

Removing a domain:
./domain.sh --remove "domain.zone"
 
Back
Top