Forum Moderators: bakedjake
See the man page for fetchmail for more details... When you have this working correctly its then quite easy to add procmail for mail filtering and then spam assassin to reduce the amount of spam you get...
I need a small help.. I tried the fetchmail thing.. but cud not
set it up.. I mean, I cud not specify the server.. even if I did,
the fetchmail thingy is not recognising it.. :-((
Anyway... I think I will stick with netscape messenger for the moment..
But I have one problem.. Once I started fetchmail (I did fetchmail -k -s servername .....),
it keeps on dumping new mails once every 5 mins (in /var/spool/mail/).. I mean.. the mail is from
<myname>@localhost.localdomain.. or something like that.. and there is not message,
except that it keeps saying "no server specified" :-(((
Now I need to know, how to stop this fetchmail thing.. I tried stopping sendmail.. din work..
I tried uninstalling fetchmail ... din work.. :-(((
Could you please tell me what should I do? I want the fetchmail to stop running or dumping these
mails in the dir I mentioned before!
Hope you can help me out with this..
-- SS
What do you mean by "not recognising it". Please detail what steps you used and what error message you received.
I setup fetchmail using a .fetchmailrc file in /home/josk/ which has the line:
poll pop.mymailserver.com protocol pop3 username 'josk' password "password" is josk here
I then use fetchmail -D300 to check my mail every 5 mins.
> But I have one problem.. Once I started fetchmail (I did fetchmail -k -s servername .....),
> it keeps on dumping new mails once every 5 mins (in /var/spool/mail/).. I mean.. the mail is from
> <myname>@localhost.localdomain.. or something like that.. and there is not message,
> except that it keeps saying "no server specified" :-(((
> Now I need to know, how to stop this fetchmail thing.. I tried stopping sendmail.. din work..
> I tried uninstalling fetchmail ... din work.. :-(((
Try "ps aux ¦ grep fetch". This will give you the process number of the fetchmail daemon. Then "kill -9 xxxx" where xxxx is the first four digit number. Eg:
ps aux ¦ grep fetch
josk 6245 0.0 0.1 2556 988? S Apr22 0:03 /usr/bin/fetchmail
josk 2950 0.0 0.1 1364 520 pts/3 S 10:02 0:00 grep fetch
kill -9 6245
I did the same as u said.. set up a .fetchmailrc file
and put in a line similar to yours.. With the mail server name,
and protocol and user and password...
But it din work.. Wat happened was, I started getting new mails
in /var/spool/mail/ under the file name <myname> ... and when
I opened Pine, all the mails were there... and they had the same
message "server not specified" ...
Is it that I should edit my Pine configuration file as well?
And these mails keep dropping every 5 mins, and its kinda disturbing
sometimes, when u keep getting the message
"you have got new mail in /var/spool/mail/<myname>" every 5 mins...
And I did ps aux too.. but there is no daemon running :-(( how is it then
that I keep getting these mails? am confused..
Any pointers?
Many Thanks...
I figured out wat the problem was.. I had created a crontab file
with the line
*/5 * * * * fetchmail -k -s
I did this after I had made the .fetchmailrc file.. I followed this
from another online help posting.. Neway.. I edited the crontab file
and commented that line.. and now the mails have stopped.. ;-))
Just to tell u, about how I got thru this, I looked at the mail
carefully and found that it was from crond ... So I tot whether this
might be it, and edited that file I created..
Anyway.. Thanks for ur help Josk.. I will look into this fetchmail thingy
later, in detail.. for now, I guess I will stick with messenger..
:)
Thanks again..