LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-30-2008, 11:12 AM   #1
jobleep
LQ Newbie
 
Registered: Aug 2008
Posts: 26

Rep: Reputation: 15
mailx problem


I know this is going to sound really stupid, but I just can't understand...

I'm new to Linux.

Whenever I try to send mail locally using mailx, it just doesn't go through. I don't get it. I say, mailx root and type in whatever, it gives me EOT at the end of it, and when I check root's mailbox, there's nothing there from the user I sent it with.
 
Old 10-30-2008, 11:43 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,278

Rep: Reputation: 5346Reputation: 5346Reputation: 5346Reputation: 5346Reputation: 5346Reputation: 5346Reputation: 5346Reputation: 5346Reputation: 5346Reputation: 5346Reputation: 5346
Is sendmail running?
 
Old 10-31-2008, 02:57 AM   #3
jobleep
LQ Newbie
 
Registered: Aug 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Yes, sendmail is working. There are absolutely no errors while sending the mail. When i check the user's mail by typing mail, then it says that there's no new mail.
 
Old 10-31-2008, 07:19 AM   #4
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Yes, sendmail is working. There are absolutely no errors while sending the mail. When i check the user's mail by typing mail, then it says that there's no new mail.
Just because there are no errors doesn't mean sendmail is necessarily running. Have you set /etc/rc.d/rc.sendmail executable ? If not then do the following:

Code:
su -c "chmod +x /etc/rc.d/rc.sendmail && /etc/rc.d/rc.sendmail start"
Now check mail functionality. You may see if sendmail is running with this

Code:
ps aux | grep sendmail
It should show the sendmail processes.

Apologies if you already know all this - I'm assuming it's new to you.
 
Old 10-31-2008, 07:34 AM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Do you run procmail to filter messages? Perhaps they going to another place than /var/mail/<user>
 
Old 11-01-2008, 01:46 AM   #6
jobleep
LQ Newbie
 
Registered: Aug 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks bgeddy, it works now. I forgot to check sendmail working. I didn't know the first command you gave me. Thanks a lot. Hey, could you please recommend some things to read up on? I'd really appreciate it, thanks.
 
Old 11-01-2008, 06:46 AM   #7
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Wink

Glad you got it working. The command you mention is really two in one - the && ensures the first command has completed succesfully and if so executes the second so...

Code:
su -c "                       ... execute this as superuser (needs quotes)
Code:
chmod +x /etc/rc.d/rc.sendmail               ... make sendmail executable
Code:
&& /etc/rc.d/rc.sendmail start"             ... if OK run sendmail
There is a page of references here that are useful. It includes the essential Slackbook and also the very useful Addvanced Bash-Scripting Guide.

The Rute user's tutorial and exposition is also a very useful reference.

It's good to hear you want to read up on this stuff ! Good luck..
 
Old 11-02-2008, 08:29 AM   #8
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 212

Rep: Reputation: 55
Also, it may be worth noting that once you get internal mail working, external delivery could be a problem if your residential ISP blocks SMTP.

However, you can usually add their mail server as a smart host. (address rewriting may be necessary for them to accept the messages)

Last edited by granth; 11-02-2008 at 08:32 AM. Reason: additional info
 
  


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
problem using mailx command in mandriva laltupiku Linux - Newbie 1 10-22-2008 04:00 PM
Problem running mailx kaplan71 Linux - Software 1 07-21-2008 02:41 PM
mailx persistent problem rven Linux - Server 1 06-24-2008 06:48 PM
mailx problem aral SUSE / openSUSE 5 06-01-2008 01:41 PM
mailx pramka SUSE / openSUSE 3 05-01-2008 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:06 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