* Marc Adler <[EMAIL PROTECTED]> [2003-09-08 10:25]:
> I'm not sure where to post this, so I'll start here.
>
> The problem: my computer is only downloading email from my pop3 account
> when it's actually on. All messages that come in while it's off are sent
> into the void.
>
> My setup: fetchmail -> procmail -> mutt.
>
> If my mailbox were full, I shouldn't be receiving any messages
> whatsoever, but I receive them as long as the computer is on. One
> symptom of this problem is that the threading in mutt has gotten all out
> of kilter because of so many missing messages. Also, I have mutt set to
> delete messages older than two weeks in my mailing lists folder, and the
> size of the folder is steadily decreasing, and I doubt activity on the
> lists has dropped that much. Either way, I have to go to
> http://marc.theaimsgroups.com to check replies to messages I've posted
> if those replies come in after I turn off my computer.
>
> Does anybody know where all those messages might be going?
Ok, just as soon as I sent the above message, I realized I also had a
startup script for fetchmail that might have something to do with it. I
su'ed into root status and sure enough there in root's mutt were all the
lost messages. So now the problem is, what's wrong with the startup
script?
#!/bin/sh
#
# fetchmail This shell script takes care of starting and stopping
# fetchmail.
#
# chkconfig: 2345 81 45
#
# description: The Fetchmail daemons allows to retrieve mail using
# various mail protocols and route them to the local MTA just as if the
# mail was sent directly to the local MTA. This is specially useful on
# intermittent dial-up connections. processname: fetchmail config:
# /etc/fetchmailrc author[s]: Andrea Sterbini <[EMAIL PROTECTED]>
# ObiTuarY <[EMAIL PROTECTED]>
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
if [ ${NETWORKING} = "no" ]
then
exit 0
fi
# See how we were called.
case "$1" in
start)
if [ -s /etc/fetchmailrc ]; then
echo -n "Loading fetchmail: "
/usr/bin/fetchmail -d 900 -f /etc/fetchmailrc
echo
touch /var/lock/subsys/fetchmail
else
exit 1
fi
;;
stop)
echo -n "Shutting down fetchmail: "
/usr/bin/fetchmail -q >/dev/null 2>&1 && echo fetchmail
killproc fetchmail
rm -f /var/lock/subsys/fetchmail
;;
status)
status fetchmail
;;
restart|reload)
$0 stop
$0 start
;;
*)
echo "Usage: fetchmail {start|stop|status|restart|reload}"
exit 1
esac
exit 0
# === End of File ===
I named the file "fetchmail_script" and put it in /etc/init.d with
permissions set to 755. I used chkconfig fetchmail_script on to include
it in the startup scripts. There's no .procmailrc or .fetchmailrc files in
root's home directory. What else... I can't think of anything else, but
if I've left out some information, let me know and I'll post it.
Thanks.
--
Marc Adler
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list