LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux 'mail' comand. (https://www.linuxquestions.org/questions/linux-newbie-8/linux-mail-comand-751577/)

Avacado 08-31-2009 02:50 PM

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.

Avacado 08-31-2009 03:04 PM

So I checked var/log/mail log as root and found - "Connection refused by [127.0.0.1]

Don't know why however.

chrism01 08-31-2009 06:09 PM

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

MBybee 08-31-2009 06:21 PM

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.


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