Difference between revisions of "Mime-construct installation"

From Kolmisoft Wiki
Jump to navigationJump to search
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This package is used to send faxes to emails.
This package is used to send faxes to emails. '''Not used starting from MOR 0.7'''


==Installation==
==Installation==
Line 17: Line 17:


==Testing==
==Testing==
===Program installed===


Write in bash to test:
Write in bash to test:
Line 27: Line 29:


If you see something else - troubleshoot.
If you see something else - troubleshoot.
===Simple email sending===
mime-construct --to "your@mail.com" --subject 'hi there' --string "test"
===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


==Errors==
==Errors==
Line 35: Line 45:


  perl -MCPAN -e "install Proc::WaitStat"
  perl -MCPAN -e "install Proc::WaitStat"
Then press ENTER half a million times (28 actually) and select continent/country when it asks.
===Can't locate MIME/Types.pm in @INC===
perl -MCPAN -e "install MIME::Types"
===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
===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
=== failed to open /dev/null: Permission denied ===
chmod 666 /dev/null
=== Can't locate Term/ReadKey.pm in @INC ===
perl -MCPAN -e shell
install Term::ReadKey
=== 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

Latest revision as of 12:11, 20 August 2009

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

Installation

Debian

apt-get install mime-construct

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 

Testing

Program installed

Write in bash to test:

mime-construct

You should see:

mime-construct: no recipients specified

If you see something else - troubleshoot.

Simple email sending

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

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

Errors

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.

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

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


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


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

failed to open /dev/null: Permission denied

chmod 666 /dev/null


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

perl -MCPAN -e shell
install Term::ReadKey

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