• 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

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