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

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

 



By default, Red Hat systems (including Fedora) run sendmail daemon
after install. All you need to do is uncomment (remove 'dnl' at the
beginning) the line:

dnl define(`SMART_HOST',`smtp.your.provider')

in /etc/mail/sendmail.mc file

and replace smtp.your.provider with valid smtp server name (that will
accept relaying for your outbound email)

Once you did this, run:

make -C /etc/mail

and restart sendmail:

service sendmail restart

Done. Sending email is done by running `mail` from command line (look
up man mail for options).

vnk



On 3/29/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...)
>
> -Matt
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux