• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

Create Mailbox via SSH

SerelyaZ

New Pleskian
Hi
I look on forum and could not find an answer.
So for gurus can we create mailbox via SSH (on VPS vith Parallel) and how?
I know with Cpanel is very easy /scripts/addpop .....
Please share
 
Thank you!
This is exactly what I was looking for with one but.
is there possobility to keep all users and password to craeta in one file adn run script like
{ while IFS=';' read u1 p1 ;do
./mail --create "$u1" -passwd "$p1" -mbox_quota 500M -antivirus inout ..
done ; } < emails.txt

and how compasory -mbox_quota 500M -antivirus inout ?
Can I create with out it ?
Little Update trying run ./mail --create and command not recognised any ideas where I can get it wrong?
 
Last edited:
[root@vps1187 ~]# { while IFS=';' read u1 p1 ;do PSA_PASSWORD="$p1" plesk bin mail --create $u1; done ; } < users.txt
-bash: plesk: command not found
I do not know why? What am I doing wrong
 
`plesk` utility was implemented in Plesk 11.5 version. If you have older Plesk version you could use:
{ while IFS=';' read u1 p1 ;do PSA_PASSWORD="$p1" /usr/local/psa/bin/mail --create $u1; done ; } < users.txt
 
thank you it is working very well
few problems -mailbox creating boxes but without password
I did managed to do /usr/local/psa/bin/mail --u $u1 -mailbox pswrd -$p1
not sure if it is right way todo it.?
{ while IFS=';' read u1 p1 ;do PSA_PASSWORD="$p1" /usr/local/psa/bin/mail --create $u1 -mailbox ; done ; } < users.txt
is there a similar manual for CLU for 10.x we having problem upgrading to 11.5. as warning say domain will not be available -((
have to stay with 10.x for now just to be on safe side for few month
 
Back
Top