LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-05-2004, 07:28 AM   #1
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Store mail local and view with several mail clients...


Owkay, in the past, I had some problems with email, so I'd like to store my mail in one directory and be able to view it with several mail clients from that local dir.

How should I do this? Fetchmail?

any advise is appreciated,
elluva
 
Old 05-05-2004, 07:31 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Fetchmail is probably the best solution as it does just what you ask for and it is a rock solid program that is widely used, so getting support (if needed) is usually just a quick Google search away.


Håkan
 
Old 05-05-2004, 09:56 AM   #3
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
yes, well I googled my way through and it seems that fetchmail stores the emails in /var/spool/mail/<user>, isn't it possible to change this directory to somewhere in my homedir?
Another thing, how do you set up your mail client to read the mails from this local dir (lets say kmail)?

tnx for the fast reply
 
Old 05-05-2004, 10:34 AM   #4
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
Now I managed to configure fetchmail so it get's my email from the server, the first thing I'd like is to be able to get it into kmail, how?
 
Old 05-06-2004, 12:16 PM   #5
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
anybody any idea's? plz help
 
Old 05-06-2004, 03:18 PM   #6
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
I have never used Kmail, but isn't there some sort of account "local" account type (as opposed to IMAP or POP3)? There are several possibly types, like UNIX mbox format, Maildir, local delivery and so on.


Håkan
 
Old 05-07-2004, 05:28 PM   #7
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
yes, but I can't seem to figure out what this fields stand for:
locking method (choice between procmail, Mutt dotlock, Mutt dotlock privileged, FCNTL, None
 
Old 05-07-2004, 05:36 PM   #8
Matt Collier
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 80

Rep: Reputation: 15
it's how you want to lock the mbox while you use it, most clients have their own way, kmail just lets you choose, depending upon what permissions you have and preference.
i prefer fcntl myself, since virtually everything supports this as a standard, so if a time comes where you write your own scripts to play with your mail, it's supported nicely
 
Old 05-08-2004, 03:30 AM   #9
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
k, tnx

I will try it and if I still have problems, I'll ask them here
 
Old 05-08-2004, 09:41 AM   #10
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
ok, so I filled in the fields, I mailed myself and managed to get it using fetchmail. Then I tried to read it using kmail, but kmail doesn't notice the new mail. Not even when I explicitly ask him to look (File -> Check Mail).

When I copy an mail I had previously to /var/mail/<username> , then it does receive... how do I resolve this?
 
Old 05-08-2004, 12:55 PM   #11
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
How is your fetchmail setup? I have two different setups - on my laptop I have fetchmail setup to deliver mail using procmail (actually copying the files to ~/mail/mbox). On my desktop it uses standard local delivery as I have an MTA for local use installed. This means fetchmail connects to my own machine and delivers the mails to username@localhost, so they end up in my /var/spool/mail/$USER directory.

All this is pretty easy to set up using fetchmailconf, which comes with fetchmail.


Håkan
 
Old 05-08-2004, 07:05 PM   #12
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
the only thing i've set up is fetchmail, nothing else (with fetchmailconf). Can you maybe post your procmail config file? This way, I could be able to put my mail in my home dir and maybe kmail is able to read that mbox file...

I noticed another option in kmail, 'local maildir'. Does anybody know what this means?

tnx,
elluva
 
Old 05-09-2004, 06:42 AM   #13
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
This is my $HOME/.procmailrc config file. This is setup to filter all mails through SpamAssassin, so it's quite a bit larger than you would need:
Code:
SHELL=/bin/bash
PATH=/bin:/usr/bin
PMDIR=$HOME/.procmail
LOGABSTRACT=all
MAILDIR=$HOME/mail
LOGFILE=$PMDIR/proclog
VERBOSE=off
DEFAULT=$MAILDIR/mbox

# SpamAssassin start
:0fw: spamassassin.lock
| /usr/bin/spamc

:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\
spam10

:0:
* ^X-Spam-Status: Yes
spamassassin-spam
# SpamAssassin end
...and here is my .fetchmailrc (edited of course):
Code:
# Configuration created Thu May  6 00:59:47 2004 by fetchmailconf
set postmaster "recipent@mycomputername.com"
set bouncemail
set no spambounce
set properties ""
poll pop.mymailprovider.com with proto POP3
       user 'remoteusername' there with password 'yeahasifidpostthat' is 'localusername' here options fetchall
	   mda "/usr/bin/procmail -p -f %F"
Maildir is an excellent option and depending on your MTA setup that is possibly how your mail is delivered by fetchmail.

Håkan
 
Old 05-09-2004, 09:59 AM   #14
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
tnx, this worked... ok, now I can read my mail with KMail. Procmail wasn't set up properly.

The thing I wanted in the first place was having some central mailbox, which I can read my mail from with different mail clients (eg. KMail & Evolution & Sylpheed & Pine& ...). (see my first post)

How could I set this up, since Kmail now still moves my mail to its own dir.

Thanks for all help,
elluva
 
Old 05-10-2004, 10:12 AM   #15
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
plz, can't be that nobody knows this...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure & Connect a Linux mail server from a windows mail clients digihall7 Linux - Networking 4 10-23-2006 12:21 PM
can send and recieve local mail, but not mail from internet Caine101022 Linux - Software 2 09-09-2005 01:35 PM
local mail: how to access with Moz mail client acummings Linux - Networking 2 11-11-2004 08:33 AM
local mail to kerio mail server rros Linux - Newbie 1 10-03-2004 12:37 PM
Exists a mail-client for Fedora, that can read local mail file without deleting? mxn Linux - Software 1 07-10-2004 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:07 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
Open Source Consulting | Domain Registration