• 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!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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