separate file directory dovecot / iredmail

Did you install the tutorial iredmail atravéz contained right here, but now a situation has arisen. I’ll need a lot of space to store files and email, but there is no possibility to increase only the size of disk space. I then thought about mounting a disc in my instance of S3, with only a directory for files and email. S3FS got to ride with, but to create the directory of email starts giving a lot of error in the dovecot log, because when using the vmail user, I believe that the Perm does not work, plus creates all files within the directory and -mail, no more proceeds with other creations and is in the LOG loop. Does anyone know an alternative to using a directory without space limitations in a digital instance of the ocean? Or operate this situation I set up using S3 and have dovecot / iredmail create files in that directory?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This comment has been deleted

Éxito, problema resuelto!!! 😁 👍

En mi caso monté un Bucket en mi instancia de EC2, y sucede que ni postfix ni dovecot son compatibles con FUSE, por lo tanto no podía ni enviar ni recibir correo.

La solución es la siguiente: Instalé Postfix y Dovecot como normalmente lo hago con los mailboxes en una carpeta de mi EBS, luego generé un trigger en postfix como se indica en este tutorial.

Lo que hace mi trigger es interceptar el correo entrante, copiarlo al Bucket de S3, y en el mailbox que está en el EBS, crea un link simbólico (ln -s) hacia el correo guarado en el bucket

De esa manera todos los correos se guardan en el bucket, y en el EBS solo tengo los links simbólicos que solo pesan 100 bytes cada uno.

Este es mi script

$n=rand(1000, 9999);
$file = fopen("/path/mailbox/s3/$nombre", "a");

$fd = fopen("php://stdin", "r");
$email = "";
while (!feof($fd)) {
    $line = fread($fd, 1024);
    $email .= $line."\r";

fwrite($file, $email);

shell_exec("ln -s /path/mailbox/s3/$nombre /path/mailbox/EBS/$nombre"); ?>

Problema resuelto 😀

Tengo el mismo problema. Hago la conexión vía telnet, y cuando intento leer l bandeja de entrada aparece un error, y en el log tengo esto

Created dotlock file’s timestamp is different than current time (0 vs 1493698947)

s3fs no es tan compatible con dovecot.

Lo resolviste?