[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux] Procmail filtrer messages es mailing-lists
Bonjour,
Déjà envoyé cette question mais j'essaie encore
Serveur web: Postfix/Cyrus-IMAP
Filtrage: Procmail
Tout marche OK. Je précise que le backup se passe maintenant sans problèmes.
Les messages sont donc filrés par Procmail qui transmet après filrage à
Cyrus-IMAP avec la recette suivante:
:0
* ^TO_bibi@mon_domaine
| /usr/cyrus/bin/deliver -a bibi -m user.bibi
Si un message est envoyé (To: Cc:) à bibi@mon.domaine aucun problème mais
cela se corse avec les mailing-lists qui n'nvoies pas à To: bibi@mon.domaine
Exemple, une liste bien connue de tous:
Return-Path: <cyrus@lx93>
X-Sieve: cmu-sieve 2.0
Return-Path: <linux-admin@lists.unixtech.be>
Received: from localhost (localhost [127.0.0.1])
by lx93.ihe.be (Postfix on SuSE Linux 7.3 (i386)) with ESMTP id
41FF5ADC
for <Abarthel@sbb2.ihe.be>; Mon, 29 Apr 2002 11:44:28 +0200 (CEST)
Received: from Ibif2nts5.iph.fgov.be (intranet2.iph.fgov.be [192.168.1.44])
by lx93.ihe.be (Postfix on SuSE Linux 7.3 (i386)) with ESMTP id
A38B5AD1
for <Abarthel@sbb2.ihe.be>; Mon, 29 Apr 2002 11:44:27 +0200 (CEST)
Received: from mail.ihe.be (193.190.240.266 [193.190.240.266]) by
Ibiv5nts2.iph.fgov.be with SMTP (Microsoft Exchange Internet Mail Service
Version 5.5.2653.13)
id JWTMMR6L; Mon, 29 Apr 2002 11:40:04 +0200
Received: from IPH/SpoolDir by mail.ihe.be (Mercury 1.48);
29 Apr 02 11:48:40 -0100
Received: from SpoolDir by IPH (Mercury 1.48); 29 Apr 02 11:48:26 -0100
Received: from ibiv5msp2 (192.168.17.3) by mail.ihe.be (Mercury 1.48);
29 Apr 02 11:48:22 -0100
Received: FROM kalys.unixtech.be BY ibiv5msp2 ; Mon Apr 29 11:47:53 2002 +0200
Received: from kalys (kalys [127.0.0.1])
by kalys.unixtech.be (8.12.3/8.12.3/UnixTech - Niddle v2.1) with
ESMTP id g3T9f7IX029305;
Mon, 29 Apr 2002 11:41:07 +0200
Received: from [194.123.122.65] (limes.ikossvan.de [194.123.122.65])
by kalys.unixtech.be (8.12.3/8.12.3/UnixTech - Niddle v2.1) with SMTP
id g3T9cdIX029176
for <linux@lists.unixtech.be>; Mon, 29 Apr 2002 11:38:40 +0200
Received: from nt-mail.ikossvan.de by [194.123.122.65]
via smtpd (for kalys.unixtech.be [194.78.245.22]) with SMTP; 29 Apr
2002 09:39:09 UT
Received: from [192.168.41.183] by nt-mail.ikossvan.de (NTMail
5.05.0002/NU4601.00.e4e47f77) with ESMTP id tiglgaaa for
linux@lists.unixtech.be; Mon, 29 Apr 2002 11:38:59 +0200
Received: from atosorigin.com (localhost [127.0.0.1])
by pab.ikossvan.de (8.11.6/8.10.2/SuSE Linux 8.10.0-0.3) with ESMTP
id g3T9cRN06625
for <linux@lists.unixtech.be>; Mon, 29 Apr 2002 11:38:27 +0200
Message-ID: <3CCD1493.3070209@atosorigin.com>
From: Pascal Bleser <pascal.bleser@atosorigin.com>
X-Accept-Language: fr-BE, fr, de-DE, de, en
MIME-Version: 1.0
To: Linux ML <linux@lists.unixtech.be>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
X-MIME-Autoconverted: from quoted-printable to 8bit by kalys.unixtech.be id
g3T9cdIX029176
Subject: [linux] [SuSE RPMs] nouveaux RPMs pour 7.3
Sender: linux-admin@lists.unixtech.be
X-BeenThere: linux@lists.unixtech.be
X-Mailman-Version: 2.0.9
Precedence: bulk
Reply-To: linux@lists.unixtech.be
X-Reply-To: pascal.bleser@atosorigin.com
Date: Mon, 29 Apr 2002 11:38:27 +0200
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by kalys.unixtech.be id
g3T9f7IX029305
X-Virus-Scanned: by AMaViS perl-11
=====
J'ai bien:
Received ..... blabla ...
......
for <Abarthel@sbb2.ihe.be> ....
Mais pas de ligne dans le header avec mon adresse
Donc, je suis obligé de faire
* ^(To|From).*unixtech
Pour recevoir quelque chose de la liste unixtech
Je suis sûr qu'il y a un autre moyen. Mon adresse n'est pas spécifiée dans le
header mais, je suppose, dans l'enveloppe puisque je reçois le mail.
Comment sélectionner cela avec Procmail?
Comment s'y prend-on avec Procmail pour les mailing-lists?
Je précise que mon nom de domaine pour le mail est filtré et bibi@mon.domaine
devient bibi@iph.fgov.be et vice-versa of course.
--
Alain Barthélemy
SBB-ISP
_______________________________________________
Linux Mailing List
LCP - 11 Mai - http://www.unixtech.be/lcp.php
Archives: http://www.unixtech.be/mailman/listinfo/linux