Muchos usuarios disponen de un panel de control Plesk. Que, aunque no es libre, hoy vamos a hablar de él. Dicho panel de control, proporciona una forma sencilla de gestionar dominios, páginas web y servicios asociados, como el correo, desde su interfaz web. Lo que puede que no sea tan conocido es que dispone de una serie de herramientas en línea de comandos que nos pueden hacer la vida mucho más fácil.
Para utilizar estos consejos, es necesario tener acceso SSH a nuestro servidor.
Tabla de contenidos
Crear una dirección de e-mail
Para crear una dirección de correo con su buzón y todo, podemos utilizar la siguiente orden:
Podemos crear una dirección de correo para cualquier dominio que tengamos administrado en nuestro servidor. Y también podemos especificar algunos parámetros en su creación como:
- -mailbox true: Para activar el buzón de correo.
- -passwd [password]: Para especificar la contraseña.
- -mbox_quota 5G: Para especificar el espacio del buzón de correo (5GB en el ejemplo).
- -description «Descripción»: Para especificar una descripción que veremos en el panel Plesk.
- -manage-virusfilter true: Para activar el filtro antivirus.
- -manage-spamfilter true: Para activar el filtro antispam.
- -antivirus inout: Para configurar antivirus tanto de entrada como de salida.
- -outgoing-messages-mbox-limit 100: Para configurar el número de mensajes que pueden enviarse cada hora.
Hay alguna opción más dependiendo de la versión de Plesk, como especificar grupos de correo, alias, etc. Podemos obtener el listado completo de opciones con el argumento –help. Por lo que finalmente podemos tener algo como esto:
Puede parecer algo complicado, aunque lo realmente bueno viene dentro de algunas líneas.
Modificar o Eliminar correos
Desde aquí también podemos modificar direcciones de correo, con las mismas opciones que antes, pero con el argumento -u. Por ejemplo, para cambiar una contraseña podemos:
Y si finalmente queremos eliminar el correo,
Crear múltiples direcciones de correo
Si queremos crear múltiples direcciones de correo, y esto es lo bueno, no tenemos que andar con la interfaz web, dirección a dirección. Basta con crear un bucle en Bash y llamar a la orden anterior múltiples veces.
Esto puede pasar cuando necesitemos migrar direcciones de correo de un servidor a otro, puede que unas pocas direcciones sean fáciles de crear en la interfaz web, pero cuando hablamos de decenas, o cientos, nos compensa más invertir un poco de tiempo en un pequeño script y ejecutarlo, y las tendremos todas generadas.
Podemos hacerlo de forma muy sencilla, desde la propia línea de comandos:
1 2 3 | for direccion in info persona1 persona2 persona3; do plesk bin mail -c $direccion@midominio.com -mbox_quota 5G -passwd 'ClaveFacil' done |
Con esto crearemos los e-mails info@midominio.com , persona1@midominio.com , persona2@midominio.com y persona3@midominio.com con la misma cuota de buzón de correo y la misma contraseña.
Aunque si queremos, podemos ir un paso más allá, creando un fichero de texto (direcciones.list) donde guardamos todos los nombres de usuario, uno por línea, pueden ser cientos o miles (ya será la capacidad de nuestro servidor el límite).
Tras eso creamos el siguiente script:
1 2 3 4 5 6 7 8 | #!/bin/bash while IFS= read -r line do password=$(pwgen -1 -y 12) email="$line@midominio.com" plesk bin mail -c "$email" -mbox_quota 5G -passwd "$password" -mailbox true -antivirus inout echo "$email:$password" >> passwords done < direcciones.list |
De esta manera podremos configurar un montón de direcciones de correo con las mismas características. Incluso de dominios diferentes si introducimos el dominio en el archivo direcciones.list y lo eliminamos de la variable $email. Las contraseñas, como vemos, las genero con la herramienta pwgen, aunque también podemos dejarlas fijas o utilizar cualquier otro método de generación de contraseñas.
Por otro lado, si ahora queremos modificar la cuota de espacio en disco de múltiples correos a la vez podremos:
1 2 3 4 5 6 | #!/bin/bash while IFS= read -r line do email="$line@midominio.com" plesk bin mail -u "$email" -mbox_quota 2G done < direcciones.list |
Incluso utilizar el modificador -r para eliminar varias direcciones de correo a la vez.
Por cierto, es buena idea, una vez que tengamos los correos generados en el sistema, guardar en lugar seguro el fichero de contraseñas, al menos hasta que hayamos asignado las contraseñas a cada uno de los usuarios y en ese momento eliminarlo permanentemente.
Foto principal: Carol Jeng

¿Necesitas un sysadmin?
Si te ha gustado el post y encuentras interesante lo que cuento en materia de sistemas. O si necesitas gestionar un servidor (o muchos), automatizar procesos o mejorar la calidad de los procesos actuales. No dudes en ponerte en contacto conmigo.
I appreciate your efforts in this sharing, can you let me talk directly with you?
The passwords, as we can see, are generated with the pwgen tool, although we can also leave them fixed or use any other password generation method. gmail
Very useful and informative website. fence companies sarasota
Beneficial article for beginners. I am a beginner too, so these tips help me a lot thanks for sharing. It’s helpful for this blog. Buy Deadhead Chemist DMT Also, great with all of the valuable information you have. Keep up the excellent work you are doing well.
I am really thankful to you for giving blog commenting sites Organic Swedish Bitters I will definitely be coming back here more often. Thanks for taking the time to share this fantastic post with us.
This is a great article thanks for sharing this informative information Buy Google Review I will visit your blog regularly for the latest post. I will visit your blog regularly for The newest post.
Excellent to be visiting your blog again, it has been great for me. Rightly, this article that I’ve been served for therefore long. I want this article to finish my assignment within the Everyone. Blue Bubba Strain and it has the same topic together with your article. Thanks for the ton of valuable help, nice share.
Plesk is a web hosting platform that includes a control panel that allows administrators to set up websites, reseller accounts, e-mail accounts, DNS, and databases via a web browser. Plesk has built-in support for Content Management Systems (CMS), such as WordPress, Joomla, and Drupal.
Thanks for this great content. Looking or more.
fence company miami
Amazing information. Thank you for sharing…Concrete Contractors Maitland
Beneficial article for beginners. I am a beginner too, so these tips help me a lot thanks for sharing. It’s helpful for this blog. GLOCK 45 FOR SALE Also, great with all of the valuable information you have. Keep up the excellent work you are doing well.
Wow! Such an excellent and helpful post this is. I love it. It’s so good and so perfect.GLOCK 27 FOR SALE I am just amazed. I hope you continue to do your work like this in the future also, thanks.
Beneficial article for beginners. I am a beginner too, so these tips help me a lot thanks for sharing. It’s helpful for this blog. Ketof Cough Syrup Also, great with all of the valuable information you have. Keep up the excellent work you are doing well.
Excellent to be revisiting your blog, it has been great for me. Rightly, this article that I’ve been served for therefore long. I want this article to finish my assignment within the Everyone. Blue Bubbaenterprise website SEO audit report Strain has the same topic together with your writing. Thanks for the ton of valuable help, nice share.
The passwords, as we can see, are generated with the pwgen tool, although we can also leave them fixed or use any other password generation method. motorized awnings Pleasantville NJ
It is a great post. We’re new to blogging as our primary source of income has always been freelance software engineering. I will be taking a look Havalon REDI EDC Knife at some of these recommendations. Thanks for sharing!
It is a great post. We’re new to blogging as our primary source of income has always been freelance software engineering. I will be taking a look FN 502 For Sale at some of these recommendations. Thanks for sharing!
The information on your blog is motivating to me. It conveys how thoroughly you understand this subject. Incredible that the arrival went well. Each of these tiny bits of information and data can be created using a wide variety of musical report practical experience.wikifoundry top 100
Great article! Unicorn pyjamas are really good!
This is a great article thanks for sharing this informative information .Colt Anaconda For Sale I will visit your blog regularly for the latest post. I will visit your blog regularly for The newest post.
Thanks, again for the tips, I always come to your website for updates and new posts. Since we work on search engine optimization, FN 5.7 For Sale it helps us a lot that it gives us so many opportunities in our line. And he gave us knowledge and points at the same time. I hope you’re on the right track.
This is a most informative article. I have read this article. Sig Sauer 228 For Sale I am sure that those who read this article will be learned a lot. Thanks for discussing this topic.
Really helpful and informative article. Buy Snowflake Cake Carts Online Thanks for sharing. Keep up the good work. Thanks for sharing.
I am really thankful to you for giving blog commenting sites.Brand New Cake Bars I will definitely be coming back here more often. Thanks for taking the time to share this fantastic post with us.
It is a great post. We’re new to blogging as our primary source of income has always been freelance software engineering. I will be taking a look Purple Punch Cake Carts at some of these recommendations. Thanks for sharing!
Great work, Gaspar!
All the best from all of us at http://www.cctv717.com
This is a great blog and I want to visit this every day of the week drywall plastering near me south lake tx
Excellent to be revisiting your blog. It has been great for me. Rightly, this article that I’ve been served for therefore long. I want this article to finish my assignment within the Everyone. Deutchland Pharmacy Europe and it has the same topic together with your article. Thanks for the ton of valuable help, nice share.
Excellent to be visiting your blog again, it has been great for me. cheap windshield replacement in houston texas
Me complace haberme tomado el tiempo de leer este artículo específico porque tenía información útil. Saludos de nosotros en https://www.marketablegrowth.com/kamloops-website-design.
Very interesting blog. A lot of blogs I see these days don’t really provide anything that I’m interested in, but I’m most definitely interested in this one. Just thought that I would post and let you know
Roof Replacement Rockhampton
That is one of the great things! I am sure that you will also find many such useful things on this site. tree surgeon barnet
It is a great post. We’re new to blogging as our primary source of income has always been freelance software engineering. I will be taking a look Smokeless Powder at some of these recommendations. Thanks for sharing!
Said control panel provides a simple way to manage domains, websites, and related services, such as mail, from its web interface. I really didn’t know this death run 3d
Creating multiple email addresses from Plesk CLI is of great help to users. I will try it right away stickman boost
I want to show you this klondike solitaire
Beneficial article for beginners. I am a beginner too, so these tips help me a lot thanks for sharing. It’s helpful for this blog. Dabwoods Shop Also, great with all of the valuable information you have. Keep up the excellent work you are doing well.
multiple directions can be quite confusing cleaning services orlando. i have a better map here.
In this way, we can configure a lot of email addresses with the same characteristics as acoustical drywall.
Thanks for sharing such a nice Blog Commenting Sites List. It is a very useful list of websites that help to rank our site and provide quality backlinks. Dabwoods GSC Backlinks play a pivotal role in SEO.
Thanks, again for the tips, I always come to your website for updates and new posts. Since we work on search engine optimization, Buy fn 502 tactical fde it helps us a lot that it gives us so many opportunities in our line. And he gave us knowledge and points at the same time. I hope you’re on the right track.
Beneficial article for beginners. I am a beginner too, so these tips help me a lot thanks for sharing. It’s helpful for this blog. cannabis seed coupon codes Also, great with all of the valuable information you have. Keep up the excellent work you are doing well.
I wonder if this platform is free. It would be great to be able to create your own email address
I am not expert to coding but thank you for this content. A huge help indeed!
Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area. Hope you can visit mine Drywall Finishing Vancouver
Great blog !! You should start many more. I love all the info provided. I will stay tuned.
oven cleaning cost
Great Post !! very useful for me, is a great skill that depends on a couple of factors that are very well explained. dmt Shop Thanks for sharing! please keep it up Maintains!
Plumbing Abbotsford modifying is a hard thing to do. Among the versions I tried this one’s the most difficut.
Great article. I want to say that I actually like browsing your website posts the most. The information you provide on this website is of great help to me. hornady superformance 30 06 sst 180 gr continue to share your new things. please keep it up Maintains!
This was very informative. Thanks for sharing. It worth the time reading this.
This was an excellent post. Thank you for sharing it, view more
I remember how I felt sending letters before was like costing so much time but growing up, I realized I have been missing doing it so.
best SEO services Tampa
Thanks for taking this opportunity to discuss this, I feel fervent about this and I like learning about this subject. Sitio web
Wow! Thank you for this information! Looking forward to more. basement remodeling Yonkers
This is incredible! You just made my day and my workload much easier to handle. Thank you! basement renovation Brooklyn
Could you really make these many in such a small amount of time? Woaahh thanks for this asbestos abatement Brooklyn
Thanks, You’ve got one of a kind creative ability and have come up with a few of the foremost inventive thoughts. http://www.contractorlethbridge.com
Tamildhool is a video streaming website that offers more than 50 original shows and over 50,000 hours of Premium Content from leading Producers.
Thanks, again for the tips, I always come to your website for updates and new posts. Since we work on search engine optimization, USA ID Cards it helps us a lot that it gives us so many opportunities in our line. And he gave us knowledge and points at the same time. I hope you’re on the right track.
I really like the type of post that is simple so that everyone can understand and everyone can understand the message that the author wants to convey. Your style is unique but it is easy to understand what you want to say in this discussion.
This is my first visit to this website & I love to spend time in reading stuff here.
Mister Saad
Thank you. You have a unique capacity for creativity and have generated some of the most original ideas. exteriorpaintingmelbournefl.com
very nice this site.
tamildhoolserial
creativity and have generated some of the most original https://custompackagingboxes.co.uk/
Thank you for this! Siding Contractors Richmond, BC
Yellowstone Jackets care for your fashion requirements. We uphold the premium quality John Dutton Jacket that bring you a new style.
Yellowstone Jackets care for your fashion requirements doramasmp4
creativity and have generated some of the most original doramasflix
Thank you for this! estrenosdoramas
google
Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers. Mowing Services Townsville
I’ll learn plenty of new stuff right here! Best of luck for the next! Regards, Onduline bajo teja Soria
I really enjoy reading this blog. Keep sharing! http://www.google.com/maps?cid=4488280802242044319
I appreciate this wonderful information on this wonderful website. I hope that there’s more to come.This is the perfect post. It helped me a lot. If you have time, I hope you come to my site and share your opinions. Have a nice day. visit now
Thank you for sharing such a geat information.
Concrete Contractors Wagga
Great site, keep up the good work! Roofing Contractor Victoria, BC
Nunca había oído hablar de este software hasta hoy. Fue una lectura interesante. Me gustaría mostrar esto con mis compañeros de trabajo en Grande Prairie Snow Removal.
Thanks for sharing this awesome list of blog commenting sites. The high page rank Blog Commenting Sites can also help you to improve the page rank of your site. Content Marketing I hope it helps. Thanks.
WONDERFUL Post.thanks for share..more wait. http://www.drywallcoquitlambc.com
Thanks for sharing guys https://www.paintersofmanchester.co.uk
Good information thanks for this https://www.roofersofchesterfield.co.uk
Cheers guys https://www.thecambridgeroofers.co.uk
I really like the way that you have expressed yourself. There is a lot to be admired from this post. You might want to click onYellowstone S05 Beth Dutton Pink Coat
Watch Here All Spanish Dramas Serial Online in
Sub Español Full HD Video Free Downloads.
DramaCool
Would be very helpful making multiple email addresses for work. Thanks a lot for the tips!
SEO Services Tampa
I didn’t know that Plesk CLI already have this feature.
foundation repair atlanta
Yeh Rishta Kya Kehlata Hai Full Episodes Desi Serila HD Video
Hindi Tv Series Watx Apne Tv Live Stream Full HD Video.
Very fascinating blog. The majority of blogs I encounter nowadays don’t really deliver anything that I’m interested in, but this one surely does. I just wanted to drop a quick note to let you know
That is surely a phenomenon. Read more from instalar canalones Zamora
We are so glad that Plesk CLI is now updating their web hosting.
foundation repair san diego
The work I am doing is very hard but articles like this make it much easier. Thank you for doing my research for me.
Pergola Builders Bendigo
I think I’ve never seen such great blogs. have the complete stuff with all the details I want. So please update this for us. thanks! appliance repair mount vernon
Looks delicious. I’ve made a nice cannabis butter from my cannabis clones this year so it will be delicious.
Having the option to register for numerous work email accounts is a huge time saver. I really appreciate the advice.
Esta es una publicación muy interesante y la codificación seguramente es útil para crear correos electrónicos masivos. Saludos desde nuestra empresa en Auto Detailing Kamloops.
This is a great feature from Plesk, kudos to their team!
metal roofing houston
Love this site, keeps me up to date
I’ve been exploring a little bit for high-quality articles or blog posts in this house. While exploring Yahoo, I ultimately stumbled upon this website. Lemon Cherie pie strain Reading this info, I am glad to show that I have an incredibly good uncanny feeling I found out just what I needed.
Thank you for this tutorial. This is really helpful for my Flooring service business
This is really amazing information that you share. I can tell how interesting your blog post is. Thank you for sharing.
Coloured Concrete Driveways
Once again, many thanks for the recommendations; I often check your website for any upgrades or new content.
These tutorials are really helpful and easy to read. Thank you for providing us with helpful information.
The passwords, as we can see, are generated with the pwgen tool, although we can also leave them fixed or use any other password generation method.
Very helpful blog. Thanks! Scaffolding in Spennymoor
Actually, it’s pretty good to see! Tiler Adelaide
Thanks for sharing! Tiler Adelaide
Thanks for letting us know! Tiler Wollongong
Excellent post! Concreters in Wollongong
Thanks for sharing this to public! Adelaide Landscaping
Glad to find this fabulous website. Landscaper Wollongong
Such a great post! Adelaide Landscaping
I visited Your blog and got a massive number of informative articles. I read many articles carefully and got the information that I had been looking for for a long time. Hope you will write such a helpful article in future. Thanks for writing.Tilers in Hobart
Very useful and informative post! Tiling Townsville
Thats what I was looking for! Adelaide Air Conditioning
To be honest, I generally don’t read. But, this article caught my attention.seo adelaide
I am really impressed with your writing style. Keep it up! Landscapers Canberra
Many thanks for sharing this! Adelaide Coolroom Hire
Thanks for sharing! Sliding Doors Adelaide
Many many thanks to you! Cleaning Services Adelaide
I wish I could write anything close to that. That’s too good! Car Detailing Adelaide
Such beautiful writing this is. I appreciate your talent. Painters Adelaide
You presented your ideas and thoughts really well on the paper. Solar Panels Adelaide
What a great piece of article! seo adelaide
Very informative content. Thanks. tow truck wollongong
Please keep up the good work! drum lessons adelaide
Thanks for letting us know. Tiler Adelaide
Gained so much knowledge from your website. I will not stop reading your content! website
Love it. Thank you for posting that. I feel strongly about it and love learning more about this topic.ghost jack herer I will come to your site to find out more and tell my acquaintances about you.
Thank you for sharing this! very informative! carpet cleaners
This is very helpful. Thank you for sharing this tutorial!
Thanks for sharing this! Paving in Aberdeen
Thanks for showing this interesting input, it was helpful for my project Concrete Contractors in Davenport IA
Looks very interesting. I wonder if letters are still a thing nowadays?
Tampa SEO
Many thanks for sharing your insightful commentary; I was able to use it to improve my project in Sheet rock tape
Thank you for sharing this helpful tutorial!