• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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