#!/bin/sh

PPP_ERROR=/var/adm/pppd_error
LOGFILE=/var/adm/pppd_log

# log connection
echo 'PPP to TU start:         ' `date` >> $LOGFILE

# set new hostname (modemXX)
ppp-sethostname 1>&2 >> $PPP_ERROR

# get current time
ppp-settime 1>&2 >> $PPP_ERROR

# spool mailqueue
/usr/sbin/sendmail -q

# read incoming mail for sieber at euklid
/usr/bin/popclient -3 -k -u sieber -p <Passwort> -o /var/spool/mail/sieber \
euklid.mathematik.tu-chemnitz.de 2>> $PPP_ERROR

