Re: [Exim] problems setting up exim+spamassassin+cyrus imap

Pàgina inicial
Delete this message
Reply to this message
Autor: Derek Stevenson
Data:  
A: exim-users
CC: km, mjp16
Assumpte: Re: [Exim] problems setting up exim+spamassassin+cyrus imap
--
[ Picked text/plain from multipart/alternative ]
At 10:52 PM 4/3/2003, you wrote:

>Can you post sample headers of:
>
>1) Message that was processed by SA and delivered to user's mailbox and
>2) Message that was looping.


I think the only reason #1 happened was because I killed exim halfway
through its attempted processing and it was finally delivered when I
restarted exim without SA. I've attached the message below (.forward on
another domain, listed under ==>delivered<== at end of email). Briefly,
the aliases are set up as: (dls@??? --(via .forward on
retrocode)--> dretro@??? --(via /etc/aliases on navanax)-->
derek@??? (real account)).

For #2, I've attached the message and header at the bottom of this email,
from the exim spool folder (it never was delivered to the inbox). I
suspect from looking at it that there's two problems, one is the spam
looping but also the cyrus user doesn't have a mailbox, thus the failure to
deliver to that account. Since I don't really want the cyrus user to be a
fully functional user on my server, I must have something goofed up in my
config, e.g. I should change the way in which the looping fails so the
response is sent to the sender instead of cyrus@???. Ack!

> > 2) once that's functional, how do I configure which mailbox to deliver
> > the email to based on the headers written by SA (e.g. a spam
> > subfolder)?
>
>Use Sieve maybe. Or modify the command in local_deliver to use different
>mailbox if the message is likely to be spam.


Sounds good... I'll check out the sieve documentation.

> >    # must use a privileged user to set $received_protocol on the way
> back in!
> >    user = cyrus
>             ^^^^^ <- Has cyrus user enough priviliges to use -oMr?


I don't know... How can I check that?

>--
>Kirill Miazine
>mailto:km@krot.org
>http://km.krot.org/


MAIL ATTACHMENTS BELOW

==>delivered<==
Return-Path: <cyrus@navanax>
Received: from navanax ([unix socket])
         by navanax (Cyrus v2.1.12-Invoca-RPM-2.1.12-8) with LMTP; Fri, 04
Apr 2003 08:24:11 -0800
X-Sieve: CMU Sieve 2.2
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyZ-0000Zm-00
         for derek@???; Fri, 04 Apr 2003 08:23:36 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyY-0000Zf-00
         for derek@???; Fri, 04 Apr 2003 08:23:35 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyX-0000ZY-00
         for derek@???; Fri, 04 Apr 2003 08:23:34 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyW-0000ZR-00
         for derek@???; Fri, 04 Apr 2003 08:23:33 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyV-0000ZK-00
         for derek@???; Fri, 04 Apr 2003 08:23:32 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyV-0000ZD-00
         for derek@???; Fri, 04 Apr 2003 08:23:31 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyU-0000Z6-00
         for derek@???; Fri, 04 Apr 2003 08:23:30 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyT-0000Yz-00
         for derek@???; Fri, 04 Apr 2003 08:23:29 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyS-0000Ys-00
         for derek@???; Fri, 04 Apr 2003 08:23:28 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyN-0000Yl-00
         for derek@???; Fri, 04 Apr 2003 08:23:27 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyM-0000Ye-00
         for derek@???; Fri, 04 Apr 2003 08:23:22 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyL-0000YX-00
         for derek@???; Fri, 04 Apr 2003 08:23:21 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyK-0000YQ-00
         for derek@???; Fri, 04 Apr 2003 08:23:21 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyJ-0000YJ-00
         for derek@???; Fri, 04 Apr 2003 08:23:20 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyH-0000YC-00
         for derek@???; Fri, 04 Apr 2003 08:23:19 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyG-0000Y5-00
         for derek@???; Fri, 04 Apr 2003 08:23:17 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyG-0000Xy-00
         for derek@???; Fri, 04 Apr 2003 08:23:16 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TyE-0000Xr-00
         for derek@???; Fri, 04 Apr 2003 08:23:15 -0800
Received: from rwcrmhc52.attbi.com ([216.148.227.88])
         by navanax.com with esmtp (Exim 4.12)
         id 191TyE-0000Xk-00
         for dretro@???; Fri, 04 Apr 2003 08:23:14 -0800
Received: from localhost (h005008001124.ne.client2.attbi.com[66.31.43.88])
           by rwcrmhc52.attbi.com (rwcrmhc52) with ESMTP
           id <20030404162321052003jud4e>; Fri, 4 Apr 2003 16:23:21 +0000
Received: from smtp02.mrf.mail.rcn.net ([207.172.4.61])
         by localhost with esmtp (Exim 3.35 #1 (Debian))
         id 191Tzs-0004Y1-00
         for <dls@???>; Fri, 04 Apr 2003 11:24:56 -0500
Received: from 64-121-34-11.c3-0.snmt-ubr1.sfrn-snmt.ca.cable.rcn.com
([64.121.34.11] helo=derek-dell.stanford.edu)
         by smtp02.mrf.mail.rcn.net with esmtp (Exim 3.35 #4)
         id 191TyJ-0000hO-00
         for dls@???; Fri, 04 Apr 2003 11:23:19 -0500
Message-Id: <5.2.0.9.2.20030404082248.01baf468@???>
X-Sender: dereks@??? (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9
Date: Fri, 04 Apr 2003 08:23:11 -0800
To: dls@???
From: Derek Stevenson <dereks@???>
Subject: to retrocode
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-Spam-Status: No, hits=1.2 required=5.0
         tests=AWL,RCVD_IN_UNCONFIRMED_DSBL
         version=2.52
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 2.52 (1.174.2.8-2003-03-24-exp)
Sender: Cyrus IMAP Server <cyrus@???>
X-UID: 66




Derek Stevenson
Software Developer
Summit, Stanford University
251 Campus Drive MSOB x244
Stanford CA 94305
650-723-3762
dereks@???



==>191TQ8-0000P0-00-H<==
191TQ8-0000P0-00-H
exim 93 93
<>
1049471280 0
-ident exim
-received_protocol local
-body_linecount 258
-frozen 1049471281
-localerror
-exiscan no checks done
XX
1
cyrus@???

135P Received: from exim by navanax.com with local (Exim 4.12)
         id 191TQ8-0000P0-00
         for cyrus@???; Fri, 04 Apr 2003 07:48:00 -0800
039  X-Failed-Recipients: cyrus@???
055F From: Mail Delivery System <Mailer-Daemon@???>
022T To: cyrus@???
059  Subject: Mail delivery failed: returning message to sender
044I Message-Id: <E191TQ8-0000P0-00@???>
038  Date: Fri, 04 Apr 2003 07:48:00 -0800



==>191TQ8-0000P0-00-D<==
191TQ8-0000P0-00-D
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

   cyrus@???
     local delivery failed


The following text was generated during the delivery attempt:

------ cyrus@??? ------

cyrus: Mailbox does not exist

------ This is a copy of the message, including all the headers. ------

Return-path: <cyrus@???>
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TP4-0000Ls-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:56 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TP3-0000Ll-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:54 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TP0-0000LJ-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:52 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOx-0000L5-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:49 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOv-0000Kq-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:47 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOt-0000KV-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:44 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOq-0000KH-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:42 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOo-0000K3-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:40 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOm-0000Jp-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:38 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOk-0000Jb-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:36 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOi-0000JG-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:34 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOf-0000Iu-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:32 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOe-0000Im-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:29 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOc-0000If-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:27 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOb-0000IY-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:26 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOa-0000IR-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:25 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOZ-0000IK-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:24 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOX-0000ID-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:22 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOW-0000I5-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:21 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOU-0000Hy-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:19 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOT-0000Hr-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:18 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOR-0000Hk-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:16 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOQ-0000Hd-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:15 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOO-0000HW-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:13 -0800
Received: from exim by navanax.com with local (Exim 4.12)
         id 191TOO-0000HT-00
         for cyrus@???; Fri, 04 Apr 2003 07:46:12 -0800
X-Failed-Recipients: derek@???
From: Mail Delivery System <Mailer-Daemon@???>
To: cyrus@???
Subject: Mail delivery failed: returning message to sender
Message-Id: <E191TOO-0000HT-00@???>
Date: Fri, 04 Apr 2003 07:46:12 -0800
X-Spam-Status: No, hits=0.7 required=5.0
         tests=AWL,HTML_00_10,HTML_MESSAGE
         version=2.52
X-Spam-Level:
X-Spam-Checker-Version: SpamAssassin 2.52 (1.174.2.8-2003-03-24-exp)
Sender: Cyrus IMAP Server <cyrus@???>


This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

   derek@???
     Too many "Received" headers - suspected mail loop


------ This is a copy of the message, including all the headers. ------

Return-path: <cyrus@???>
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TON-0000HN-00
         for derek@???; Fri, 04 Apr 2003 07:46:12 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOM-0000HG-00
         for derek@???; Fri, 04 Apr 2003 07:46:11 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOL-0000H9-00
         for derek@???; Fri, 04 Apr 2003 07:46:10 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOK-0000H2-00
         for derek@???; Fri, 04 Apr 2003 07:46:09 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOJ-0000Gv-00
         for derek@???; Fri, 04 Apr 2003 07:46:08 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOI-0000Go-00
         for derek@???; Fri, 04 Apr 2003 07:46:07 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOH-0000Gh-00
         for derek@???; Fri, 04 Apr 2003 07:46:06 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOG-0000Ga-00
         for derek@???; Fri, 04 Apr 2003 07:46:05 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOF-0000GS-00
         for derek@???; Fri, 04 Apr 2003 07:46:04 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOE-0000GL-00
         for derek@???; Fri, 04 Apr 2003 07:46:03 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOD-0000GE-00
         for derek@???; Fri, 04 Apr 2003 07:46:02 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOC-0000G7-00
         for derek@???; Fri, 04 Apr 2003 07:46:01 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TOB-0000G0-00
         for derek@???; Fri, 04 Apr 2003 07:46:00 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TO9-0000Fm-00
         for derek@???; Fri, 04 Apr 2003 07:45:59 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TO4-0000FX-00
         for derek@???; Fri, 04 Apr 2003 07:45:57 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TO2-0000FJ-00
         for derek@???; Fri, 04 Apr 2003 07:45:51 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TO1-0000F5-00
         for derek@???; Fri, 04 Apr 2003 07:45:50 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TNz-0000Er-00
         for derek@???; Fri, 04 Apr 2003 07:45:48 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TNx-0000Ed-00
         for derek@???; Fri, 04 Apr 2003 07:45:46 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TNw-0000EN-00
         for derek@???; Fri, 04 Apr 2003 07:45:45 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TNu-0000E9-00
         for derek@???; Fri, 04 Apr 2003 07:45:43 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TNt-0000E2-00
         for derek@???; Fri, 04 Apr 2003 07:45:41 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TNs-0000Dv-00
         for derek@???; Fri, 04 Apr 2003 07:45:41 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TNr-0000Do-00
         for derek@???; Fri, 04 Apr 2003 07:45:40 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TNq-0000DY-00
         for derek@???; Fri, 04 Apr 2003 07:45:39 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TNp-0000DR-00
         for derek@???; Fri, 04 Apr 2003 07:45:38 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TNo-0000DC-00
         for derek@???; Fri, 04 Apr 2003 07:45:37 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TNm-0000Cx-00
         for derek@???; Fri, 04 Apr 2003 07:45:35 -0800
Received: from cyrus by navanax.com with local-bsmtp (Exim 4.12)
         id 191TNh-0000Cc-00
         for derek@???; Fri, 04 Apr 2003 07:45:34 -0800
Received: from smtp02.mrf.mail.rcn.net ([207.172.4.61])
         by navanax.com with esmtp (Exim 4.12)
         id 191TNh-0000CZ-00
         for dretro@???; Fri, 04 Apr 2003 07:45:29 -0800
Received: from 64-121-34-11.c3-0.snmt-ubr1.sfrn-snmt.ca.cable.rcn.com
([64.121.34.11] helo=derek-dell.stanford.edu)
         by smtp02.mrf.mail.rcn.net with esmtp (Exim 3.35 #4)
         id 191TOI-0000KY-00
         for dretro@???; Fri, 04 Apr 2003 10:46:07 -0500
Message-Id: <5.2.0.9.2.20030404074455.01aea7c8@???>
X-Sender: dereks@??? (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9
Date: Fri, 04 Apr 2003 07:45:18 -0800
To: dretro@???
From: Derek Stevenson <dereks@???>
Subject: testalias
Mime-Version: 1.0
Content-Type: multipart/alternative;
         boundary="=====================_43759322==.ALT"
X-Spam-Status: No, hits=1.9 required=5.0
         tests=AWL,HTML_20_30,HTML_MESSAGE,RCVD_IN_UNCONFIRMED_DSBL
         version=2.52
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 2.52 (1.174.2.8-2003-03-24-exp)
Sender: Cyrus IMAP Server <cyrus@???>


--=====================_43759322==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed



Derek Stevenson
Software Developer
Summit, Stanford University
251 Campus Drive MSOB x244
Stanford CA 94305
650-723-3762
dereks@???
--=====================_43759322==.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<body>
<br>
<x-sigsep><p></x-sigsep>
Derek Stevenson<br>
Software Developer<br>
Summit, Stanford University<br>
251 Campus Drive MSOB x244<br>
Stanford CA 94305<br>
650-723-3762<br>
dereks@???</body>
</html>

--=====================_43759322==.ALT--


--