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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-25-2002, 04:36 PM
|
#1
|
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
|
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
|
|
|
11-25-2002, 10:02 PM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
11-26-2002, 11:16 AM
|
#3
|
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Original Poster
Rep:
|
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
|
|
|
11-26-2002, 11:29 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
11-26-2002, 12:58 PM
|
#5
|
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:
|
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.
|
|
|
11-26-2002, 02:06 PM
|
#6
|
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Original Poster
Rep:
|
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
|
|
|
11-26-2002, 03:04 PM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
11-26-2002, 04:09 PM
|
#8
|
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Original Poster
Rep:
|
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
|
|
|
11-26-2002, 04:10 PM
|
#9
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
no it's not normal, i'm pretty sure there is a way to keep it where it should be.
|
|
|
11-26-2002, 05:15 PM
|
#10
|
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:
|
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.
|
|
|
11-26-2002, 05:27 PM
|
#11
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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 05:35 PM.
|
|
|
11-26-2002, 06:05 PM
|
#12
|
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:
|
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.
|
|
|
11-26-2002, 06:17 PM
|
#13
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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!
|
|
|
11-26-2002, 06:25 PM
|
#14
|
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:
|
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.
|
|
|
All times are GMT -5. The time now is 05:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|