Linux - SoftwareThis 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
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.
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.
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.
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?
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)
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.