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 09-27-2003, 04:45 PM   #1
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Rep: Reputation: 30
fetchmail config


I'm wondering if there's a way to ask fetchmail to keep messages for a
certain amount of time only. Let's say I want fetchmail to only keep e-mails on the server which are no
more than 3 days old. I only want this for 1 account.

I got two accounts, now set up in KMail as two seperate servers (well same server but different accounts). For one account I set up "Destination Folder" as another folder than Inbox. How can I do the same thing using fetchmail?

And what is the flush thing?

Thanks.
Mark

PS.: Is there any way to run fetchmail run as deamon, which checks for mail every 30 seconds and which starts up with my pc?

Last edited by dARkHunTEr; 09-27-2003 at 04:51 PM.
 
Old 09-27-2003, 04:54 PM   #2
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Original Poster
Rep: Reputation: 30
hmm when I run fetchmail i get the following messages:
Quote:
mark@mercure:~/Mail$ fetchmail
fetchmail: Server CommonName mismatch: IceWarp Software != mail.givemehelp.co.uk
fetchmail: Server CommonName mismatch: IceWarp Software != mail.givemehelp.co.uk
fetchmail: No mail for spam@givemehelp.co.uk at mail.givemehelp.co.uk
Why these errors (and why 2)? And how can I prevent em?
 
Old 09-28-2003, 05:22 AM   #3
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Original Poster
Rep: Reputation: 30
Please help. I need an answer - fast!!
 
Old 10-04-2003, 08:56 AM   #4
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Original Poster
Rep: Reputation: 30
help me im out of ideas
 
Old 10-18-2003, 10:48 AM   #5
cmisip
Member
 
Registered: Aug 2002
Posts: 189

Rep: Reputation: 30
I think fetchmail only retrieves email from a server such as your isp and then forwards it to a local mailserver such as qmail. I am trying to figure this out myself but I think fetchmail requires a local mail server. I am trying to configure fetchmail --> Qmail --> SpamAssassin --> Evolution (or Kmail)
 
Old 10-18-2003, 01:06 PM   #6
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Original Poster
Rep: Reputation: 30
Fetchmail places your mail in /var/spool/mail. There is an email file which you can read with your email client.

Maybe it uses a local mailserver, I don't know.
 
Old 10-18-2003, 01:30 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
how can we help you unless you show us your configuration files etc...? we're not psychic. and fetchmail is deisgned to run as a daemon in the first pace, that's it's main use. read the man page for details, and also try usnig fetchmailconf to configure it if you're having trouble writing your own configuration.
 
Old 10-18-2003, 01:35 PM   #8
cmisip
Member
 
Registered: Aug 2002
Posts: 189

Rep: Reputation: 30
I am working on this right now. With qmail configured, I think it passes it to qmail. Maybe it defaults to /var/spool/mail when there is no mailserver listening at port 25. I have successfully used it to fetchmail from my isp and pass it to the qmail server and then to Evolution.

As to your question about leaving only messages in the server no older than 3 days. How about writing a cron job that deletes that file in var/spool/mail every 3 days.
 
Old 10-18-2003, 01:56 PM   #9
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Original Poster
Rep: Reputation: 30
I meant the mail getting deleted from the server after 3 days.

I only got one problem: when I set fetchmail to keep the mail on the server, it keeps on downloading it!
 
Old 10-18-2003, 02:15 PM   #10
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
you are STILL not telling how you are configuring it.....
 
Old 10-18-2003, 02:17 PM   #11
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Original Poster
Rep: Reputation: 30
Me? With webmin.
I just set "keep mail on server" to yes.
 
Old 10-18-2003, 04:51 PM   #12
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
fetchmail sends it to procmail which places mail in the mail spool. You can preconnect fetchmail with mailfilter for filtering out spam and then mailfilter will pass it on to procmail. AFAIK Qmail just handles the delivery (possibly the retrieval) but procmail does all of the sorting.
 
Old 10-19-2003, 02:03 AM   #13
cmisip
Member
 
Registered: Aug 2002
Posts: 189

Rep: Reputation: 30
I was able to finally set up a Hotwayd --> Fetchmail --> Qmail ->SpamAssassin/Antivir -->Evolution.
My goal was to filter hotmail spam without opening up my gateway's port 25.
 
Old 10-19-2003, 04:13 AM   #14
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Original Poster
Rep: Reputation: 30
Thats cool. Could you explain how you did it?

And what about my keep-mail-on-server-problem??
 
Old 10-19-2003, 03:18 PM   #15
cmisip
Member
 
Registered: Aug 2002
Posts: 189

Rep: Reputation: 30
The Howto is pretty big. I am working on it. I will post it here when its done.

http://cmisip.home.insightbb.com/

Regarding your keep-mail-on-server problem, I dont know, unless there is an option in fetchmail for that. Alternatively, you can run the setup like I did and host your own qmail server, point your email client to that, and maybe write a script that purges the Maildir of messages whose date of creation is greater than 3 days.
 
  


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
fetchmail bong.mau Linux - General 6 09-30-2005 01:39 AM
Webmin cannot handle Samba config files that use the config or include directives allelopath Linux - Networking 3 01-18-2005 09:36 AM
fetchmail Red Squirrel Linux - Software 0 04-15-2004 12:36 PM
fetchmail kudos Linux - Software 4 11-23-2003 11:37 AM
Fetchmail philfighter Linux - Networking 3 08-02-2001 04:19 PM

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

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