LinuxQuestions.org
Review your favorite Linux distribution.
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 05-18-2010, 07:23 AM   #1
smoooth103
Member
 
Registered: Aug 2009
Location: NC, USA
Distribution: Slackware (64 bit)
Posts: 242

Rep: Reputation: 62
setup for mail/mailx


I was wondering how to setup slackware such that I can send and receive local mail using the commandline "mail" command. I tried sending a sample mail this way:

mailx -s subject user

and it looks like the message was sent, but when I then go check:

mail

it says there is no mail.

Do I need to have sendmail running for just local mail calls? What am I doing wrong?
 
Old 05-18-2010, 07:31 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by smoooth103 View Post
I was wondering how to setup slackware such that I can send and receive local mail using the commandline "mail" command. I tried sending a sample mail this way:

mailx -s subject user

and it looks like the message was sent, but when I then go check:

mail

it says there is no mail.

Do I need to have sendmail running for just local mail calls? What am I doing wrong?

You need an MTA - whether that be sendmail, postfix, exim or whatever, but one must be running because a connection must be made to smtp port to transport the message. The MTA opens this port up.

If you run mail or mailx in verbose mode, you can see what is happening with regards to the smtp conversation.

Last edited by centosboy; 05-18-2010 at 07:34 AM.
 
Old 05-18-2010, 08:15 PM   #3
smoooth103
Member
 
Registered: Aug 2009
Location: NC, USA
Distribution: Slackware (64 bit)
Posts: 242

Original Poster
Rep: Reputation: 62
I agree, I could have installed a MTA but I would prefer not to if not necessary. Whenever I do a slackpkg update I find new mail on the root account. So it must be possible to send "local" mail without the MTA. My question is: How do you send local mail without a MTA?
 
Old 05-18-2010, 08:39 PM   #4
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,907

Rep: Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164
It is possible for mail to already be in a mailbox, and you don't need an MTA running to read it. However, if you look at the headers for that mail that comes with Slackware you will see that it was handled by sendmail, which was running when it was sent. The aaa_base package simply adds the contents of this pre-generated mailbox to root's mailbox. Now, if you want to get technical, the doinst.sh is acting as your local MTA when you get that mail. You won't easily be able to use that to deliver other local mail, though.
 
Old 05-18-2010, 09:09 PM   #5
smoooth103
Member
 
Registered: Aug 2009
Location: NC, USA
Distribution: Slackware (64 bit)
Posts: 242

Original Poster
Rep: Reputation: 62
Ahh, I see. Was wondering how those messages got there. I will install a regular MTA and leave the doinst.sh alone . Just seemed weird to me. Thanks Pat! I feel kind of like the guy on the "Steve Jobs late night Feud story", a recent mainstream media release about a blogger who comes across Apple's CEO in a message board on a late night of a random weekend. Hey you're just as famous as far as I'm concerned. The difference is I have no feud to pick, just praise. Thanks again!

Last edited by smoooth103; 05-18-2010 at 09:12 PM.
 
Old 05-18-2010, 09:25 PM   #6
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,907

Rep: Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164
Don't get me started about Flash. ;-)
 
  


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 sending mail via axigen johnh10000 Linux - Server 2 02-24-2010 08:37 AM
Sending mail by mailx command? lifeforce4 Debian 2 07-28-2008 05:00 PM
php mail() not working but mailx works twlilinux Linux - Server 6 07-03-2008 09:16 PM
Root Mail bsd-mailx parent's_basement Debian 1 06-06-2008 04:26 PM
mail(mailx) to be nullclient? Chowroc Linux - Networking 0 12-18-2004 05:17 AM

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

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