LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-31-2009, 03:50 PM   #1
Avacado
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Rep: Reputation: 0
Linux 'mail' comand.


Hi. Using Slackware 12.2.

Really enjoying command line stuff more so than the GUI.
Playing around with the mail command but cannot send ANY mail(or at least recieve ) any mail when sending between user accounts i've set up locally to try some stuff out on.

What's going on?

Even tried using pine and the mail sends fine but never receives on the alternate user when I log on as that user to check. (and vice versa)

Kind regards.
 
Old 08-31-2009, 04:04 PM   #2
Avacado
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Original Poster
Rep: Reputation: 0
So I checked var/log/mail log as root and found - "Connection refused by [127.0.0.1]

Don't know why however.
 
Old 08-31-2009, 07:09 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Which MTA (Mail Transport Agent) are you using? The default is frequently sendmail, could be Postfix or Exim.
Looks like a firewall issue ie you are not allowing cxns in on lo (localhost) ie 127.0.0.1 on port 25.

Run

/sbin/ifconfig

and

iptables -L

You'll (should) see the localhost entry in /etc/hosts
 
Old 08-31-2009, 07:21 PM   #4
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: PC-BSD / FreeBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
An easy way to test firewall/listener daemon issues like this is to run "telnet host 25". You should get a prompt something like this:

Code:
user@host $ telnet mailhost 25
Trying...
Connected to mailhost.
Escape character is '^]'.
220 mailhost.maildomain ESMTP Sendmail 8.13.1/8.13.1; Mon, 31 Aug 2009 16:19:30 -0700
If you don't, either the server is down, or it is refusing connections on that port. Actually, it's a great test for lots of port/FW issues (just telnet host port). I use it regularly when testing FW rules.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mailx comand ajatiti Linux - Enterprise 2 03-27-2008 11:15 AM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 11:06 PM
Problem is using the comand 'c' ssda Linux - Networking 0 11-09-2006 08:24 AM
linux comand line in windows? colinstu General 3 08-12-2005 11:51 PM
Good REDHAT LINUX books (comand line) snapper64 Linux - General 4 10-23-2004 05:45 AM

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

All times are GMT -5. The time now is 05:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration