send mail from shell on 8.04 server (how to?)

Thomas Kaiser ubuntu at kaiser-linux.li
Mon Oct 12 17:03:14 UTC 2009


On 10/12/2009 05:53 PM, Nik N wrote:
> I have an 8.4 server behind a router which *is not* configured as a
> mail server. Specifically, I don't want to install postfix/sendmail or
> anything that runs as a service and likely impacts the security of the
> box.
> 
> How do I send an e-mail message from shell? Ideally, it would be something like:
> 
> sendMyMsg -s Test -r somedude at somedomain.com -t "Hello dude!" -m mail.myisp.com
> 
> (Where -s is subject, -r recipient, -t text and -m the outgoing smtp server).
> 
> TIA, Nik N.
> 

Check this: 
http://www.linuxforums.org/forum/redhat-fedora-linux-help/75463-sending-mail-command-line-smtp.html

and:
thomas at AMD64:~$ apt-cache show ssmtp
Package: ssmtp
Priority: extra
Section: universe/mail
Installed-Size: 8
Maintainer: Ubuntu MOTU Developers <ubuntu-motu at lists.ubuntu.com>
Original-Maintainer: Anibal Monsalve Salazar <anibal at debian.org>
Architecture: amd64
Version: 2.62-2.2ubuntu1
Replaces: mail-transport-agent
Provides: mail-transport-agent
Depends: libc6 (>= 2.4), libgnutls26 (>= 2.4.0-0), debconf | debconf-2.0
Conflicts: mail-transport-agent
Filename: pool/universe/s/ssmtp/ssmtp_2.62-2.2ubuntu1_amd64.deb
Size: 53564
MD5sum: 91bff2b58b4258a2b580674247654a39
SHA1: ce0d177e01dfad3b5fd75ad9df4a7b74b24a3b5e
SHA256: 56b67042c61da5dd6613e8d8dfa6139c77d2344994305d65aa2009596b48a925
Description: extremely simple MTA to get mail off the system to a mail hub
  A secure, effective and simple way of getting mail off a system to your
  mail hub. It contains no suid-binaries or other dangerous things - no mail
  spool to poke around in, and no daemons running in the background. Mail is
  simply forwarded to the configured mailhost. Extremely easy configuration.
  .
  WARNING: the above is all it does; it does not receive mail, expand 
aliases
  or manage a queue. That belongs on a mail hub with a system administrator.
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

Thomas





More information about the ubuntu-users mailing list