Re: Cmdline mail client that talks to remote SMTP server?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/28/06, Matt England <mengland@xxxxxxxxxxxx> wrote:
> (I'm cross-posting this to Fedora and Redhat lists, I hope that's ok.)
>
> I would like to send email from a CentOS/RHEL/Debian/Fedora command
> line client.  However, I want to be able to send the mail via a remote
> SMTP server, and thus said email cmdline app must also be a SMTP
> client.
>
> Does any such thing exist?  External projects perhaps?  Google has not yet
> turned up anything for me, other then smtp libraries to program around.
>
> I man mail(1)/mailx(1) on a Debian3.1-testing system and I found no
> SMTP reference in the man page.
>
> Do I effectively need to write some PHP, Python, or Perl app to do
> this...something that uses an SMTP module from one of the
> aforementioned language libraries?  (I'd like to avoid writing a C/C++/Java
> program for this...)
>

How about configuring sendmail on localhost to use the other SMTP as a
smart host?  If I get what you're saying, it does what you want and
has the added advantage that you can use any command line email client
- even good old mail.

For example, to use smtp.example.com as the smart relay:

  sed -i -e 's/^DS$/DSsmtp.example.com/' /etc/mail/sendmail.cf
  service sendmail restart


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux