How to install sendEmail on a Linux host


sendEmail is a single file Perl program. Most Linux hosts already have the Perl runtime installed, so all we need to do is get the sendEmail program onto the host in a suitable folder.

These instructions use generic programs that should be available on any modern Linux operating, whether Debian/Ubuntu or Fedora/RedHat.


In this how-to:

1. sendEmail version 1.56 is used. If you use a newer release some file names will change.
2. We will assume that our program folder is /orm/SW
3. We will put sendEmail in the /usr/bin folder if we can, otherwise in our program folder.


Steps:


First, I suggest you work in a scratch folder, like /tmp, so using cd:
cd /tmp

Next, fetch the sendEmail archive file from the Internet web site:
wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz

Now we have the sendEmail-v1.56.tar.gz file in our host's /tmp folder. This archive contains four files, three of which are documentation. We only want the program itself, so to extract it use:
gzip -dc sendEmail-v1.56.tar.gz | tar xf - sendEmail-v1.56/sendEmail

Now we have the sendEmail program in /tmp/sendEmail-v1.56/sendEmail and will move it to /usr/bin:
mv sendEmail-v1.56/sendEmail /usr/bin

If we don't have write permission to /usr/bin we can move it to our program folder instead:
mv sendEmail-v1.56/sendEmail /orm/SW

Now our extraction folder is empty so we can remove it:
rmdir sendEmail-v1.56

And finish clean up by removing the archive we got from the Internet:
rm sendEmail-v1.56.tar.gz


It is best to test programs as an ordinary user rather than a superuser.
Make sure you can execute sendEmail in our program folder.
Let us change to that folder to simulate the environment:
cd /orm/SW

If it is in the /usr/bin folder then invoke it unqualified:
sendEmail

If it is in our program folder then Linux requires a path:
./sendEmail


If it executes, sendEmail will give you a list of parameters.


Command line summary:

cd /tmp
wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz
gzip -dc sendEmail-v1.56.tar.gz | tar xf - sendEmail-v1.56/sendEmail
mv sendEmail-v1.56/sendEmail /usr/bin
rmdir sendEmail-v1.56
rm sendEmail-v1.56.tar.gz
[test procedure]


Prepared by Ormandy, Inc.