trying to send internet email from a command line...is it possible
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian ("jessie", "squeeze"), Linux Mint (Serena), XUbuntu
Posts: 221
Rep:
Command line e-mail
I use pine usually. It is wonderful because you can secure shell (ssh)
to your mail machine from anywhere in the world and then run pine on it. It just works. Not all the GUI configuration nonsense that
can be a bear. Of course viewing attachments in pine is a pain in
the neck, but for text e-mail it's just great. Elm is another good
mail reader if for some reason pine isn't on your system.
One other thing to mention. If you are doing mail on your local machine, this assumes that all the mail daemons are running and configured properly. Otherwise, what you are really doing is secure shelling to another machine (the mailserver of your ISP) and running pine on that. This assumes that you have an ISP that gave you a linux shell account ... That isn't the default anymore, except still
at many universities.
Thanks for the responses................but we do not have an "in house" mail machine. We have an off site company that handles our mail for us, and they do not allow ssh, telnet etc...into their server. I knew this going in but my boss already promised the powers to be that we could do this, so I guess I am screwed. All I am wanting to do is send a simple text message to an outside address. We do not need to have mail coming back in, because all we are emailing are confirmations of shipments to our customers.
Distribution: Debian ("jessie", "squeeze"), Linux Mint (Serena), XUbuntu
Posts: 221
Rep:
What is outside mail server?
If they are selling a service, they ought to support their customers.
Is the outside company running an NT based server or is it Linux based. If Linux
based there is no reason on god's green earth you couldn't get a shell account.
Secure shell is SECURE. If Windows based ... ah well, I don't know.
Of course if your boss has his neck on the line now, just go to another ISP that
WILL give you a shell account. Talk him into trying it on an "experimental" basis.
It's $20 a month from Netcom or some such.
Distribution: Debian ("jessie", "squeeze"), Linux Mint (Serena), XUbuntu
Posts: 221
Rep:
BTW -- YOu need puTTY on your Windows machine to give you a ssh to their mail server. (I assume you have a Windows machine in your office. If Linux, then ssh is native).
You can use nail to send mail through SMTP (which your mail server probably uses). Just put the below in a shell script, make it executable, and run it.
Code:
#!/bin/sh
export SMTP=your.smtp.server.here
nail
Call it whatever you would like. You should probably read the nail man pages to get an idea how it works. This assumes you have the nail package installed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.