Your message dated Sun, 27 Jun 2010 13:32:12 +0000
with message-id <[email protected]>
and subject line Bug#582475: fixed in fetchmail 6.3.17-2
has caused the Debian Bug report #582475,
regarding fetchmail: init script should wait for DNS
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
582475: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582475
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: fetchmail
Version: 6.3.17-1
Severity: normal
Tags: patch
Hi,
Fetchmail's init script should probably depend on exim4 and $named,
rather than just $network. At least here, with dependency-based boot
enabled, the first run always fails because DNS (a local pdnsd) is not
yet available when fetchmail is started ($network implies only low-level
networking). Similarly, fetchmail will usually need an MTA running, so
I've added a dependency on exim4 too (as precaution, I didn't experience
any failures due to this missing). There doesn't seem to be a $mta
target, but you could add other MTAs too if you care.
Patch is attached.
HTH,
Jan
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-3-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages fetchmail depends on:
ii adduser 3.112 add and remove users and groups
ii debianutils 3.2.3 Miscellaneous utilities specific t
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libcomerr2 1.41.11-1 common error description library
ii libgssapi-krb5-2 1.8.1+dfsg-2 MIT Kerberos runtime libraries - k
ii libk5crypto3 1.8.1+dfsg-2 MIT Kerberos runtime libraries - C
ii libkrb5-3 1.8.1+dfsg-2 MIT Kerberos runtime libraries
ii libssl0.9.8 0.9.8n-1 SSL shared libraries
ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip
Versions of packages fetchmail recommends:
ii ca-certificates 20090814 Common CA certificates
Versions of packages fetchmail suggests:
ii exim4-daemon-light [mail-tran 4.71-4 lightweight Exim MTA (v4) daemon
pn fetchmailconf <none> (no description available)
pn resolvconf <none> (no description available)
-- Configuration Files:
/etc/default/fetchmail [Errno 13] Permission denied: u'/etc/default/fetchmail'
/etc/init.d/fetchmail changed:
set -e
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/fetchmail
USER=fetchmail
OPTIONS=""
CONFFILE="/etc/fetchmailrc"
PIDFILE="/var/run/fetchmail/fetchmail.pid"
UIDL="/var/lib/fetchmail/.fetchmail-UIDL-cache"
START_DAEMON="no"
. /lib/lsb/init-functions
if [ -r /etc/default/fetchmail ]; then
. /etc/default/fetchmail
fi
OPTIONS="$OPTIONS -f $CONFFILE --pidfile $PIDFILE"
if [ ! "x$START_DAEMON" = "xyes" -a ! "$1" = "status" ]; then
echo "Edit /etc/default/fetchmail to start/stop fetchmail"
exit 0
fi
if [ ! -e $CONFFILE ]; then
log_failure_msg "$CONFFILE not found."
log_failure_msg "can not start fetchmail daemon... consider disabling the
script"
exit 6
fi
test -f $DAEMON || exit 0
if [ "$1" = "start" ]; then
if [ ! -r $CONFFILE ] ; then
log_failure_msg "$CONFFILE found but not readable."
exit 0
fi
fi
if ! id $USER >/dev/null 2>&1; then
if [ "$USER" = "fetchmail" ]; then
# The fetchmail user might have been removed when the
fetchmail-common
# package is purged. We have to re-add it here so the
system-wide
# daemon will run.
adduser --system --ingroup nogroup --home /var/lib/fetchmail \
--shell /bin/sh --disabled-password fetchmail
>/dev/null 2>&1 || true
# work around possible adduser bug, see #119366
[ -d /var/lib/fetchmail ] || mkdir -p /var/lib/fetchmail
chmod 700 /var/lib/fetchmail
chown -h -R fetchmail:nogroup /var/lib/fetchmail
else
log_failure_msg "$0: $USER user does not exist!"
exit 1
fi
fi
if ! grep -qs '^[[:space:]]*set[[:space:]]\+daemon[[:space:]]' "$CONFFILE"; then
# Make sure user did not use -d on /etc/default/fetchmail
if ! grep -qs -e '^[[:space:]]*OPTIONS=.*-d[[:space:]]*[[:digit:]]\+'
"/etc/default/fetchmail"; then
OPTIONS="$OPTIONS -d 300"
fi
fi
if ! grep -qs '^[[:space:]]*set[[:space:]]\+no[[:space:]]\+syslog' "$CONFFILE";
then
OPTIONS="$OPTIONS --syslog"
fi
if [ "${PIDFILE%/*}" = "/var/run/fetchmail" ] && [ ! -d ${PIDFILE%/*} ] && [
"$1" != "status" ]; then
mkdir /var/run/fetchmail
chown -h $USER:nogroup /var/run/fetchmail
chmod 700 /var/run/fetchmail
fi
if [ -f $CONFFILE -a "`stat -c '%U %a' $CONFFILE 2>/dev/null`" != "$USER 600"
]; then
chown -h $USER $CONFFILE
chmod -f 0600 $CONFFILE
fi
case "$1" in
start)
if test -e $PIDFILE ; then
pid=`cat $PIDFILE | sed -e 's/\s.*//'|head -n1`
PIDDIR=/proc/$pid
if [ -d ${PIDDIR} -a "$(readlink -f ${PIDDIR}/exe)" =
"${DAEMON}" ]; then
log_failure_msg "fetchmail already started; not
starting."
exit 0
else
log_warning_msg "Removing stale PID file
$PIDFILE."
rm -f $PIDFILE
fi
fi
log_begin_msg "Starting mail retriever agent:" "fetchmail"
if start-stop-daemon -S -o -q -p $PIDFILE -x $DAEMON -u $USER
-c $USER -- $OPTIONS; then
log_end_msg 0
else
log_end_msg 1
exit 1
fi
;;
status)
status_of_proc $DAEMON fetchmail -p $PIDFILE
;;
stop)
if ! test -e $PIDFILE ; then
log_failure_msg "Pidfile not found! Is fetchmail
running?"
exit 0
fi
log_begin_msg "Stopping mail retriever agent:" "fetchmail"
if start-stop-daemon -K -o -q -p $PIDFILE -x $DAEMON -u $USER;
then
log_end_msg 0
else
log_end_msg 1
exit 1
fi
;;
force-reload|restart)
log_begin_msg "Restarting mail retriever agent:" "fetchmail"
if ! start-stop-daemon -K -o -q -p $PIDFILE -x $DAEMON -u
$USER; then
log_end_msg 1
exit 1
fi
sleep 1
if start-stop-daemon -S -q -p $PIDFILE -x $DAEMON -u $USER -c
$USER -- $OPTIONS; then
log_end_msg 0
else
log_end_msg 1
exit 1
fi
;;
try-restart)
if test -e $PIDFILE ; then
pid=`cat $PIDFILE | sed -e 's/\s.*//'|head -n1`
PIDDIR=/proc/$pid
if [ -d ${PIDDIR} -a "$(readlink -f ${PIDDIR}/exe)" =
"${DAEMON}" ]; then
$0 restart
exit 0
fi
fi
test -f /etc/rc`/sbin/runlevel | cut -d' ' -f2`.d/S*fetchmail*
&& $0 start
;;
awaken)
log_begin_msg "Awakening mail retriever agent:" "fetchmail"
if [ -s $PIDFILE ]; then
start-stop-daemon -K -s 10 -q -p $PIDFILE -x $DAEMON
log_end_msg 0
exit 0
else
log_end_msg 1
exit 1
fi
;;
debug-run)
echo "$0: Initiating debug run of system-wide fetchmail
service..." 1>&2
echo "$0: script will be run in debug mode, all output to
forced to" 1>&2
echo "$0: stdout. This is not enough to debug failures that
only" 1>&2
echo "$0: happen in daemon mode." 1>&2
echo "$0: You might want to direct output to a file, and tail
-f it." 1>&2
if [ "$2" = "strace" ]; then
echo "$0: (running debug mode under strace. See
strace(1) for options)" 1>&2
echo "$0: WARNING: strace output may contain
security-sensitive info, such as" 1>&2
echo "$0: passwords; please clobber them before sending
the strace file to a" 1>&2
echo "$0: public bug tracking system, such as
Debian's." 1>&2
fi
echo "$0: Stopping the service..." 1>&2
"$0" stop
echo "$0: exit status of service stop was: $?"
echo "$0: RUNUSER is $USER"
echo "$0: OPTIONS would be $OPTIONS"
echo "$0: Starting service in nodetach mode, hit ^C
(SIGINT/intr) to finish run..." 1>&2
if [ "$2" = "strace" ] ; then
shift
shift
[ $# -ne 0 ] && echo "$0: (strace options are: -tt $@)"
1>&2
su -s /bin/sh -c "/usr/bin/strace -tt $* $DAEMON
$OPTIONS --nosyslog --nodetach -v -v" $USER <&- 2>&1
else
su -s /bin/sh -c "$DAEMON $OPTIONS --nosyslog
--nodetach -v -v" $USER <&- 2>&1
fi
echo "$0: End of service run. Exit status was: $?"
exit 0
;;
*)
log_warning_msg "Usage: /etc/init.d/fetchmail
{start|stop|restart|force-reload|awaken|debug-run}"
log_warning_msg " start - starts system-wide fetchmail service"
log_warning_msg " stop - stops system-wide fetchmail service"
log_warning_msg " restart, force-reload - starts a new
system-wide fetchmail service"
log_warning_msg " awaken - tell system-wide fetchmail to start
a poll cycle immediately"
log_warning_msg " debug-run [strace [strace options...]] -
start a debug run of the"
log_warning_msg " system-wide fetchmail service, optionally
running it under strace"
exit 1
;;
esac
exit 0
/etc/logcheck/ignore.d.server/fetchmail [Errno 13] Permission denied:
u'/etc/logcheck/ignore.d.server/fetchmail'
/etc/logcheck/ignore.d.workstation/fetchmail [Errno 13] Permission denied:
u'/etc/logcheck/ignore.d.workstation/fetchmail'
-- no debconf information
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
--- fetchmailrc.orig 2010-05-21 03:25:43.000000000 +0200
+++ /etc/init.d/fetchmail 2010-05-21 03:27:34.000000000 +0200
@@ -7,6 +7,8 @@
# Provides: fetchmail
# Required-Start: $network $local_fs $remote_fs $syslog
# Required-Stop: $remote_fs
+# Should-Start: exim4 $named
+# Should-Stop: exim4
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: init-Script for system wide fetchmail daemon
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
Source: fetchmail
Source-Version: 6.3.17-2
We believe that the bug you reported is fixed in the latest version of
fetchmail, which is due to be installed in the Debian FTP archive:
fetchmail_6.3.17-2.debian.tar.gz
to main/f/fetchmail/fetchmail_6.3.17-2.debian.tar.gz
fetchmail_6.3.17-2.dsc
to main/f/fetchmail/fetchmail_6.3.17-2.dsc
fetchmail_6.3.17-2_amd64.deb
to main/f/fetchmail/fetchmail_6.3.17-2_amd64.deb
fetchmailconf_6.3.17-2_all.deb
to main/f/fetchmail/fetchmailconf_6.3.17-2_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Nico Golde <[email protected]> (supplier of updated fetchmail package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 24 Jun 2010 13:52:43 +0200
Source: fetchmail
Binary: fetchmail fetchmailconf
Architecture: source all amd64
Version: 6.3.17-2
Distribution: unstable
Urgency: low
Maintainer: Fetchmail Maintainers <[email protected]>
Changed-By: Nico Golde <[email protected]>
Description:
fetchmail - SSL enabled POP3, APOP, IMAP mail gatherer/forwarder
fetchmailconf - fetchmail configurator
Closes: 498427 580796 582475 586864 586865 586866 586867
Changes:
fetchmail (6.3.17-2) unstable; urgency=low
.
[Nico Golde]
* Add Should-Start and Should-Stop facilities to the init script
in order to make sure fetchmail is started after a local DNS
server and/or MTA if present. Thanks to Jan Braun and Petter
Reinholdtsen (Closes: #582475).
* Add 03_spurious-ssl-cert-warning.patch to prevent fetchmail complaining
about an insecure ssl connection even if a fingerprint that has been
obtained through a secure channel is configured (Closes: #580796).
.
[Hector Garcia]
* Changed suggest of exim4 to default-mta (Closes: #586864, #586865).
* Not explicitly stop daemon on runlevel 0 and 6 (Closes: #498427).
* Make it compile against python2.6. Thanks to Steve Langasek
(Closes: #586866, #586867).
* Updated man page patch to include more minus escaped form.
Checksums-Sha1:
6a8cb2558de4dd58de69311d6b66d4eba2339d37 1356 fetchmail_6.3.17-2.dsc
2b926a779a2328f23bde7df058557c763593dcfb 83265 fetchmail_6.3.17-2.debian.tar.gz
800bcc9039f4d823b38217f0a2650aef39ec4fdd 65732 fetchmailconf_6.3.17-2_all.deb
032cd7e5753b4b15e3eff64fbdf876b27714d5a8 908658 fetchmail_6.3.17-2_amd64.deb
Checksums-Sha256:
41e9ca8ca970128b94d398ef44b4312a012b4e718023f20dd11fdef06f85663a 1356
fetchmail_6.3.17-2.dsc
3ad90c41c8a21a61d0894a43f0d944630fdfa3d0c3329de810e9b7fb1f411a3e 83265
fetchmail_6.3.17-2.debian.tar.gz
d96d991589dfc4a9fceb11be280b91807e8d3ccb72ad7afd2291f3a0d5fb207d 65732
fetchmailconf_6.3.17-2_all.deb
4cf78ffcd7f0d701d1694e423ac8baad3bd473de49c55e8849eda0b32c0e72b1 908658
fetchmail_6.3.17-2_amd64.deb
Files:
0c3870b93530bb66af5a4f457cadfb89 1356 mail optional fetchmail_6.3.17-2.dsc
5b4f619770af78e469ca2f70794c6f48 83265 mail optional
fetchmail_6.3.17-2.debian.tar.gz
2848c9b4951329bf0e532fac83bb74a7 65732 mail optional
fetchmailconf_6.3.17-2_all.deb
2d33174dc63264d7fb6b4a8e6ca5a020 908658 mail optional
fetchmail_6.3.17-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkwnT0EACgkQHYflSXNkfP+z6wCfYQZ7DIBupM9uddq1XRMRfL2A
KbAAoIZQ2zGSSw6QGT7YGOJtqJyZG8fL
=3mTZ
-----END PGP SIGNATURE-----
--- End Message ---