sieve reject go into cyrus mailbox instead of sender adress

Nicolas Schmitz Nicolas.Schmitz at ec-nantes.fr
Wed Jun 16 11:14:31 EDT 2004


Ken Murchison wrote:

> 
> Is Postfix configured to talk directly to lmtpd, or are you using 
> deliver?  If the latter, I believe you're screwed because you're losing 
> the original sender from the SMTP envelope and instead lmtpd sees the 
> sender as the user who runs deliver (cyrus).
> 
> Any recent and decent MTA should support LMTP and should be configured 
> to talk directly to lmtpd.  The deliver program is deprecated and should 
> only be used for legacy MTAs or special-use cases.

Ok, it works now ! Thanks.

For information I have done this  :

I have put this in cyrus.conf :

lmtpunix cmd="lmtpd" listen="/var/spool/postfix/public/lmtp" prefork=1


postfix main.cf :
mailbox_transport = lmtp:unix:public/lmtp


postfix master.cf :
lmtp      unix  -       -       y       -       -       lmtp




>>
>> Here is the postfix log :
>> Jun 16 15:13:50 boromir postfix/pipe[6573]: C37EE8C009: 
>> to=<schmitz at gondor.ec-nantes.fr>, relay=cyrus, delay=1, status=sent 
>> (boromir.ec-nantes.fr)
>>
>> Jun 16 15:13:51 boromir postfix/qmgr[4829]: 3FD498C009: from=<>, 
>> size=6738, nrcpt=1 (queue active)
>>
>> Jun 16 15:13:51 boromir postfix/pipe[6573]: 3FD498C009: 
>> to=<cyrus at boromir.ec-nantes.fr>, orig_to=<cyrus>, relay=cyrus, 
>> delay=1, status=sent (boromir.ec-nantes.fr)
>>
>>
>>
>> The imapd.log :
>> Jun 16 15:13:50 boromir master[6575]: about to exec /usr/cyrus/bin/lmtpd
>> Jun 16 15:13:50 boromir lmtpunix[6575]: executed
>> Jun 16 15:13:50 boromir lmtpunix[6575]: accepted connection
>> Jun 16 15:13:50 boromir lmtpunix[6575]: lmtp connection preauth'd as 
>> postman
>> Jun 16 15:13:50 boromir lmtpunix[6575]: mystore: starting txn 2147483851
>> Jun 16 15:13:50 boromir lmtpunix[6575]: mystore: committing txn 
>> 2147483851
>> Jun 16 15:13:50 boromir lmtpunix[6575]: duplicate_mark: 
>> <cmu-sieve-6575-1087391630-0 at boromir.ec-nantes.fr> .schmitz.sieve. 
>> 1087391630 0
>> Jun 16 15:13:50 boromir lmtpunix[6575]: mystore: starting txn 2147483852
>> Jun 16 15:13:50 boromir lmtpunix[6575]: mystore: committing txn 
>> 2147483852
>> Jun 16 15:13:50 boromir lmtpunix[6575]: duplicate_mark: 
>> <20040616125440.F01EA25614 at relay-6m.club-internet.fr> 
>> .schmitz+ at .sieve.    1087391630 0
>>
>> Jun 16 15:13:51 boromir lmtpunix[6575]: accepted connection
>> Jun 16 15:13:51 boromir lmtpunix[6575]: lmtp connection preauth'd as 
>> postman
>> Jun 16 15:13:51 boromir lmtpunix[6575]: IOERROR: fstating sieve script 
>> /user/sieve/c/cyrus/defaultbc: No such file or directory
>> Jun 16 15:13:51 boromir lmtpunix[6575]: duplicate_check: 
>> <cmu-sieve-6575-1087391630-0 at boromir.ec-nantes.fr> user.cyrus           0
>> Jun 16 15:13:51 boromir lmtpunix[6575]: mystore: starting txn 2147483853
>> Jun 16 15:13:51 boromir lmtpunix[6575]: mystore: committing txn 
>> 2147483853
>> Jun 16 15:13:51 boromir lmtpunix[6575]: duplicate_mark: 
>> <cmu-sieve-6575-1087391630-0 at boromir.ec-nantes.fr> user.cyrus 
>> 1087391631 1
>>
>>
>>
>>
>>
>> And the message in the cyrus maildir :
>>
>> boromir:/user/spoolimap/user/cyrus# cat 1.
>> Return-Path: <cyrus at boromir.ec-nantes.fr>
>> Received: from boromir.ec-nantes.fr ([unix socket])
>>         by boromir.ec-nantes.fr (Cyrus v2.2.3) with LMTP; Wed, 16 Jun 
>> 2004 15:13:51 +0200
>> X-Sieve: CMU Sieve 2.2
>> Return-Path: <MAILER-DAEMON at boromir.ec-nantes.fr>
>> Received: by boromir.ec-nantes.fr (Postfix, from userid 96)
>>         id 48D1F8C008; Wed, 16 Jun 2004 15:13:50 +0200 (CEST)
>> Message-ID: <cmu-sieve-6575-1087391630-0 at boromir.ec-nantes.fr>
>> Date: Wed, 16 Jun 2004 15:13:50 +0200
>> X-Sieve: CMU Sieve 2.2
>> From: Mail Sieve Subsystem <postmaster at boromir.ec-nantes.fr>
>> To: <cyrus at boromir.ec-nantes.fr>
>> MIME-Version: 1.0
>> Content-Type: multipart/report; report-type=disposition-notification;
>>         boundary="6575/boromir.ec-nantes.fr"
>> Subject: Automatically rejected mail
>> Auto-Submitted: auto-replied (rejected)
>> X-CentraleNantes-MailScanner-Information: Please contact the ISP for 
>> more information
>> X-CentraleNantes-MailScanner: Found to be clean
>> X-MailScanner-From:
>>
>> This is a MIME-encapsulated message
>>
>> --6575/boromir.ec-nantes.fr
>> Content-Type: text/plain; charset=utf-8
>> Content-Disposition: inline
>> Content-Transfer-Encoding: 8bit
>>
>> Your message was automatically rejected by Sieve, a mail
>> filtering language.
>>
>> The following reason was given:
>> Je veux me desabonner !!
>>
>>
>> --6575/boromir.ec-nantes.fr
>> Content-Type: message/disposition-notification
>>
>> Reporting-UA: boromir.ec-nantes.fr; Cyrus v2.2.3/CMU Sieve 2.2
>> Final-Recipient: rfc822; schmitz
>> Original-Message-ID: 
>> <20040616125440.F01EA25614 at relay-6m.club-internet.fr>
>> Disposition: automatic-action/MDN-sent-automatically; deleted
>>
>> --6575/boromir.ec-nantes.fr
>> Content-Type: message/rfc822
>>
>> Return-Path: <cyrus at boromir.ec-nantes.fr>
>> Received: from boromir.ec-nantes.fr ([unix socket])
>>         by boromir.ec-nantes.fr (Cyrus v2.2.3) with LMTP; Wed, 16 Jun 
>> 2004 15:13:50 +0200
>> X-Sieve: CMU Sieve 2.2
>> Return-Path: 
>> <sentto-12373637-887-1087391615-nicolas.schmitz=ec-nantes.fr at returns.groups.yahoo.com> 
>>
>> Received: from salsabis.ec-nantes.fr (salsabis.ec-nantes.fr 
>> [130.66.33.4])
>>         by boromir.ec-nantes.fr (Postfix) with SMTP id 53C028C008
>>         for <schmitz at gondor.ec-nantes.fr>; Wed, 16 Jun 2004 15:13:49 
>> +0200 (CEST)
>> Received: from localhost (salsabis [127.0.0.1])
>>         by salsabis.ec-nantes.fr (Postfix) with ESMTP
>>         id 32EECB93; Wed, 16 Jun 2004 15:13:49 +0200 (CEST)
>> Received: from salsabis.ec-nantes.fr ([127.0.0.1])
>>  by localhost (salsabis [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
>>  id 15651-01; Wed, 16 Jun 2004 15:13:44 +0200 (CEST)
>> Received: from mailbackup (mailbackup.ec-nantes.fr [80.67.170.11])
>>         by salsabis.ec-nantes.fr (Postfix) with SMTP id 90392B50
>>         for <Nicolas.Schmitz at ec-nantes.fr>; Wed, 16 Jun 2004 15:13:37 
>> +0200 (CEST)
>> Received: from n23.grp.scd.yahoo.com (n23.grp.scd.yahoo.com 
>> [66.218.66.79])
>>         by mailbackup (Postfix) with SMTP id 646708D800D
>>         for <Nicolas.Schmitz at ec-nantes.fr>; Wed, 16 Jun 2004 15:13:36 
>> +0200 (CEST)
>> X-eGroups-Return: 
>> sentto-12373637-887-1087391615-Nicolas.Schmitz=ec-nantes.fr at returns.groups.yahoo.com 
>>
>> Received: from [66.218.66.27] by n23.grp.scd.yahoo.com with NNFMP; 16 
>> Jun 2004 13:13:35 -0000
>> X-Sender: flacour at 9online.fr
>> X-Apparently-To: salles_info at yahoogroupes.fr
>> Received: (qmail 14743 invoked from network); 16 Jun 2004 13:13:34 -0000
>> Received: from unknown (66.218.66.218)
>>   by m21.grp.scd.yahoo.com with QMQP; 16 Jun 2004 13:13:34 -0000
>> Received: from unknown (HELO delay-2m.club-internet.fr) (194.158.104.47)
>>   by mta3.grp.scd.yahoo.com with SMTP; 16 Jun 2004 13:13:34 -0000
>> Received: from relay-6m.club-internet.fr (relay-6m.cs.clubint.net 
>> [172.16.20.32])
>>         by delay-2m.club-internet.fr (Postfix) with ESMTP id 56AF63BF8FC
>>         for <salles_info at yahoogroupes.fr>; Wed, 16 Jun 2004 14:57:41 
>> +0200 (CEST)
>> Received: from fransoua (l09m-14-149.d2.club-internet.fr 
>> [212.194.101.149])
>>         by relay-6m.club-internet.fr (Postfix) with SMTP id F01EA25614
>>         for <salles_info at yahoogroupes.fr>; Wed, 16 Jun 2004 14:54:40 
>> +0200 (CEST)
>> To: "salles_info at yahoogroupes.fr" <salles_info at yahoogroupes.fr>
>> X-mailer: Foxmail 5.0 [-fr-]
>> Message-Id: <20040616125440.F01EA25614 at relay-6m.club-internet.fr>
>> X-eGroups-Remote-IP: 194.158.104.47
>> From: "flacour" <flacour at 9online.fr>
>> MIME-Version: 1.0
>> Mailing-List: list salles_info at yahoogroupes.fr; contact 
>> salles_info-owner at yahoogroupes.fr
>> Delivered-To: mailing list salles_info at yahoogroupes.fr
>> Precedence: bulk
>> List-Unsubscribe: <mailto:salles_info-unsubscribe at yahoogroupes.fr>
>> Date: Wed, 16 Jun 2004 14:55:42 +0100
>> Subject: Re: [salles_info]Ciel
>> Reply-To: salles_info at yahoogroupes.fr
>> Content-Type: text/plain; charset=ISO-8859-1
>> Content-Transfer-Encoding: base64
>> X-Virus-Scanned: by amavisd-new at ec-nantes.fr
>> X-CentraleNantes-MailScanner-Information: Please contact the ISP for 
>> more information
>> X-CentraleNantes-MailScanner: Found to be clean
>> X-MailScanner-From: 
>> sentto-12373637-887-1087391615-nicolas.schmitz=ec-nantes.fr at returns.groups.yahoo.com 
>>
>>
>> Qm9uam91ciwNCkonYWkgcmVuY29udHLpIGNlIHByb2Js6G1lLCBhdmVjIGxlcyBwcm9wb3Np
>> dGlvbnMgZGUgbGEgbGlzdGUsIGonYWkgb3B06SBwb3VyIGxhIHNvbHV0aW9uIGRlIG1vZGlm
>> aWNhdGlvbiBkZXMgZHJvaXRzIHN1ciBsZXMgculwZXJ0b2lyZXMgQ2llbCBjZSBxdWkgbWFy
>> Y2hlIHRy6HMgYmllbi4NCkV2aWRlbW1lbnQsIG9uIG5lIHBldXQgcGFzIGRpcmUgcXVlIGNl
>> IHNvaXQgdHLocyBwcm9wcmUgbWFpcyBsZXMgQ0NGIGFycml2YW50LCBsZXMgcHJvZnMgc2Ug
>> ZmF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GVzDQo+TGlmb3UNCj5Ob3V2ZWxsZSBDYWzpZG9uaWUNCj4NCj4NCj4NCj4NCj4gDQo+
>> TGllbnMgWWFob28hIEdyb3VwZXMNCj4NCj4NCj4NCj4gDQo+DQoKCiAKTGllbnMgWWFob28h
>> IEdyb3VwZXMKCjwqPiBQb3VyIGNvbnN1bHRlciB2b3RyZSBncm91cGUgZW4gbGlnbmUsIGFj
>> Y+lkZXog4CA6CiAgICAgaHR0cDovL2ZyLmdyb3Vwcy55YWhvby5jb20vZ3JvdXAvc2FsbGVz
>> X2luZm8vCgo8Kj4gUG91ciB2b3VzIGTpc2luY3JpcmUgZGUgY2UgZ3JvdXBlLCBlbnZveWV6
>> IHVuIG1haWwg4CA6CiAgICAgc2FsbGVzX2luZm8tZGVzYWJvbm5lbWVudEB5YWhvb2dyb3Vw
>> ZXMuZnIKCjwqPiBMJ3V0aWxpc2F0aW9uIGRlIFlhaG9vISBHcm91cGVzIGVzdCBzb3VtaXNl
>> IOAgbCdhY2NlcHRhdGlvbiBkZXMgOgogICAgIGh0dHA6Ly9mci5kb2NzLnlhaG9vLmNvbS9p
>> bmZvL3V0b3MuaHRtbAogCg==
>>
>>
>>
>>
>> --6575/boromir.ec-nantes.fr--
>>
>>
>>
>>
>>
> 
> 


-- 
Nicolas Schmitz

Centre de Ressources Informatiques        |  tel  : 02 40 37 68 06
Ecole Centrale de Nantes                  |  fax  : 02 40 37 25 78
1 rue de la Noe - BP 92101
44321 NANTES CEDEX 03
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list