[Postfixbuch-users] Email noch mal ausliefern
    Ralf Hildebrandt 
    Ralf.Hildebrandt at charite.de
                  
    Sa Mai 10 15:45:03 CEST 2003
    
    
* Christian Leicht <schani at schani.com>:
> Ich habe aus diversen IMAP Mailboxen und Maildirs an die 20000 Emails die
> ich nochmals ausliefern muss. Kann ich die einzelnen Files noch mal dem
> Queue zuführen ?
Hmm klar. Mit einem Shellskript, das ueber die Maildirs iteriert und
die Mail via sendmail nochmal verschickt.
-- 
Ralf Hildebrandt (Im Auftrag des Referat V a)   Ralf.Hildebrandt at charite.de
Charite Campus Mitte                            Tel.  +49 (0)30-450 570-155
Referat V a - Kommunikationsnetze -             Fax.  +49 (0)30-450 570-916
AIM: ralfpostfix
-------------- nächster Teil --------------
#!/bin/sh
#
#  verschickt die gesamte Mail eines Benutzers an $1
#
USAGE="usage: $0 user at domain"
if test $# != 1
then
	echo $USAGE
	exit 1
fi
if  ! grep @ <<STOP > /dev/null
$1
STOP
then
	echo $USAGE
	echo No @ in Mail-address
	exit 1
fi
if !  test -d new -a -d cur -a tmp
then
	echo You are not in Maildir
	echo there is no new cur tmp
	exit 1
fi
for i in cur/* new/* tmp/*
do
	echo sending $i
	sendmail -f postmaster at charite.de  $1 < $i
	echo
done
    
    
Mehr Informationen über die Mailingliste Postfixbuch-users