• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.

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:
Why not? It's work w/o problem..
{ while IFS=';' read u1 p1 ;do PSA_PASSWORD="$p1" plesk bin mail --create $u1; done ; } < users.txt
SUCCESS: Creation of mailname 'user1@test.tld' complete
SUCCESS: Creation of mailname 'user2@test.tld' complete
SUCCESS: Creation of mailname 'user3@test.tld' complete
 
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