<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:og="http://ogp.me/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:schema="http://schema.org/" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" version="2.0" xml:base="https://www.linuxjournal.com/">
  <channel>
    <title>email</title>
    <link>https://www.linuxjournal.com/</link>
    <description/>
    <language>en</language>
    
    <item>
  <title>Sending Emails? Send them from Linux Terminal</title>
  <link>https://www.linuxjournal.com/content/sending-emailssend-them-linux-terminal</link>
  <description>  &lt;div data-history-node-id="1340857" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-field-node-image field--type-image field--label-hidden field--item"&gt;  &lt;img loading="lazy" src="https://www.linuxjournal.com/sites/default/files/nodeimage/story/send-them-from-linux-terminal.jpg" width="850" height="500" alt="Send them from Linux Terminal" typeof="foaf:Image" class="img-responsive" /&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/suparna-ganguly" lang="" about="https://www.linuxjournal.com/users/suparna-ganguly" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Suparna Ganguly&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p dir="ltr"&gt;Does your job require sending a lot of emails on a daily basis? And you often wonder if or how you can send email messages from the Linux terminal.&lt;/p&gt;

&lt;p dir="ltr"&gt;This article explains about 6 different ways of sending emails using the Linux terminal. Let’s go through them.&lt;/p&gt;

&lt;h2 dir="ltr"&gt;sendmail Command&lt;/h2&gt;

&lt;p dir="ltr"&gt;Use the sendmail command to send emails to one or more people at once. Sendmail is one of the most popular SMTP servers in Linux. You can easily send emails directly from the command line using the sendmail command. To route the information, the sendmail command makes use of the network configured on your system. &lt;/p&gt;

&lt;p dir="ltr"&gt;Let’s execute the following commands to create a file having email content.&lt;/p&gt;

&lt;pre dir="ltr"&gt;
cat /tmp/email.txt

Subject: Terminal Email Send

Email Content line 1

Email Content line 2&lt;/pre&gt;

&lt;p dir="ltr"&gt;The Subject will be the line used as a subject for the email.&lt;/p&gt;

&lt;p dir="ltr"&gt;Now, to send the email, use the following syntax.&lt;/p&gt;

&lt;pre dir="ltr"&gt;
sendmail user@example.com  &lt; /tmp/email.txt&lt;/pre&gt;

&lt;h2 dir="ltr"&gt;mail Command&lt;/h2&gt;

&lt;p dir="ltr"&gt;Just like Sendmail, you can use the mail command for sending emails from the terminal. Use the below-given command for this purpose.&lt;/p&gt;

&lt;pre dir="ltr"&gt;
mail -s "Test Subject" user@example.com &lt; /dev/null&lt;/pre&gt;

&lt;p dir="ltr"&gt;Here -s defines the email subject. &lt;/p&gt;

&lt;p dir="ltr"&gt;To send an attachment included within the email, type the below-mentioned line.&lt;/p&gt;

&lt;pre dir="ltr"&gt;
mail -a /opt/backup.sql -s "Backup File" user@example.com &lt; /dev/null&lt;/pre&gt;

&lt;p dir="ltr"&gt;Here -a is used to include attachments. If yours is a Debian-based distro, use -A because it uses the mailutils package.&lt;/p&gt;

&lt;p dir="ltr"&gt;If you have to send emails to multiple recipients at a time, add comma-separated emails in the following manner.&lt;/p&gt;

&lt;pre dir="ltr"&gt;
mail -s "Test Email"  user@example.com,user2@example.com &lt; /dev/null&lt;/pre&gt;

&lt;h2 dir="ltr"&gt;mailx Command&lt;/h2&gt;

&lt;p dir="ltr"&gt;The GNU&lt;a href="https://mailutils.org/"&gt; Mailutils&lt;/a&gt; is a combination of multiple utility packages. All Mailutils can operate on mailboxes starting from UNIX maildrops, maildir, and all the way up to remote mailboxes. These mailboxes are accessed with IMAP4, POP3, and SMTP. Mailutils is made for developers, regular Linux users, and system administrators. &lt;/p&gt;

&lt;p dir="ltr"&gt;For the installation purpose, use the following command.&lt;/p&gt;

&lt;pre dir="ltr"&gt;
sudo apt install mailutils&lt;/pre&gt;

&lt;p dir="ltr"&gt;The mailutils package is mainly made of 2 commands, mail and mailx, and they both function in a similar manner.&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/sending-emailssend-them-linux-terminal" hreflang="en"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Wed, 20 Oct 2021 16:00:00 +0000</pubDate>
    <dc:creator>Suparna Ganguly</dc:creator>
    <guid isPermaLink="false">1340857 at https://www.linuxjournal.com</guid>
    </item>
<item>
  <title>FOSS Project Spotlight: Tutanota, the First Encrypted Email Service with an App on F-Droid</title>
  <link>https://www.linuxjournal.com/content/foss-project-spotlight-tutanota-first-encrypted-email-service-app-f-droid</link>
  <description>  &lt;div data-history-node-id="1340121" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/matthias-pfau" lang="" about="https://www.linuxjournal.com/users/matthias-pfau" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Matthias Pfau&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;
Seven years ago, we started building &lt;a href="https://tutanota.com"&gt;Tutanota&lt;/a&gt;, an encrypted email service
with a strong focus on security, privacy and open source. Long before the
Snowden revelations, we felt there was a need for easy-to-use encryption that
would
allow everyone to communicate online without being snooped upon.
&lt;/p&gt;

&lt;img src="https://www.linuxjournal.com/sites/default/files/styles/max_650x650/public/u%5Buid%5D/team_1280_white.png" width="650" height="483" alt="""" class="image-max_650x650" /&gt;&lt;p&gt;&lt;em&gt;Figure 1. The Tutanota team's motto: "We fight for privacy with automatic
encryption."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;
As developers, we know how easy it is to spy on email that travels through the
web. Email, with its federated setup is great, and that's why it has
become the main form of online communication and still is. However, from a
security perspective, the federated setup is troublesome—to say the
least.
&lt;/p&gt;

&lt;p&gt;
End-to-end encrypted email is difficult to handle on desktops (with key
generation, key sharing, secure storing of keys and so on), and it's close to impossible on
mobile devices. For the average, not so tech-savvy internet user, there are a
lot of pitfalls, and the probability of doing something wrong is, unfortunately,
rather high.
&lt;/p&gt;

&lt;p&gt;
That's why we decided to build Tutanota: a secure email service that
is so easy to use, everyone can send confidential email, not only the
tech-savvy. The entire encryption process runs locally on users'
devices, and it's fully automated. The automatic encryption also enabled us to build
fully encrypted email apps for Android and iOS.
&lt;/p&gt;

&lt;p&gt;
Finally, end-to-end encrypted email is starting to become the standard:
&lt;a href="https://tutanota.com/blog/posts/secure-email-encryption"&gt;58% of all email sent from Tutanota already are end-to-end encrypted, and
the percentage is constantly
rising&lt;/a&gt;.
&lt;/p&gt;

&lt;img src="https://www.linuxjournal.com/sites/default/files/styles/max_650x650/public/u%5Buid%5D/new_client_white_sending.png" width="650" height="650" alt="""" class="image-max_650x650" /&gt;&lt;p&gt;
&lt;em&gt;Figure 2. Easy email encryption on desktops and mobile devices is now possible for
everyone.&lt;/em&gt;&lt;/p&gt;

&lt;span class="h3-replacement"&gt;
The Open-Source Email Service to Get Rid of Google&lt;/span&gt;

&lt;p&gt;
As open-source enthusiasts, our apps have been open source from the start, but
putting them on F-Droid was a challenge. As with all email services, we have used
Google's FCM for push notifications. On top of that, our encrypted email
service was based on Cordova, which the F-Droid servers are not able to
build.
&lt;/p&gt;

&lt;p&gt;
Not being able to publish our Android app on F-Droid was one of the main
reasons we started to re-build the entire Tutanota web client. We are privacy
and open-source enthusiasts; we ourselves use F-Droid. Consequently, we
thought that our app must be published there, no matter the effort.
&lt;/p&gt;

&lt;p&gt;
When rebuilding our email client, we made sure not to use Cordova anymore and
to replace Google's FCM for push notifications.
&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/foss-project-spotlight-tutanota-first-encrypted-email-service-app-f-droid" hreflang="en"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Thu, 11 Oct 2018 12:00:00 +0000</pubDate>
    <dc:creator>Matthias Pfau</dc:creator>
    <guid isPermaLink="false">1340121 at https://www.linuxjournal.com</guid>
    </item>
<item>
  <title>Cleaning Your Inbox with Mutt</title>
  <link>https://www.linuxjournal.com/content/cleaning-your-inbox-mutt</link>
  <description>  &lt;div data-history-node-id="1340012" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/kyle-rankin" lang="" about="https://www.linuxjournal.com/users/kyle-rankin" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Kyle Rankin&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;&lt;em&gt;Teach Mutt yet another trick: how to filter messages in your Inbox
with a simple macro.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;
I'm a longtime Mutt user and have written about it a number of times in
&lt;em&gt;Linux Journal&lt;/em&gt;. Although many people may think it's strange to be
using a
command-line-based email client in 2018, I find a keyboard-driven email
client so much more efficient than clicking around in a web browser. Mutt is
extremely customizable, which presents a steep learning curve
at first, but now that I'm a few decades in, my Mutt configuration is pretty
ideal and fits me like a tailored suit.
&lt;/p&gt;

&lt;p&gt;
Of course, as with any powerful and configurable tool, every now and then I
learn of a new Mutt feature that improves my quality of life dramatically. In
this case, I was using an email system that didn't offer server-side filters.
Because I was a member of many different email groups and aliases, this meant
that my Inbox was flooded with emails of all kinds, and it became difficult to
filter through all the unimportant email I wanted to archive with the emails
that demanded my immediate attention.
&lt;/p&gt;

&lt;p&gt;
There are many ways to solve this problem, some of which involve tools
like offlineimap combined with filtering tools. With email clients like
Thunderbird, you also can set up filters that automatically move email to
other folders every time you sync. I wanted a similar system with Mutt,
except I
didn't want it to happen automatically. I wanted to be able to press a key first so I
could confirm what was moving. In the process of figuring this out, I discovered a few gotchas I
think other Mutt users will want to know about if they set up a similar
system.
&lt;/p&gt;

&lt;span class="h3-replacement"&gt;
Tagging Emails&lt;/span&gt;

&lt;p&gt;
The traditional first step when setting up a keyboard macro to move email
messages
based on a pattern would be to use Mutt's tagging-by-pattern feature (by
default, the T key) to tag all the messages in a folder that match a certain
pattern. For instance, if all of your cron emails have "Cron Daemon" in the
subject line, you would type the following key sequence to tag all of those
messages:

&lt;/p&gt;&lt;pre&gt;
&lt;code&gt;
TCron Daemon&lt;enter&gt;
&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;
That's the uppercase T, followed by the pattern I want to match in the
subject line (Cron Daemon) and then the Enter key. If I type that while I'm
in my Mutt index window that shows me all the emails in my Inbox, it will tag
all of the messages that match that pattern, but it won't do anything with them
yet. To act on all of those messages, I press the ; key (by default), followed by
the action I want to perform. So to save all of the tagged email to my
"cron" folder, I would type:

&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/cleaning-your-inbox-mutt" hreflang="en"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Tue, 28 Aug 2018 12:00:00 +0000</pubDate>
    <dc:creator>Kyle Rankin</dc:creator>
    <guid isPermaLink="false">1340012 at https://www.linuxjournal.com</guid>
    </item>
<item>
  <title>Achieving Inbox Zero</title>
  <link>https://www.linuxjournal.com/content/achieving-inbox-zero</link>
  <description>  &lt;div data-history-node-id="1339603" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/shawn-powers" lang="" about="https://www.linuxjournal.com/users/shawn-powers" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Shawn Powers&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;&lt;em&gt;See how Google Inbox helps Shawn reach his quest for "inbox zero".&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;
I've never been able to accomplish "inbox zero" for more than a couple
hours. Part of it is due to poor organization on my part, and part of it
is due to being too busy. The problem isn't that I get more email than
I can handle (although that's probably true, I get a couple hundred
messages a day), it's that most messages require a followup that I
can't accomplish immediately. I've tried to move items I need
to handle later quickly into a to-do list like Wunderlist, but it's an extra
step that takes more time, so I just let things pile up in my inbox.
&lt;/p&gt;

&lt;p&gt;
For some reason, I recently decided to try Google Inbox. It's not a new
offering from Google, but I think it's matured since I originally tried
it years ago. See, Google Inbox allows me to keep inbox zero with minimal
effort and zero guilt. Here's the premise:
&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;
&lt;p&gt;
When an email comes in, a quick swipe to the right will archive
it. It's not even a click—just a swipe and it's gone.
&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;
&lt;p&gt;
If I need to open it, I can tap it, then click a check box to archive
it if I don't need to follow up.
&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;
&lt;p&gt;
Here's the beauty. If I need to follow up on a message, even if it's
just something interesting I want to read later at my leisure, I can
snooze it. In the screenshot, you can see the options for snoozing,
and they work perfectly.
&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://www.linuxjournal.com/files/linuxjournal.com/ufiles/imagecache/large-550px-centered/u1000009/12213googlef1.png" alt="" title="" class="imagecache-large-550px-centered" /&gt;&lt;p&gt;
The idea of snoozing email isn't new. I remember using
"boomerang"
for such a thing a few years ago. But Google Inbox has integrated the
snooze and archive features so well that I can clear my inbox
&lt;em&gt;completely&lt;/em&gt;
in moments and not worry that I've forgotten something. In fact, the
snooze feature works much better than just leaving stuff in my inbox,
because it actually comes back to my attention after the snooze period
instead of falling off the end of my inbox.
&lt;/p&gt;

&lt;p&gt;
Again, it's not a new product,
but it has revolutionized my life. You can check it out without messing
up your regular Gmail inbox by logging in &lt;a href="http://inbox.google.com"&gt;here&lt;/a&gt; in
a web browser or by downloading the mobile app. You won't regret it!
&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/achieving-inbox-zero" hreflang="und"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Tue, 16 Jan 2018 23:13:15 +0000</pubDate>
    <dc:creator>Shawn Powers</dc:creator>
    <guid isPermaLink="false">1339603 at https://www.linuxjournal.com</guid>
    </item>
<item>
  <title>The Peculiar Case of Email in the Cloud</title>
  <link>https://www.linuxjournal.com/content/peculiar-case-email-cloud</link>
  <description>  &lt;div data-history-node-id="1339173" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/shawn-powers" lang="" about="https://www.linuxjournal.com/users/shawn-powers" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Shawn Powers&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;
Most of the time when I start a project, or spin up a virtual server,
it's done in my own basement "server farm". Not too many years ago, if
I wanted those services to be public, I'd simply port-forward from my
static IP into my personal machines. Or, perhaps I'd set up a name-based
virtual host as a reverse proxy if I needed to expose a Web app. The nice
thing about hosting projects locally is that when I need to send e-mail messages
(usually error notifications), I simply can send them through my ISP's
SMTP server. Granted, that's gotten a little more complex through the years,
as ISPs are starting to lock down their mail servers and relay
mail only for valid domains, but that just means I have to register
my static IP properly. It works nicely.
&lt;/p&gt;
&lt;p&gt;
The problem is, the issues I've had with my office Internet connection
during the past year really have forced me to reconsider how I host public-facing services. I've been forced, by necessity, to spin up cloud
instances and host my numerous projects remotely. I'm actually rather
thankful for the need, because although it's not free to host projects
remotely, it's fairly inexpensive and much more convenient. I still
have my Raspberry Pi colocated in Austria for free (thanks again, Kyle
Rankin, for pointing me to that awesome service!). Unfortunately, the
Raspberry Pi isn't powerful enough for many of the crazy things I try
on-line. It struggles, for instance, to host MySQL. So my main
"project"
server is a Google Compute instance that I end up paying about $15/month
to keep active. That's not cheap, but I actually think I might be able
to turn off one of my ESXi machines at home now, and I suspect it uses
more than that in electricity.
&lt;/p&gt;

&lt;span class="h3-replacement"&gt;
The Problem&lt;/span&gt;

&lt;p&gt;
The problem with Internet-hosted servers is that the lack of a usable
SMTP relay makes e-mail very difficult. Yes, it's possible to install
Postfix as a full-blown e-mail server, but I have no desire to worry
about securing my own e-mail server from attacks attempting to use me
as a SPAM relay. And although installing a non-relaying e-mail server
certainly is possible, I've found that unless you configure SPF records,
MX records and get particularly lucky, e-mail sent from a cloud instance
often never arrives at the destination. This is especially true if you
spin up servers on the fly.
&lt;/p&gt;

&lt;p&gt;
The truth of the matter is, the only reason I want e-mail in the first
place is so I can get notifications from my servers when something goes
wrong. I don't ever need to reply to the e-mails. I don't really care where
the e-mails come from (address-wise). I just want to have confidence that
my notifications will get to me!
&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/peculiar-case-email-cloud" hreflang="und"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Mon, 03 Oct 2016 12:00:00 +0000</pubDate>
    <dc:creator>Shawn Powers</dc:creator>
    <guid isPermaLink="false">1339173 at https://www.linuxjournal.com</guid>
    </item>
<item>
  <title>Sending Email with Netcat</title>
  <link>https://www.linuxjournal.com/content/sending-email-netcat</link>
  <description>  &lt;div data-history-node-id="1011489" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/pete-vargas-mas" lang="" about="https://www.linuxjournal.com/users/pete-vargas-mas" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Pete Vargas Mas&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;Is it possible to send an email from a host that has no email client software installed?  As long as you have &lt;a href="http://netcat.sourceforge.net/"&gt;netcat&lt;/a&gt;, of course it is!&lt;/p&gt;
&lt;p&gt;Netcat (/usr/bin/nc on Red Hat Enterprise Linux systems) is a simple utility for reading and writing data across TCP/UDP connections. It's often used for testing and debugging network connections. In its most basic usage, netcat allows you to feed a stream of data to a specific port on a specific host, which is perfect for our purpose here. Check the netcat man page for more information on it's various features. There are also sample scripts under /usr/share/doc/nc-*/. If netcat is not installed on your Red Hat Enterprise Linux, CentOS or Fedora system, you can install it with the command &lt;tt&gt;yum install nc&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;What we will be doing with netcat is using it to feed a stream of data to port 25 (SMTP) on a mail relay, making it believe it's talking to a regular email client. In order to do this, we first need to figure out what our email server expects to see from a client. This can be done by connecting via telnet to our SMTP relay host and issuing the correct SMTP commands, as in the following example:&lt;/p&gt;
&lt;pre&gt;
   [user@host]# telnet smtp.domain.com 25
   Trying 192.168.0.1...
   Connected to smtp.domain.com (192.168.0.1).
   Escape character is '^]'.
   220 myrelay.domain.com ESMTP
   HELO smtp.domain.com
   250 myrelay.domain.com
   MAIL FROM:&lt;alice@hacker.com&gt;
   250 sender &lt;alice@hacker.com&gt; ok
   RCPT TO:&lt;bob@secure.net&gt;
   250 recipient &lt;bob@secure.net&gt; ok
   DATA
   354 go ahead
   From: [Alice Hacker] &lt;alice@hacker.com&gt;
   To: [Bob Smith] &lt;bob@secure.net&gt;
   Date: Mon, 12 Apr 2010 14:21:26 -0400
   Subject: Test Message

   Hi there!
   This is supposed to be a real email...

   Have a good day!
   Alice


   .
   250 ok:  Message 222220902 accepted
   QUIT
   221 myrelay.domain.com
   Connection closed by foreign host.
   [user@host]#
&lt;/pre&gt;&lt;p&gt;
Note that the userid part of the "From" address does not have to contain a valid userid, only a valid domain name. You will have to replace "smtp.domain.com" with a valid SMTP relay that allows relaying from your host. Generally, experienced admins will disallow relaying from unknown hosts to discourage spam. Additionally, the body of the email (everything after the "DATA" command) is ended by sending a blank line, followed by a line with a period (.) on it by itself.&lt;/p&gt;
&lt;p&gt;Now that we know what the remote server expects to see, we can craft a text file with our SMTP commands and the message to be sent. The recipients mail server will expect the date to be in a particular format.&lt;/p&gt;
&lt;p&gt;Use the command:  &lt;/p&gt;
&lt;pre&gt;
date '+%a, %d %b %Y %H:%M:%S %z'
&lt;/pre&gt;&lt;p&gt;
To generate a date string that resembles:&lt;/p&gt;
&lt;pre&gt;
Mon, 12 Apr 2010 14:21:26 -0400
&lt;/pre&gt;&lt;p&gt;
The contents of your message file should resemble this example:&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/sending-email-netcat" hreflang="und"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Tue, 20 Apr 2010 17:04:52 +0000</pubDate>
    <dc:creator>Pete Vargas Mas</dc:creator>
    <guid isPermaLink="false">1011489 at https://www.linuxjournal.com</guid>
    </item>
<item>
  <title>Wave Goodbye to E-mail?</title>
  <link>https://www.linuxjournal.com/content/wave-goodbye-e-mail</link>
  <description>  &lt;div data-history-node-id="1010959" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/shawn-powers" lang="" about="https://www.linuxjournal.com/users/shawn-powers" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Shawn Powers&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;Late last year, getting a Google Wave invite was reminiscent of getting a Cabbage Patch Kid in 1983. It was the newest gizmo everyone just had to have. As a geek, I was one of the kids begging the loudest. Thankfully, one of our readers from across the pond (Paul Howard, thanks!) sent me an invite, and I cleared my schedule for the product that was going to change the way I communicate. Only, it didn’t.&lt;/p&gt;
&lt;p&gt;I’ll admit, some of the reasons are not Google’s fault. First, off, it wasn’t even in beta yet. I also didn’t really have anything I wanted to communicate with anyone. Even with those two things in mind, I did expect it to be fun to experiment with. Quite frankly, it seemed more cumbersome than helpful.&lt;/p&gt;
&lt;p&gt;In watching the demonstrations on the Google Web site, it seems apparent Google Wave was designed to solve some problems we’ve all faced in e-mail. Where I think Google may have gone wrong, however, is in trying to solve a problem with additional technology that really we’ve all learned to manage anyway. Sure, Google Wave allows conversations to take place in one section, so everyone can see what’s going on, but we’ve all solved that years ago with “reply all” and “forward”. Yes, Wave allows for embedded photos, videos and so on, but let’s be honest, we’ve all been attaching files and/or links for years.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://www.linuxjournal.com/ufiles/google_wave.png" /&gt;&lt;br /&gt;
Google Wave Screenshot&lt;/p&gt;
&lt;p&gt;So what do you think? Am I off-base with my assessment? Is Google Wave changing the way you communicate? If so, I’d love to hear about it. You’ll have to send me an &lt;a href="mailto:shawn@linuxjournal.com"&gt;e-mail&lt;/a&gt; though (or comment here), because even though I got my Google version of the Cabbage Patch Kid, mine is still in the box.&lt;/p&gt;
&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/wave-goodbye-e-mail" hreflang="en"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Thu, 15 Apr 2010 14:46:06 +0000</pubDate>
    <dc:creator>Shawn Powers</dc:creator>
    <guid isPermaLink="false">1010959 at https://www.linuxjournal.com</guid>
    </item>

  </channel>
</rss>
