Erstmal danke für euer Antworten .Mal sehen was sich machen läßt.
Anbei für muadib das Skript.
#!/bin/bash
#
# /etc/ppp/poll.tcpip
#
# Script for polling mail and news, setting system
# time, and sending mails over temporary TCP/IP connections.
#
# Author: Werner Fink <werner@suse.de>
#
#
# Check our lock file
#
if test -e /var/run/poll.lock ; then
running=false
read lpid < /var/run/poll.lock
for l in /proc/$lpid/fd/* ; do
test -L $l || continue
test $0 -ef $l && running=true
done
test "$running" = "true" && exit 0
unset l lpid running
fi
trap 'echo' SIGHUP SIGINT SIGQUIT
trap 'rm -f /var/run/poll.lock; exit 1' SIGTRAP SIGBUS SIGKILL SIGPIPE SIGTERM
trap 'rm -f /var/run/poll.lock; exit 0' EXIT
echo $$ > /var/run/poll.lock
# Tell system what we're doing
logger -t poll.tcpip -p mail.notice " Starting mail and news send/fetch"
#
# Check resources and settings
#
#
# Time to get a stable connenction
#
sleep 5
#
# Now set system time if we have some NTP servers
# and no running xntp.
#
while true ; do
set -- $(runlevel)
test -e /etc/init.d/rc${2}.d/S*xntpd && break
test -x /usr/sbin/ntpdate || break
checkproc /usr/sbin/xntpd &> /dev/null && break
/usr/sbin/rcxntpd ntptimeset
break
done
#
# Do we get mails via UUCP over TCP/IP?
# Note that we only support taylor configuration.
# We seek for the available systems which are
# connected with TCP/IP to do a UUCP file transfer.
#
while true ; do
test -x /usr/lib/uucp/uucico || break
test -r /etc/uucp/call || break
test -r /etc/uucp/sys || break
systems=""
while read sys login passwd rest ; do
case "$sys" in
\#|"") continue ;;
*) systems="$systems $sys"
esac
done < /etc/uucp/call
for sys in $systems ; do
type=$(sed -n "
/^system[[:space
]\+$sys/,/^\(system\|\$\)/ {
s/^port\W\+\(\w\+\)\$/\1/p
}" < /etc/uucp/sys)
test "$type" = tcp || continue
/usr/lib/uucp/uucico -c -D -S $sys
done
break
done
#
# Do we get mails with fetchmail over pop3/imap?
# We support only a system wide configuration
# file /etc/fetchmailrc.
#
while true ; do
test -x /usr/bin/fetchmail || break
test -r /etc/fetchmailrc || break
/usr/bin/fetchmail -f /etc/fetchmailrc
break
done
#
# Do we get news with fetchnews?
#
while true ; do
test -x /usr/sbin/fetchnews || break
test -s /etc/leafnode/config || break
test -e /var/lock/news/fetchnews.lck && break
/usr/sbin/fetchnews
break
done
#
# Let's throw our mails out here. This is done as the last
# point to avoid mail loops.
#
/usr/sbin/sendmail -q
# Tell system what we're done
logger -t poll.tcpip -p mail.notice " Done mail and news send/fetch"
#
exit 0
Eine Frage noch: Wenn /root/.fetchmailrc nicht existiert, muss ich das dann anlegen?