Un servicio de correo electrónico suele ser algo personal. Sin embargo hay ocasiones en las que nos interesa que varios usuarios sean capaces de gestionar conjuntamente un buzón de correo. Podemos pensar el caso de una empresa en la que varios empleados reciben los mensajes de una dirección de correo determinada, por ejemplo info@miembpresa.com, y que de vez en cuando el jefe viene a echar un vistazo a dichos correos. O que, por ejemplo tenemos que enviar decenas o cientos de mensajes a otro usuario dentro del mismo servidor, podemos pensar en que un empleado deja la empresa y otro compañero va a encargarse de las conversaciones que tenga actualmente con los clientes.
Es cierto que, en la práctica, muchas veces se opta por compartir las contraseñas del correo y configurar todo el mundo la misma cuenta en su programa de correo, y ahí hacer los cambios que creamos oportunos. Aunque, si queremos tener en cuenta la seguridad, una cuenta como info@miempresa.com no puede tener su contraseña volando por la oficina. En primer lugar, no sabemos si un empleado filtrará la clave o utilizará la cuenta para fines diferentes a los que pensamos. Y, si confiamos en nuestros empleados, no podemos confiar en sus ordenadores que en cualquier momento puede tener algún problema, ser víctimas de malware y pueden jugarnos una mala pasada. Si hay una filtración, no podríamos determinar con exactitud su procedencia. Por otro lado, no podríamos limitar el acceso a dicha cuenta si nos interesa que un usuario solo pueda leer los mensajes o no queremos que pueda marcar mensajes como leídos (muy útil cuando el jefe quiere supervisar mensajes sin entorpecer).
En mis servidores utilizo el software Cyrus para gestionar el correo entrante en el servidor. Con él manejo las cuentas IMAP de los usuarios y todos ellos se conectan a él para la lectura de su correo. Es aquí donde podemos hacer uso de las capacidades de buzones de correo compartidos para satisfacer nuestras necesidades.
Tabla de contenidos
Notas iniciales
Estas configuraciones son válidas tanto para Cyrus 2.2 como Cyrus 2.4 (lo he probado en las dos versiones). Además, yo estoy utilizando la directiva
1 | unixhierarchysep: yes |
en el archivo /etc/imapd.conf que habilita puntos (.) en los nombres de usuario, con lo que la separación de niveles en lugar de un punto utilizará una /. De todas formas comentaré esto donde sea necesario.
Otra cosa más, en los nombres de usuario y los buzones, a mí me gusta poner siempre el dominio al que pertenecen, aunque es incómodo de escribir siempre, me sirve como una medida de seguridad ante confusiones y me permite crear buzones en dominios diferentes, que cuando te piden un correo en un dominio temporalmente, o el dominio tiene alternativas en .es, .eu o .com es un engorro ponerlo todo bien con su dominio.
Dando de alta el buzón compartido
Para ello, tenemos que identificarnos en la administración de cyrus. En mi caso, el usuario es administrador y el host es localhost porque estoy en el mismo servidor de correo:
Luego, tendremos que crear el buzón compartido, en mi caso (info@miempresa.com):
¡Cuidado! Si no tienes unixhierarchysep: yes, tendrás que utilizar un punto en lugar de una barra (compruébalo antes de hacer cambios):
Dando permisos al buzón
Tras ello, tenemos que dar permisos, imaginemos que tenemos dos empleados, ana@miempresa.com y bruno@miempresa.com , y por si fuera poco, tenemos a jefe@miempresa.com que quiere poder ver mensajes, pero que no se note su presencia. Cyrus establece las siguientes flags de permisos (y cuando las usas un par de veces, te las puedes aprender en este orden lrswipcda):
- l: (lookup) Nos permite obtener este buzón en un listado.
- r: (read) Da permiso de lectura a los contenidos del buzón.
- s: (seen) Mantiene el estado de seen/recent entre varias sesiones IMAP. Los mensajes vistos y recibidos recientemente.
- w: (write) Escritura de flags en los mensajes del buzón.
- i: (insert) Permite copiar o mover mensajes aquí.
- p: (post) Nos deja entregar un mensaje en este buzón.
- c: (create) Crear un nuevo sub-buzón.
- d: (delete) Nos deja borrar mensajes o el propio buzón.
- a: (acl) Nos deja administrar el buzón, o cambiar estos permisos del ACL.
Así que, para dar permiso a los usuarios seleccionados, y adicionalmente dejar que cualquiera pueda entregar correos aquí:
Podríamos utilizar setaclmailbox en lugar de sam. En este punto, ya podríamos utilizar el buzón desde los usuarios ana, bruno y jefe.
Recibir correo en el buzón compartido desde Postfix
Si queremos habilitar la entrega de correo a través de una dirección de e-mail, primero debemos establecer un usuario que se utilizará para hacer la entrega. Para ello, editamos /etc/imapd.conf de la siguiente forma (el nombre de usuario puede ser el que queramos, siempre y cuando no esté en el sistema):
1 | postuser: sharedmanager |
Podemos colocar dicha línea en cualquier punto del archivo, yo prefiero poner al final todas las modificaciones a ese archivo.
Ahora, debemos crear un alias de correo a un nombre de usuario del sistema. Para ello editamos /etc/postfix/valias introduciendo lo siguiente:
1 | info@miempresa.com infomiempresacom |
Así le decimos que info@miempresa.com corresponde con el alias infomiempresacom, que introduciremos en /etc/aliases así:
1 | infomiempresacom: sharedmanager+shared/info@miempresa.com |
Tras esto, dependiendo de la configuración que tengamos en postfix (el contenido debe venir precedido por «hash:» virtual_alias_maps y alias_maps en /etc/postfix/main.cf ; Nota, mis archivos se llaman /etc/aliases y /etc/postfix/valias, los tuyos tal vez sean distintos), tendremos que ejecutar lo siguiente:
Con esto crearemos los archivos /etc/aliases.db y /etc/postfix/valias.db. Ya deberíamos poder recibir los e-mails enviados a info@miempresa.com en el buzón compartido por Ana y Bruno. Cada usuario utilizará su contraseña para entrar en el buzón y el jefe podrá leer todos los mails sin marcarlos como leídos, ni quitar el flag de recién recibido.
Foto principal: Annie Spratt
Muy interesante el artículo, gracias por publicarlo aquí.
Gracias a ti.
I believe there must be a better way. Is it possible to keep all email replies in the shared box’s sent items rather than the user’s onalld this is-side work. Thank you in advance for any insight into Cyrus’s dark realm.
This post has really mesmerised, to say the least. The author of this piece is a remarkable person. Thank you for sharing this with us. Roofing Sevenoaks
This webpage is excellent and really helpful. Dover Roofer
This post is excellent. It has been quite beneficial. Please keep up the great work. Roofer Tenterden
I appreciate you offering the information in this article. Thank you for bringing up this subject; I’ve been interested in learning more. Stump Grinding Stafford
We can place this line at any point in the file, I prefer to put all the modifications to that file at the end. backrooms game
this is a great post, I’m glad i came across it. Kingston rain gutter cleaning
We tried these codes in our dorm at Arlington. The result is awesome!
I always like to put the domain to which they belong, although it is uncomfortable to always write, it serves as a security measure against confusion and allows me to create mailboxes in different domains.
Greg | Atlanta painting contractor
I appreciate you offering the information in this article. marketing agency Austin texas
You have touched good quality points here. In whatever way continue writing.
psychology consultation specialists
I appreciate you sharing your wise knowledge with me. Your website is excellent. Your website contains an incredible amount of information. appliance repair mount vernon
So this is how you do it. Thanks Hair Bows
I really like reading through a post that can make people think. Also, many thanks for permitting me to comment!
Its like you read my mind! You appear to know so much about this, like you wrote the book in it or something. saskatooninsulation.com/blown-in-insulation-saskatoon
Many thanks for the insightful information you provided. It has been difficult for me to come up with numerous queries pertaining to this matter. I shall walk in your footsteps!
dordle
This provides a useful tool for monitoring the evolution in real time. As an example, the leaves in northern Maine will change at a phrazle quicker pace than those in southern Rhode Island, so it’s important to double-check the schedule after you’ve decided where to go.
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! emoji
This would be a great idea for my son’s birthday soon.
goplus electric bike
I really like your sharing, the information is really helpful to me. Hope you will have more interesting and interesting posts. ge dishwasher repairs
Although it is inconvenient to constantly specify the domain, doing so acts as a security precaution against misunderstanding and enables me to setup mailboxes in several domains.
This thread just amazes me! Thank you for this. Dayton SEO
Such a nice post. Thanks for sharing! dumpster rental woonsocket, ri
It was a really helpful and very informative blog. It really helps me a lot but if you want to also learn something new and interesting. drive mad
I think there has to be a more effective strategy. Is it feasible to have all responses to emails stored in the shared inbox’s sent items rather than the user’s individual inbox? If you have any information on Cyrus’s underworld, I would really appreciate it.
Hey, I found Screen enclosures sarasota and I would love to share it with fellow home owners.
This thread really gave me a lot of insights! Thrix Health
I would love doing this with my closest friends and families.
usps change of address
If we want to enable mail delivery via an email address, we must first set up a user that will be used for delivery. Anyway, if you are looking for a gold jewelry store near me, just hit us up!
I love what I am seeing here! Thank you so much!
Tulsa accountant
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 onGrease T Birds Jacket
Thanks for the insights. Check credit repair spring valley nv for more info.
Wonderful article. Fascinating to read. I love to read such an excellent article. Thanks! It has made my task more and extra easy. Keep rocking.
Freddie Mercury Jackets
I’m sure you won’t be disappointed when you join this very special game, it will make you happier emoji
This thread can really give you a lot of insights. Boca Raton Tile Removal
Wow. The script is kinda amazing for https://www.drywallelpaso. Cheers!
I like this post very much, thanks for sharing. I really appreciate your work. website
I encountered a problem using these codes at Greensboro Drywall Contractors. Is there an ongoing process to solve this issue?
Interesting read. It is complicated to navigate the waters of how to’s on the best way to go about things within a company, such as figuring out what works best to use as the password email combinations for sharing information, as suggested in this article. Thanks for sharing and getting the questions asked to open doors in others’ minds.
link
Google Chrome 110.0.0.0 en Windows Windows NT
I like this post very much, thanks for sharing. I really appreciate your work.
top artificial grass by your side, you can rest easy knowing that the job is in good hands.
That is good to know. electrical services bradenton There is something to learn every time.
Many people’s lives can be changed by an excellent book or article. I appreciate you offering this useful information, so please keep it current. I’ll follow you constantly. emoji
Your posts are very detailed and meticulous, hope that next time you will have more good articles to share with readers. If you have more time, please visit: poppy playtime
Wow! I love all this information. What a a fun way to allow students to process information!
Actually, it’s pretty good to see! Tiler Adelaide
Thanks for sharing! Tiler Adelaide
Thanks for letting us know! Tiler Wollongong
Good to know about this! Tiling Wollongong
Excellent post! Concreters in Wollongong
Thanks for sharing this to public! Adelaide Landscaping
Such a great post! Glenelg South
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! Hallett Cove
Very informative post! tiler melbourne
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
It’s so kind of you! Solar Panels Adelaide
Many many thanks to you! Cleaning Services 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
Nice article, waiting for your anothe. Painters Adelaide
This blog is very nice. I will keep coming here again and again. Visit my link as well here tala de arboles frutales
Very much appreciated. Thank you for this excellent article. Keep posting!
I found screen enclosures fort lauderdale to be reliable and they have expertise in what they do.
I learned a lot and got very helpful information from your blog. Thanks for sharing. All the best! Ricky Luck from Commercial Roofing in Prince George