Nicolas Schmitz wrote:
Hello,
I'm trying to reject mail with sieve. The mail is not filed in my mailbox, but no bounce is sent to the sender, instead the bounce is filed in the user.cyrus mailbox...
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.
Here is the postfix log :
Jun 16 15:13:50 boromir postfix/pipe[6573]: C37EE8C009: to=<[EMAIL PROTECTED]>, 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=<[EMAIL PROTECTED]>, 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: <[EMAIL PROTECTED]> .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: <[EMAIL PROTECTED]> [EMAIL PROTECTED] 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: <[EMAIL PROTECTED]> 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: <[EMAIL PROTECTED]> user.cyrus 1087391631 1
And the message in the cyrus maildir :
boromir:/user/spoolimap/user/cyrus# cat 1.
Return-Path: <[EMAIL PROTECTED]>
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: <[EMAIL PROTECTED]>
Received: by boromir.ec-nantes.fr (Postfix, from userid 96)
id 48D1F8C008; Wed, 16 Jun 2004 15:13:50 +0200 (CEST)
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 16 Jun 2004 15:13:50 +0200
X-Sieve: CMU Sieve 2.2
From: Mail Sieve Subsystem <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: <[EMAIL PROTECTED]> Disposition: automatic-action/MDN-sent-automatically; deleted
--6575/boromir.ec-nantes.fr Content-Type: message/rfc822
Return-Path: <[EMAIL PROTECTED]>
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: <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>; 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 <[EMAIL PROTECTED]>; 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 <[EMAIL PROTECTED]>; Wed, 16 Jun 2004 15:13:36 +0200 (CEST)
X-eGroups-Return: [EMAIL PROTECTED]
Received: from [66.218.66.27] by n23.grp.scd.yahoo.com with NNFMP; 16 Jun 2004 13:13:35 -0000
X-Sender: [EMAIL PROTECTED]
X-Apparently-To: [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>; 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 <[EMAIL PROTECTED]>; Wed, 16 Jun 2004 14:54:40 +0200 (CEST)
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
X-mailer: Foxmail 5.0 [-fr-]
Message-Id: <[EMAIL PROTECTED]>
X-eGroups-Remote-IP: 194.158.104.47
From: "flacour" <[EMAIL PROTECTED]>
MIME-Version: 1.0
Mailing-List: list [EMAIL PROTECTED]; contact [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
Date: Wed, 16 Jun 2004 14:55:42 +0100
Subject: Re: [salles_info]Ciel
Reply-To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
Qm9uam91ciwNCkonYWkgcmVuY29udHLpIGNlIHByb2Js6G1lLCBhdmVjIGxlcyBwcm9wb3Np dGlvbnMgZGUgbGEgbGlzdGUsIGonYWkgb3B06SBwb3VyIGxhIHNvbHV0aW9uIGRlIG1vZGlm aWNhdGlvbiBkZXMgZHJvaXRzIHN1ciBsZXMgculwZXJ0b2lyZXMgQ2llbCBjZSBxdWkgbWFy Y2hlIHRy6HMgYmllbi4NCkV2aWRlbW1lbnQsIG9uIG5lIHBldXQgcGFzIGRpcmUgcXVlIGNl IHNvaXQgdHLocyBwcm9wcmUgbWFpcy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BpbGVzDQo+TGlmb3UNCj5Ob3V2ZWxsZSBDYWzpZG9uaWUNCj4NCj4NCj4NCj4NCj4gDQo+ TGllbnMgWWFob28hIEdyb3VwZXMNCj4NCj4NCj4NCj4gDQo+DQoKCiAKTGllbnMgWWFob28h IEdyb3VwZXMKCjwqPiBQb3VyIGNvbnN1bHRlciB2b3RyZSBncm91cGUgZW4gbGlnbmUsIGFj Y+lkZXog4CA6CiAgICAgaHR0cDovL2ZyLmdyb3Vwcy55YWhvby5jb20vZ3JvdXAvc2FsbGVz X2luZm8vCgo8Kj4gUG91ciB2b3VzIGTpc2luY3JpcmUgZGUgY2UgZ3JvdXBlLCBlbnZveWV6 IHVuIG1haWwg4CA6CiAgICAgc2FsbGVzX2luZm8tZGVzYWJvbm5lbWVudEB5YWhvb2dyb3Vw ZXMuZnIKCjwqPiBMJ3V0aWxpc2F0aW9uIGRlIFlhaG9vISBHcm91cGVzIGVzdCBzb3VtaXNl IOAgbCdhY2NlcHRhdGlvbiBkZXMgOgogICAgIGh0dHA6Ly9mci5kb2NzLnlhaG9vLmNvbS9p bmZvL3V0b3MuaHRtbAogCg==
--6575/boromir.ec-nantes.fr--
-- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp --- 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