Hi all, My plan is to use spamassassin to get rid of the 10 or so junkmails I get per day. I have six different pop accounts, for personal, business, and various different mail lists, all being checked by evolution. I got fetchmail so far to download messages and deliver to my /var/mail/*user* and have evolution pick it up there. This wasn't easy though. I first tried (as normal user) to just: # fetchmail but was told to specifiy a server/mailbox. I then did: # fetchmail -f /etc/fetchmailrc and was told I'm not allowed to read the file. I then copied the /etc/fetchmailrc file to my home dir and chown-ed it to my user. Then did: # fetchmail -f ~/fetchmailrc This worked. Adding a "-d 60 -N" and leaving it in a console in the background made sure I'm getting anything that comes in while I'm online. I read in /usr/share/doc/packages/fetchmail/README.SuSE how to set fetchmail up as a service. When I did all that and do: $ /etc/init.d/fetcmail start I get: /etc/init.d/fetchmail: line 20: /etc/rc.config: No such file or directory I searched, and sure enough, there is no such file on my hard drive (SuSE 8.2). I commented the relevant line out of the /etc/init.d/fetchmail script, and now it starts without moaning. Is this good, though? Removing that line? What is it supposed to do? Some more questions: Also, is it better/safer to run fetchmail as user, seeing as this is a single user computer? If so, is it possible to run fetchmail as a service, but as a user at startup, so I don't have to invoke it by hand every time I want to check mail? I'm not sure how fetcmail does this, but all the mail clients I've used, download a list of all the mail on the pop server, then download them all, then delete them all from the server. With a not too stable dial-up connection, and sometimes a couple of hundred messages at a time, I'd like it to go: download message 1 delete message download message 2 delete message 2 ect... Is this possible? Last question: If I have fetchmail running as a service, as user, all is working well, and it is checking mail every now and then, is there a way to see it's progress when it's downloading a large number at a time? A gui tool of some sorts that keeps and eye on fetchmail and reports what it's doing? Thanks H
* H du Plooy
My plan is to use spamassassin to get rid of the 10 or so junkmails I get per day. I have six different pop accounts, for personal, business, and various different mail lists, all being checked by evolution.
I got fetchmail so far to download messages and deliver to my /var/mail/*user* and have evolution pick it up there. This wasn't easy though. I first tried (as normal user) to just:
# fetchmail
There is a gui config tool for fetchmail called fetchmailconf that will help you much with your configuration and answer many of your questions. I would suggest that you try it and then return with unanswered questions. .. man fetchmail .. also contains voluminous information that is easier to understand after using fetchmailconf, imnsho. gud luk, -- Patrick Shanahan Please avoid TOFU and trim >quotes< http://wahoo.no-ip.org Registered Linux User #207535 icq#173753138 @ http://counter.li.org Linux, a continuous *learning* experience
The 03.06.08 at 23:19, H du Plooy wrote:
My plan is to use spamassassin to get rid of the 10 or so junkmails I get per day. I have six different pop accounts, for personal, business, and various different mail lists, all being checked by evolution.
I got fetchmail so far to download messages and deliver to my /var/mail/*user* and have evolution pick it up there. This wasn't easy though. I first tried (as normal user) to just:
# fetchmail
This works if you have a .fetchmailrc file on the home dir of the user calling fetchmail. Otherwise, you have to specify the file.
/etc/init.d/fetchmail: line 20: /etc/rc.config: No such file or directory
The contents of that file has been distributed inside files in /etc/sysconfig/*. You'l have to search for the correct one. Have a look at the rest of init.d scripts for ideas. But in your case, I would do something else. I understand you connect by dialup, ie, not permanently. Therefore, I would call it from /etc/ppp/ip-up.local, or perhaps from "/etc/ppp/poll.tcpip", which at least suse 8.1 included. This is set up from "/etc/sysconfig/network/ifcfg-ppp0" or equivalent. That would make the script poll.tcpip be run as soon as the networks goes up. I do it via my own script; if you are insterested, I'll post it another day.
I'm not sure how fetcmail does this, but all the mail clients I've used, download a list of all the mail on the pop server, then download them all, then delete them all from the server. With a not too stable dial-up connection, and sometimes a couple of hundred messages at a time, I'd like it to go:
fetchmail is very powerfull and configurable. For example, it can be set to flush the mailserver every 50 mail (say) so that if the line goes down you will not retrieve them again. I'd recomend reading the manual pag.
download message 1 delete message download message 2 delete message 2 ect...
Is this possible?
It is possible, but not recomended: the load on the server would be heavy. The explanation is the fetchmail man page.
Last question: If I have fetchmail running as a service, as user, all is working well, and it is checking mail every now and then, is there a way to see it's progress when it's downloading a large number at a time? A gui tool of some sorts that keeps and eye on fetchmail and reports what it's doing?
Not a gui: but it logs via syslog (default is /var/log/mail) or otherwise (again: as documented). -- Cheers, Carlos Robinson
participants (3)
-
Carlos E. R.
-
H du Plooy
-
Patrick Shanahan