Send email from a fake address

How to send fake emails from fake/invented email addresses

Want to play a trick on your friends?

How about sending an email to your Linux-using Geek buddies from Linus Torvalds, or the Queen of England? Maybe your sister loves Justin Bieber?

Ok, you just need Postfix installed on your Linux box and a simple bash script, and the most excellent mime-construct. I use Vim text editor for my guide, but just replace it with the editor of your choice.

1. Install mime-construct from the repos:
sudo apt-get install mime-construct

2. Put this bash script in your /bin directory:

cd bin


And add this simple code:

# Fake email just for fun
cat victims.txt | { while read; do
  echo $REPLY >> fakemailog.txt
  mime-construct –header ‘Sender:’ –header ‘From:’ –to $REPLY –subject ‘Invitation to the Royal Ball’ –file fakebody.txt
  sleep 2

4. Make the script executable:

chmod +x

5. Write your funny fake email message in a file called “fakebody.txt”

vim fakebody.txt 

The Queen is holding a special royal ball for the gullible people in your town.

You are invited to assist on the 1st of April, 2012


6. There is a log file in case you mail to multiple addresses
(to run a “tail -f fakemail.txt” to see how far the script has got with your list of victims):

vim fakemailog.txt

7. Now create the list of email addresses you want as victims 🙂

vim victims.txt

And add:

8. Run your fake email script:


Off you go and have some fun, I need to dash, I just received an email from the Queen!!


Getting Java Console on HP ILO to work with Iceweasel on Debian 64bit

Remote HP Server Administration via ILO
If you ever have to connect to remote servers, especially HP which have ILO (Integrated Lights Out) technology, you’ll probably have come across the problem where you can get to the Administration page, but the Console won’t open.

Using Windows
I used to just fire up Virtual Box with Windows Xp (32bit) installed an do everything from there. ILO allows you to connect with Java install and on windows the .NET framework.

Linux and 64bit Java
One of he main issues with Linux and Java was that you could get the (Sun) 32bit Java to work, but the 64bit Java would fail miserably.

Java Versions
Java can be a real pain if you don’t have the latest version installed, and if you run Debian “Stable” (Currently Squeeze) you will have to install the Sun Java package from their website if you need the latest version as Debian is no longer going to have it in the repos:

Java (64bit) Version/Package Experiments
One of my work colleagues recently called me over and showed me the ILO Java console open and working with Iceweasel on his Debian Squeeze box. I was amazed and asked how he did it.
He’d basically installed a specific version (jdk1.6.0_17) of the sun-java6-jdk package, and symlinked to it.


  • 1. Download the sun-jdk1.6.0_17 source (i’ll post a link later)
  • 2. Unpack it to /opt
  • 3. Cd to /usr/lib/mozilla/plugins
  • 4. Symlink these two files -> /opt/java/jdk1.6.0_17/jre/lib/amd64/ -> /opt/java/jdk1.6.0_17/jre/lib/amd64/