• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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