Japanatron Logo

I struggled a bit with figuring out how to specify the from email address when sending mail on the Linux command line.  In short, you need to use the -r option.  For example:

echo "Enter your message here.  Thank you." | mail -s "Enter your subject here" -r This email address is being protected from spambots. You need JavaScript enabled to view it. This email address is being protected from spambots. You need JavaScript enabled to view it.

Related Articles

Windows - Install Fonts Via Co...

I found this awesome Windows powershell script that allows you to install fonts via the command line.  This is very convenient for mass deployment.$ssfFonts = 0...

Windows - Disable Startup Reco...

If a colleague's PC crashes, Windows will restart into start-up recovery.  The problem here is that start-up recovery often makes an even bigger mess of the com...

My 30-Day Trial of Google Apps...

Although I adore running my own mail server, I was curious about Google Apps for Work, specifically Gmail for Work.  Could it block spam as effectively as my ow...

Setting Up SPF on Zimbra Runni...

SPF is awesome for stopping delivery of spoofed spam and junk back-scatter, but many of the articles on how to set up SPF in Zimbra are old and out-of-date.  It...