[Exim] alternate config for Exim4 + Dspam-3.0

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Adam J. Henry
Dátum:  
Címzett: exim-users
Tárgy: [Exim] alternate config for Exim4 + Dspam-3.0
I have configured Exim-4.33 and Dspam-3.0 to use BSMTP, contrary to
what is recommended in the several HOWTO's available on this topic.
My first justification was to configure it as close to the way I have
configured Spamassassin and Spambayes in the past; my second reason
was to not recreate the wheel. Perhaps I am missing the point--why
is it necessary for Dspam to call the MTA when streams could be used?
Is this just for flexibility, not so much a requirement?

The following configuration works almost perfectly. The "almost"
part of it is that certain messages are not delivered, while the majority
of spam and innocent mail is processed just fine.

I'm curious how I can enable further debugging to show why this
message returns an error, but most others work fine. Can anyone offer
any suggestions?


Here is the error I am receiving:

    LOG: MAIN
      <hank@???>: dspam transport output: An error was
      detected while processing a file of BSMTP input.
    LOG: MAIN
      == hank@??? R=dspam T=dspam defer (0): Child
      process of dspam transport returned 2 from command:
      /usr/local/exim/bin/exim



Here is the relevant transport configuration:

    dspam:
      driver = pipe
      command = /usr/local/exim/bin/exim -oMr ds -bS
      transport_filter = /usr/local/bin/dspam --stdout --deliver=innocent,spam --mode=teft --feature=chained,noise --user ${local_part}@${domain}
      use_bsmtp = true
      user = mail
      group = mail
      return_path_add = false
      log_fail_output = true
      log_defer_output = true
      temp_errors = *
      return_fail_output = true
      home_directory = "/tmp"
      current_directory = "/tmp"
      message_prefix = ""
      message_suffix = ""



Here is a copy of the offending message's body (exim -Mvb 1BugsA-0008Le-5A):

    U2VyZ2lvIEhvZmZtYW5uLCAyNSB5Lm8uIHBzeWNob3RoZXJhcGlzdCwgR2Vy
    bWFueToNCkkgdGhpbmsgaSdtIHlvdW5rZ2VyIHRoYW4gbWFpbiB0YXJnZXQg
    Z3JvdXAgb2YgQ2lhbGRpcyBjb25zdW1lcnMsIGJ1dCBpDQpoYXZlIGEgdmVy
    eSBoYXJkIHdvcmssIGkgYWx3YXlzIGhhZCB0byBsaXN0ZW4gYWJvdXQ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PC9iPjxicj4NCjxwPg0KPHA+DQo8cD4NCjxwPg0KPHA+PGZvbnQgc2l6ZT0t
    Mj48YSBocmVmPSJodHRwOi8vcW9oLnJ4LXJlcGxhY2VtZW50LmJpei9uby1t
    b3JlLyI+bm8NCm1yZTwvYT4NCg0KDQpvbmUgZXhwZXJpbWVudCwgc2hvd24g
    a25vdyBpbiBJbiBJbiBzaWducyBvZiByZXNlYXJjaCBhcyBtaXRvY2hvbmRy
    aWEgdGhleSBudW1iZXIgdHdvIGl0IHNob3duLiB0aGUgbWl0b2Nob25kcmlh
    IG9uZQ0KdGhleSBhbmQgYXJlIGh1bWFucyBUaGUgZGVmZWN0cyB0aGUgZW5l
    cmd5LiBmaW5kIGFzdXNlZCBjb21lcyBsYXRlc3QgdGhlIHRvIGRlZmVjdCB0
    byBncm93IG51bWJlciB0aGF0IG9mIHNwYW4gdGhhdCB1cCB0aGUgc3VjaCBO
    b3JtYWwgbWFqb3IgY29tbW9uIGNvdW50ZXJhY3QNCnRoYXQgbGlmZSBsYWIg
    aW4gdGhhdCB0aGVvcnkgZ2VuZXRpYyBpbiBzYWlkLiBoYXZl



Here is a copy of the message's headers (exim -Mvh 1BugsA-0008Le-5A):

    root 0 0
    <therese_feldmanze@???>
    1092183702 0
    -helo_name yahoo.com
    -host_address 4.29.209.71.3590
    -host_name wbar11.sea1-4.29.209.71.sea1.dsl-verizon.net
    -interface_address 65.255.160.16.25
    -received_protocol esmtp
    -body_linecount 32
    XX
    1
    hank@???


    215P Received: from wbar11.sea1-4.29.209.71.sea1.dsl-verizon.net ([4.29.209.71] helo=yahoo.com)
        by intrepid.marinar.com with esmtp (Exim 4.33)
        id 1BugsA-0008Le-5A
        for hank@???; Tue, 10 Aug 2004 20:21:43 -0400
    075I Message-ID: <CANJDKPAJHLMPOHFAELMLHGANNAA.therese_feldmanze@???>
    058F From: "Therese Feldman" <therese_feldmanze@???>
    021T To: hank@???
    053  Subject: Re: Your Cialis phentermine refill is ready
    038  Date: Wed, 11 Aug 2004 16:18:53 +0000
    018  MIME-Version: 1.0
    024  Content-Type: text/html
    034  Content-Transfer-Encoding: base64



Here is the Dspam log showing that Dspam completed fine.

    1092235554    S    "Therese Feldman"
    <therese_feldmanze@???>     Re: Your Cialis phentermine
    refill is ready       0.130938