Mail

Zach uid000 at gmail.com
Thu Nov 17 13:07:14 UTC 2005


The unix mail program is really cool, and worth learning more about. 
I've just started messing with it myself.

you can do cool things all from the command line like encrypt a file
and mail it to somebody:

cat my_secret_file | gpg -e -r bob at mail.com | mail -s 'secret stuff'
bob at mail.com

Which cats 'my_secret_file', pipes the output through gpg, which
encypts it to recipient bob at mail.com, and then pipes the encrypted
output to the mail program and mails it with subject 'secret stuff' to
bob at mail.com

What makes all this so very cool, is that it can be easily scripted. 
For example, when I get around to it, I plan to have logwatch gpg
encrypt all its output and email it to my external email address, so I
can monitor it wherever I am as long as I have my laptop, or at least
a computer with pgp and my private key on a thumbdrive.

Things good to learn about (see man pages):
gpg
mail
postfix

On 11/17/05, 'Forum Post <ulist at gs1.ubuntuforums.org> wrote:
>
> I dunno if these replied via the forum reach the mailing list or
> not........but, yes it is possible. Just type
>
> "mail <username>"
>
> It will ask you for the subject and then the message, after you are
> done, put a "." all by itself on a line and the message will be sent.
>
>
> --
> adwait
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>


--
If you reply to a message I posted to a mailing list,
and you want me to see your reply, be sure to put my
address in the 'To:', or I might not see the message.




More information about the ubuntu-users mailing list