LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-25-2002, 03:36 PM   #1
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
e-mail place/fetchmail


Ok, weird tittle, but i hope the question will make more sense.
Currently i use Sylpheed as a mail client to fetch mail and store them in ~/mail
However, i would like to give fetchmail a try. But i would like to know what standars "mbox" is and where it is (Slack). Is it /var/mail/username?
Is Fetchmail going to create this dir? Basically, as far as i know, fetchmail will retrieve mail from servers and put it into a standars mbox, then i can read it with a mail client, even sylpheed? or only "old school" like Mutt and Pine? And then, how do i send mail? Do i have to configure sendmail as well?
Well, im very confused about all this e-mail bussiness in Linux as you can see from my questions, a short explanation would be awesome, or a link.
Thanks you VERY much
-NSKL
 
Old 11-25-2002, 09:02 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Not really the best answer to your question, but here's what I did, and I really know NOTHING about networking/sendmail/MTA's et al...

I am running Slack8.1. I was usually able to send mail out using simple plain old regular default sendmail, but I couldn't recieve mail in. So I read posts around a bit, and finally decided to go with Postfix. It really doesn't take much more than reading the INSTALL/README files, and basic /.configure make and make install abiliities.

Now I can send/recieve email from my domain? (anyway from the www.masterc.no-ip.org address ) and it goes directly to /var/mail/masterc (or whatever user it's sent to) and then I have kmail setup to go there an retrieve it (which didn't take much to setup either, it was as simple as supplying the path) and then I can read it.

I don't know if that helps much, I know it definitely doesn't answer some of the questions, but it works. I don't like doing things that way usually, and still do read up on it, but since I don't understand networking very well, I think I will eternally be lost on it.

Cool
 
Old 11-26-2002, 10:16 AM   #3
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Original Poster
Rep: Reputation: 47
Bah, i feel like you, eternally lost... It'll take a lot of reading to get out of this state...
Anyway, i was thinking to setup fetchmail to retrieve my mail from POP3 servers, and store it in /var/spool/mail/username but i dunno if this should be a file or a directory? I will probably find this out once i read up on fetchmail.
The real question is this. If i fetch my mail with fetchmail, and store it in aforementioned dir, i can point sylpheed to read the mail from there, but can i then simply use sylpheed to send mail, or do i have to setup all the sendmail as well?
Basically i want fetchmail to fetch mail, then sylpheed to read it, and send out new mail, without help of any other program. Making sense here?
Thanks
-NSKL
 
Old 11-26-2002, 10:29 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sylpheed DOES support standard MH mailbox format, one of the best things about it. but that will operate seperately to sendmail, you won't need it if you don't already.
 
Old 11-26-2002, 11:58 AM   #5
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by NSKL
If i fetch my mail with fetchmail, and store it in aforementioned dir, i can point sylpheed to read the mail from there, but can i then simply use sylpheed to send mail, or do i have to setup all the sendmail as well?
Basically i want fetchmail to fetch mail, then sylpheed to read it, and send out new mail, without help of any other program. Making sense here?
Thanks
-NSKL
What fetchmail does by default as soon as it retrieves your 'other' POP/IMAP mail is read is hand it over to YOUR SMTP daemon listening on port 25. The SMTP daemon will relay your mail - assuming that it is configured properly - and deliver it to the your default mailbox ( /var/spool/mail/username ?) which is in the standard mbox format ( as opposed to Maildir format that is more reliable over NFS ) using your Mail Delivery Agent, which in the case of sendmail is usually /bin/mail aka binmail. Most MUAs retrieve the mail from where the MDA delivers it and stores in in ~/mail (personal mail storage area that only the MUA is bothered about in case you want to retrieve your message ) or whatever they choose to call it just like your Sylpheed ( have never used it, had to look hard not to misspell it ). What I'd do is read the fetchmail documentation ( the manpage is really a handful ) and configure fetchmail to suit my needs. There is an X based program called fetchmailconf which will let you configure fetchmail through a friendlier interface.
 
Old 11-26-2002, 01:06 PM   #6
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Original Poster
Rep: Reputation: 47
Ok, with your help i got it sorted. I got fetchmail to fetch mail and store it in /var/spool/mail/username, gkrellm will report any new mail, and then i can read it with sylpheed and send e-mail using only sylpheed without sendmail, works great. Thanks you very much.
-NSKL
 
Old 11-26-2002, 02:04 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sylpheed is the only "poncy" mail client i've come acros that desals with MH mailboxes. you can of course use pine, elm etc... to access the exact same mail as with sylpheed, somethign not possible if you were to use kmail or similar.
 
Old 11-26-2002, 03:09 PM   #8
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Original Poster
Rep: Reputation: 47
Yeah but my Sylpheed moves the messages from /var/spool/mail/username to ~/Mail
Is this normal, or is it my Sylpheed configuration that causes this. And then what is the advantage, if any, of having mail in /var/spool/mail/username then in ~/Mail?
Thanks
-NSKL
 
Old 11-26-2002, 03:10 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no it's not normal, i'm pretty sure there is a way to keep it where it should be.
 
Old 11-26-2002, 04:15 PM   #10
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by NSKL
Yeah but my Sylpheed moves the messages from /var/spool/mail/username to ~/Mail
Is this normal, or is it my Sylpheed configuration that causes this. And then what is the advantage, if any, of having mail in /var/spool/mail/username then in ~/Mail?
Thanks
-NSKL
Acid, NSKL.. I think this is perfectly normal.. in fact desirable. All MUAs I've used so far ( pine, mutt etc ) do this by default. the /var/spool/mail/username file is for the MDA to deliver mail to. The MUA picks it up from that location, pops it off rightaway and keeps it in your 'personal folder' if you want. So basically, the var/spool location contains 'unread' mail where as the ~/ Mail folders contain the messages you've read.

That is.. if the /var/spool/mail/username is not empty, you have unread mail. If you configure your MUA to keep it there after the messages are read, that means to the *NIX system, you still have unread mail in your system mailbox. So the mail notification systems like biff/comsat will report that you have mail. Now, that in something that I dont want to happen, so keep I'd keep my 'read' stuff off of the system folders.
 
Old 11-26-2002, 04:27 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no, that is not at all true. the point of standard unix mail boxes is (among others) that you can share mail over a network from a standard mail server. The common approach is to set a mail server's /var/spool/mail folder as an nfs share and then mounted on each client machine as if it were their local one. This is what i do on my home network, and what i have been used to on all otehr comprehensive unix networks. if you still don't believe me...
Code:
[chris@trevor chris]$ ls /var/spool/mail/chris -l
2.3M -rwx------    1 chris    mail         2.2M Nov 26 22:22 /var/spool/mail/chris*
That's an awful lot of unread mail huh pine does use local mail folders but only for mail you are filtering within the program. if you don't like tried and tested unix conventions that's fine, i'll do it properly though, if you don't mind.

It's great being told things that you already do are impossible isn't it!?

Last edited by acid_kewpie; 11-26-2002 at 04:35 PM.
 
Old 11-26-2002, 05:05 PM   #12
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
point taken! I'd stick to unix conventions as long as I can, hehe. No offense!

The way I said was the way things were when I was working on some *NIX installations ( as a luser of course ) for a firm in the bay area. I pretty much assumed that 'this is the way world follows'.. looks like it isnt.


Thanks again for correcting me, bud. Its great to be told I'm wrong.
 
Old 11-26-2002, 05:17 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sorry, please don't take it the wrong way, just trying to set the facts straight. believe me, i've been corrected FAR more times than you have been!
 
Old 11-26-2002, 05:25 PM   #14
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
No, I'm taking it the right way.

So I guess why they did it so is probably because their /var /spool share was up to the brim with mails and stuff, but they had more room in their /home share.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fetchmail and mail forwarding mikz Linux - General 1 03-12-2005 10:37 AM
Q-Mail fetchmail Authfail emailssent Linux - Networking 0 01-13-2005 07:36 PM
?how to make mail go to diff place than /var/spool/mail ctejas Linux - General 0 06-24-2004 12:58 AM
What is the best Place for Linux CD's by Mail ? rvijay Linux - Newbie 6 09-01-2003 06:11 PM
sorting my mail after fetchmail has got it. kudos Linux - General 3 01-04-2003 04:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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