LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-03-2005, 09:51 AM   #1
mikz
Member
 
Registered: Sep 2004
Distribution: Slackware current
Posts: 109

Rep: Reputation: 15
Slackware and fetchmail


Does anybody know of a "rc.fetchmail" for Slackware which I can use to start fetchmail with at boottime.?

I've tried the 'fetchmail -d 60', but it complains of "no mailservers have been specified".
 
Old 03-03-2005, 01:54 PM   #2
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
Slackware uses getmail not fetchmail by default. Why? You can read that here .

I believe fetchmail is available in the extras or pasture directories if you insist.

Dennisk
 
Old 04-12-2005, 09:26 AM   #3
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
I've read the programmer's crowing about why getmail is better than fetchmail and it seems to be mostly a rather snide attempt at salesmanship. Andrew Carnegie ruined a competing steel manufacturer by simply stating that the competitor's rails lacked "homogeneity". No one knew what that meant but the railroad companies didn't want to use those rails, or question Carnegie's judgement.

When I can find a solution, that works, to stop the strict deprecation warnings I get with getmail, I might use it.

Can anyone else answer the original question? I get this error also.

Kent

Last edited by oxleyk; 04-12-2005 at 09:29 AM.
 
Old 04-12-2005, 09:41 AM   #4
haze
LQ Newbie
 
Registered: Feb 2004
Posts: 16

Rep: Reputation: 0
I found this on the net, and it works like a dream.

rc.fetchmail stop
rc.fetchmail start

the '-d 60'' checks every minute.

Code:
#! /bin/sh
# Copyright (c) 1996 SuSE GmbH Nuernberg, Germany.  All rights reserved.
#
# Author: Klaus Franken
#
# /sbin/init.d/fetchmail
#
# please edit /root/.fetchmailrc 
return=$rc_done

case "$1" in
    start)
        echo -n "Starting fetchmail-daemon"
        /usr/bin/fetchmail -d 60 -a -f /root/.fetchmailrc -L /var/log/fetchmail 2>&1 || return=$rc_failed
        echo -e "$return"
        ;;
    stop)
        echo -n "Shutting down fetchmail-daemon"
        /usr/bin/fetchmail -quit || return=$rc_failed
        echo -e "$return"
        ;;
    *)
        echo "Usage: $0 {start|stop}"
        exit 1
esac

exit 0
 
Old 04-12-2005, 09:52 AM   #5
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
Thanks! Does anything need to be changed for Slackware? Does the "rc.fetchmail start" go in rc.local?

Kent
 
Old 04-12-2005, 12:49 PM   #6
haze
LQ Newbie
 
Registered: Feb 2004
Posts: 16

Rep: Reputation: 0
Fits into Slackware like a glove.

1. chmod 755 /etc/rc.d/rc.fetchmail
2. place in /etc/rc.d/rc.local
3. Reboot
 
Old 04-12-2005, 01:03 PM   #7
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
Then do I have to move my .fetchmailrc file to /root/ or can I change the path in the script? Currently I'm only checking one mail account (mine) for one user (me) so the rc file is in my home directory, but with a multi-user system I suppose it should be in /root.

I discovered that the error message comes from fetchmail not knowing where to find the .fetchmailrc file. I haven't tried it but I'm guessing that an alternative to the above-mentioned script would be to put a line in rc.local something like this: fetchmail -f /path/to/.fetchmailrc

Thanks again.

Kent
 
Old 04-12-2005, 08:28 PM   #8
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
I don't know if this is at all useful to you, but I use fetchmail in conjunction with gkrellm to check my pop3 acount and provide email notification. I opt to leave the mail on the server and retrieve it using kmail or evolution, but I could just as easily download it to /var/mail/steve. I used Fetchmailconf to set up fetchmail, which is also provided with slackware.

Sorry if I'm pointing out the obvious - wouldn't be the first time.
 
Old 04-16-2005, 05:00 AM   #9
haze
LQ Newbie
 
Registered: Feb 2004
Posts: 16

Rep: Reputation: 0
Yes, move the .fetchmailrc file to /root/ .
 
  


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 help Keyser Sose Linux - Software 5 01-19-2005 02:47 PM
Problems with Postfix+fetchmail Slackware 10 gritVA Slackware 2 08-13-2004 03:08 PM
how to use fetchmail ???? iamthewind Linux - Software 1 10-29-2003 09:14 AM
fetchmail plisken Linux - Software 2 04-29-2003 02:56 PM
Fetchmail kalpesh Linux - General 0 10-10-2001 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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