Difference between revisions of "Webmail attachments"

From SME Server
Jump to navigationJump to search
(Created page with "Some time you may find that attachements added to messages created from within webmail (Horde) are corrupted (as an expample drawing files in DWG format). This is due to an incor...")
(No difference)

Revision as of 19:15, 27 May 2012

Some time you may find that attachements added to messages created from within webmail (Horde) are corrupted (as an expample drawing files in DWG format). This is due to an incorrect identification of the attachments. To correct this behavoiur you need to get the following library:

wget http://apt.sw.be/redhat/el4/en/i386/dag/RPMS/php-pecl-fileinfo-1.0.4-2.el4.rf.i386.rpm

and then install it:

yum localinstall php-pecl-fileinfo-1.0.4-2.el4.rf.i386.rpm

Create the a custom template fragment for php.ini creting the following folder:

/etc/e-smith/templates-custom/etc/php.ini

Create into the folder a file named 25magicmimetime and containing the following instructions:

;Magic mime time
mime_magic.magicfile = "/usr/share/file/magic.mime"
extension=fileinfo.so

Expand template: