LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-29-2012, 10:17 PM   #1
dilettante9
Member
 
Registered: Jun 2012
Location: U.S.
Distribution: Debian, Xubuntu
Posts: 46

Rep: Reputation: Disabled
Email client for command line use?


I have put together a server, running Mint Maya distro, that does some simple housekeeping tasks on my home network. I would like to have it send me email notifications under certain conditions (using SMTP to my remote 1and1 email server). Since I need the email send command to be included in a shell script or a Perl script, this must be a tool that works at the command line.

However, I'm having trouble finding an email client that works. The Linux command "mail" doesn't work because there's no way to include a password. So then I installed Sendemail, but it doesn't work because there is no command line switch to choose outgoing port 587, and my ISP (Comcast), like most ISPs, blocks outgoing port 25. Moreover, there's supposed to be a way to go into a sendemail configuration file in /etc/mail to change the outgoing port, but the folder /etc/mail doesn't, for some reason, exist in my installation of Mint.

Therefore, does someone know either: (1) how to change the port to 587 in the sendemail client? or (2) what other command line email client is available that allows password authentication and use of outgoing port 587?
 
Old 06-30-2012, 12:02 AM   #2
dilettante9
Member
 
Registered: Jun 2012
Location: U.S.
Distribution: Debian, Xubuntu
Posts: 46

Original Poster
Rep: Reputation: Disabled
I have solved this problem. In particular, ssmtp is an email client that appears to work reasonably well for sending simple command line emails using a remote server.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line email client for DSL? roystonlodge DamnSmallLinux 2 01-27-2009 01:30 PM
command line email client to send mail to remote mail server dhanju Linux - Software 1 03-07-2008 06:37 AM
Email Client in Linux using command line only preddibear Linux - Newbie 5 10-01-2006 01:17 PM
command-line email client ixion Linux - General 4 02-11-2003 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration