Moin, ich hab mir jetzt zum Postfix noch einen Cyrus imapd eingerichtet, der auch soweit spielt. Alle Mails werden wunderschön in die angelegten Cyrus-Mailboxen reingepackt und ich komme von überall her dran. Jetzt soll der nächste Streich folgen: die Emails meiner verschiedenen Postfächer sollen per fetchmail abgerufen werden. Bisher passiert das noch mit KMail, da ich beim Abholen der Mails mit fetchmail zwei ungelöste Probleme habe. 1. wie kann ich postfix in Verbindung mit amavis/Antivir davon abhalten, so viele Prozesse wie nur irgend möglich (oder zumindestens sehr viele) gleichzeitig zu starten? Kann man die maximale Anzahl an amavis/antivir-Prozessen irgendwo begrenzen? Ich habe schon in der main/master.cf von Postfix und in dem amavis-Perlscript rumgesucht, aber leider nix gefunden. Im standardmässigen Verhalten von amavis geht meine Maschine derart in die Knie, dass an Arbeiten nicht mehr zu denken ist, ich habe dann mittelfristig Sysload > 15, normal ist 0.02 oder so... 2. wie filtert man am sinnvollsten die per fetchmail abgeholten Mails in Unterordner der IMAP-Boxen? Angenommen, ich hätte eine Mailbox users.hannes.SuSE-ML, wie könnte ich es dann sinnvoll anstellen, dass alle normalen Mails in der INBOX (sprich users.hannes) und die Mails dieser Liste hier in users.hannes.SuSE-ML landen? Wäre da procmail in Verbindung mit deliver der richtige Ansatz? Wenn ja, gibt es da eine komfortable (sprich: halbwegs automatische) Methode oder Oberfläche, die einem das Erstellen von Unterordnern mit sofortigem Anlegen eines dazugehörigen Filters vereinfacht? Jaja, ich weiss, immer die einfachen Fragen vom Hannes... *g Angenehme Nacht wünsche ich, Hannes
Hallo
1. wie kann ich postfix in Verbindung mit amavis/Antivir davon abhalten, so viele Prozesse wie nur irgend möglich (oder zumindestens sehr viele) gleichzeitig zu starten? Kann man die maximale Anzahl an amavis/antivir-Prozessen irgendwo begrenzen? Ich habe schon in der main/master.cf von Postfix und in dem amavis-Perlscript rumgesucht, aber leider nix gefunden. Im standardmässigen Verhalten von amavis geht meine Maschine derart in die Knie, dass an Arbeiten nicht mehr zu denken ist, ich habe dann mittelfristig Sysload > 15, normal ist 0.02 oder so...
Kann ich nicht so wirklich sagen aber vielleicht hilft dir # MaxIncomingConnections 0 # MaxForwarders 10 aus der /etc/avmailgate.conf weiter
2. wie filtert man am sinnvollsten die per fetchmail abgeholten Mails in Unterordner der IMAP-Boxen?
Ich verwende dazu Sieve , ist bei cyrus dabei. Wenn du eine 8.0 hast ist ein kleiner Fehler in der /etc/cyrus.conf Ich hole die Mails mit fetchmail ab und sende sie dann an den User ( to username ) So stellt sie postfix über antivir zu und weiter an cyrus (wenn postfix so eingerichtet ist) Ich habe mir ein tool in php geschrieben (noch nicht ganz fertig ) aber es funkt, um sieve scripte zu erstellen. (wenn du willst schick ich es dir) Es gibt auf freshmeat aber auch einige. Grüße Torsten
Hallo Johannes Studt, Trying to kill the keyboard, Johannes Studt produced at Mit, 20 Nov 2002:
1. wie kann ich postfix in Verbindung mit amavis/Antivir davon abhalten, so viele Prozesse wie nur irgend möglich (oder zumindestens sehr viele) gleichzeitig zu starten? Kann man die maximale Anzahl an amavis/antivir-Prozessen irgendwo begrenzen? Ich habe schon in der main/master.cf von Postfix und in dem amavis-Perlscript ...
Dann hast Du den Eintrag übersehen, ich habe in die /etc/postfix/master.cf die vscan-Prozesse auf 2 begrenzt, Du brauchst nur in der Spalte 'maxproc' z.B. eine '2' eintragen: (reload nicht vergessen) # service type private unpriv chroot wakeup maxproc command + # args # (yes) (yes) (yes) (never) (50) ... vscan unix - n n - 2 pipe user=vscan argv=/usr/sbin/amavis ${sender} ${recipient} -- Ciao Uwe Linux IS user friendly - it's just selective about who its friends are! Germany, Oberhausen ICQ# 7619831 PGP-ID "0xEB0BA301" Key fingerprint = 70C1 A0B9 5879 E44B 3CBE AD00 2B33 E9DC EB0B A301
participants (3)
-
Johannes Studt
-
Torsten Rosenberger
-
Uwe Perl