On Sat, 2003-10-04 at 12:54, Volker Kuhlmann wrote:
> > > http://catb.org/~esr/fetchmail/
> > > http://www.procmail.org/
> > > http://www.postfix.org/
> > > http://www.eudora.com/qpopper/
>
> Yep, all out of the box and easy to set up.
>
> > in the services list. fetchmail-procmail-postfix works fine for me.
>
> How exactly are you running fetchmail?
> Have you set a fetchlimit, and what happens if it is exceeded?
> How do you control when each of multiple mailboxes (assuming you have
> more than 1) gets polled?
>
> Volker
I set up all my config settings in /etc/sysconfig/fetchmailrc and set
this to 0600 owned by root. The abridged contents of that file are
below.
Second I copied one of the scripts in /etc/init.d and modified it to run
fetchmail. It is run from /etc/rc.d/rc.local using,
/etc/init.d/fetchmail start
The settings I have used throughout are just guess after reading the man
page. I have not set a fetchlimit. I have not noticed any problems with
fallovers and the like. I am interested to know what you think of my
setup. Are there any glaring loop holes that I am missing?
Rob Stockley
[EMAIL PROTECTED] etc]# cat /etc/sysconfig/fetchmailrc
# fetchmail configuration
# written by Rob Stockley ([EMAIL PROTECTED])
# 24 July 2003
set daemon 180
set postmaster "rob"
set bouncemail
poll pop3.clear.net.nz proto pop3
user 'user1' there with password 'user1' is rob here
user 'user2' there with password 'user2' is rob here
user 'user3' there with password 'user3' is rachel here
[EMAIL PROTECTED] etc]#
[EMAIL PROTECTED] etc]# cat /etc/init.d/fetchmail
#!/bin/bash
#
# chkconfig: 5
# description: fetchmail periodically checks for email on remote pop
servers
# processname: fetchmail
# pidfile: /var/run/fetchmail.pid
# config: /etc/sysconfig/fetchmailrc
# source function library
. /etc/init.d/functions
#[ -e /etc/sysconfig/fetchmailrc ] && . /etc/sysconfig/fetchmailrc
RCFILE=/etc/sysconfig/fetchmailrc
PIDFILE=/var/run/fetchmail.pid
RETVAL=0
start() {
echo -n $"Starting fetchmail: "
if [ -f "$PIDFILE" ]; then
echo $"(fetchmail is already running)"
exit 0
else
daemon fetchmail -f $RCFILE
fi
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/fetchmail
}
stop() {
echo -n $"Stopping fetchmail: "
killproc fetchmail
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/fetchmail
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
RETVAL=$?
;;
status)
status fetchmail
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
exit 1
esac
exit $RETVAL
[EMAIL PROTECTED] etc]#