• 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.

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