Mime-construct installation

From Kolmisoft Wiki

Jump to: navigation, search

This package is used to send faxes to emails. Not used starting from MOR 0.7

Contents

[edit] Installation

[edit] Debian

apt-get install mime-construct

[edit] Centos/Fedora

cd /usr/src
wget http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/mime-construct-1.9.tar.gz
tar xzvf mime-construct-1.9.tar.gz
cd /usr/src/mime-construct-1.9
perl Makefile.PL
make install 

[edit] Testing

[edit] Program installed

Write in bash to test:

mime-construct

You should see:

mime-construct: no recipients specified

If you see something else - troubleshoot.

[edit] Simple email sending

mime-construct --to "your@mail.com" --subject 'hi there' --string "test"

[edit] Email with attachment

/usr/bin/mime-construct --header 'Sender: MOR_FAX@TEST.COM' --header 'From: MOR_FAX@TEST.COM' --to your@mail.com --subject 'Email test' --file-attach /var/spool/asterisk/faxes/fax_test.pdf

[edit] Errors

[edit] Can't locate Proc/WaitStat.pm in @INC

This happens for Centos/Fedora. Fix:

perl -MCPAN -e "install Proc::WaitStat"

Then press ENTER half a million times (28 actually) and select continent/country when it asks.

[edit] Can't locate MIME/Types.pm in @INC

perl -MCPAN -e "install MIME::Types"


[edit] Can't locate CPAN.pm in @INC

http://guides.ovh.com/InstallCpan

cd /usr/src/
wget http://193.138.191.205/packets/CPAN-1.9205.tar.gz
tar xvfz CPAN-1.9205.tar.gz
cd CPAN-1.9205
perl Makefile.PL
make install


[edit] Can't locate ExtUtils/MakeMaker.pm in @INC

no solution yet...


When using mime-construct to send email and email is not received check /var/log/exim/main.log

[edit] failed to open /dev/null: Permission denied

chmod 666 /dev/null


[edit] Can't locate Term/ReadKey.pm in @INC

perl -MCPAN -e shell
install Term::ReadKey

[edit] User 0 set for local_delivery transport is on the never_users list

ln -s libdb2.so.3 libdb.so.3
/scripts/eximup --force
/etc/rc.d/init.d/exim restart
Personal tools

Try MOR

Try M2