Page 1 of 1

Migration Postfix Qmail

Posted: 2006-07-03 12:01
by ingoros
Hallo!

Hat jemand eine Idee, wie ich die Mails aus einem Postfix in einem Qmail bekomme.

Problem:
Qmail speichert für jede Mail eine Datei.
Postfix speichert alle Mails eines Postfachs in einer Datei.

Nach

#! /bin/bash
Datei=web32p1
zahl=1

while read line
do
if [ "`echo $line | cut -d" " -f1`" = "From" ]
then
echo ${zahl}
zahl=$((zahl + 1))
fi
echo $line >> ${Datei}_${zahl}
done < ${Datei}

Waren viele Mails nicht lesbar.

Danke!

Re: Migration Postfix Qmail

Posted: 2006-07-03 12:26
by Roger Wilco

Re: Migration Postfix Qmail

Posted: 2006-07-03 14:08
by rootsvr
Postfix speichert mails? ich dachte der Stellt nur zu und man braucht sowas wie Cyrus oder Courier um Mails zu speichern..

seltsam seltsam warum habe ich dann neben dem MTA auch noch nen Mailserver habe..

Re: Migration Postfix Qmail

Posted: 2006-07-03 14:30
by Roger Wilco
rootsvr wrote:Postfix speichert mails?
Ja, Postfix beinhaltet auch einen/mehrere MDA. man local(8), man virtual(8), man pipe(8).
rootsvr wrote:ich dachte der Stellt nur zu und man braucht sowas wie Cyrus oder Courier um Mails zu speichern..
Nein, nur zum Abrufen.

Re: Migration Postfix Qmail

Posted: 2006-07-03 15:07
by rootsvr
ahh ok..
wieder was gelernt.