We have the following servers:
-5 file servers using gluster for cloud file hosting
-several mail servers using postfix+dovecot+roundcube.
Task i need you to do:
1) Modify RoundCube to:
a) All attachments must be saved in GlusterFS. Just one copy of the files (not one copy for every Mail Recipient). With mysql you will have to create a database with the files and the permisson to download them. For example, mail id "1234" wich was sent to user1 and user2 with file attachment "[url removed, login to view]". So just user1 and user2 will be able to download the file.
b)When the users open a mail with attachments, they will see a link to the files.
c)Modify the max size file attachment to "unlimited" only for mails sent to others users of my system. Example: a user can send 2gb file attachment only if all the Recipients are users of my mail system but can't if the mail is sent to external mail users (gmail, yahoo etc). This has to be done in the roundcube web when the user tries to attatch the file, if in the Recipient list there are others domains an alert will appear stating "file size limit is 5mb to other domain mail users".