LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-24-2014, 07:34 AM   #1
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,155
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
How to setup "mailx" ?


Hello,
I implemented a proposal indicated here http://askubuntu.com/questions/17988...-is-successful
The mails seems not to go out/in.. (error in mail.log).
It seems I need to install a mailserver; I dont know how...
In order to make following running...
...
sender="sender-address@yahoo.de"
recepient="notify-address@hotmail.com"
...
I would like to implement this on one "raspberry PI" (raspbian) which is connected continously with the internnet.
Any advice is welcome.
 
Old 10-24-2014, 10:36 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
As noted in the link you posted you'd have to install a package like "sendmail". Another popular one is "postfix". The "mailx" command is just a front end that sends mail using the installed mailer. "mailx" isn't required (but makes life easier) but a mailer like sendmail or postfix is required.
 
Old 10-24-2014, 08:05 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,342
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
A program for sending mail that is very easy to configure is msmtp.

I use fetchmail to get mail, procmail and formail to process it, mutt to read it, and msmtp to send it, based on this Gentoo tutorial (leaning how to use a command line mail client was my summer Linux project):

http://docs.huihoo.com/gentoo/resour...e-to-mutt.html

Even though the tutorial does not reference mailx, it is a good intro to handing mail via the command line.

Last edited by frankbell; 10-24-2014 at 08:07 PM.
 
  


Reply

Tags
mailx, raspbian, setup



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
[SOLVED] LM13, How to setup bridge? USB wlan1 -->wireless eth1 / ad-hoc "hotspot"? / "ICS" ? Scott1265 Linux - Wireless Networking 1 05-08-2013 11:15 AM
Getting a "Deferred: 451 4.3.5 Server configuration error" while running mailx threezerous Linux - Newbie 0 01-30-2011 09:27 AM
"Invalid or incomplete multibyte.." using cat textfile | mailx recipient@domain pargilo Linux - Software 0 04-01-2006 05:58 AM
"mythtv-setup" giving "Session management error: Authentication Rejected" Mitchua Ubuntu 0 10-09-2005 04:32 PM
"mail" and "mailx" lost. yapp Slackware 2 10-27-2003 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:10 AM.

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