[exim] exim4 and amavis

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Frank Høvin
Date:  
À: exim-users
Sujet: [exim] exim4 and amavis
Hi,

I'm new to most of this, but trying to learn, and hence wondering if
someone is able to help me with the following:

I have a server (Debian Etch) running exim4 as MTA/MDA, and I'm planning
on running amavisd-new so I can test an anti-virus plugin.

I've set up exim4 absolutely straight, for local delivery, so that I can
use f.ex. Evolution to send and receive mail to user@localhost. This is
working fine to start with.

But - when I install and configure amavisd-new, I can no longer send and
receive mail to user@localhost. This happens when I add the following to
the exim4 config file,
as per the README-eximv-v4 documentation:

# instruct Exim to pass all mail using SMTP to amavisd,
# except the mail that just came-in back to Exim from amavisd
# through the local port 10025, as these messages were already
# checked and approved by amavisd
amavis:
        driver = manualroute
        condition = "${if eq {$interface_port}{10025} {0}{1}}"
        # if scanning incoming mails, uncomment the following line and
        # change local_domains accordingly
        # domains = +local_domains
        transport = amavis
        route_list = "* localhost byname"
        self = send


# SMTP transport to be used for the Exim -> amavisd path;
# by default amavisd listens on the loopback interface on port 10024
# (amavisd.conf: $inet_socket_port = "10024")
amavis:
       driver = smtp
       port = 10024
       allow_localhost


# Tell Exim to accept SMTP also (besides the usual port 25) on the
# loopback interface (localhost) on port 10025, which is where
# the checked messaged come from amavisd back to Exim
# (amavisd.conf: $relayhost = "127.0.0.1"; $relayhost_port = "10025")
local_interfaces = 0.0.0.0.25 : 127.0.0.1.10025


In the case of local_interfaces, I just edit out what's allready there,
and add the above file:

# listen on all all interfaces?
#.ifdef MAIN_LOCAL_INTERFACES
#local_interfaces = MAIN_LOCAL_INTERFACES
#.else
#DEBCONFlistenonpublicDEBCONF
#.endif
local_interfaces = 0.0.0.0.25 : 127.0.0.1.10025


In amavisd.conf, the only changes I've made are these:

$daemon_user  = 'amavis';     # (no default;  customary: vscan or amavis), 
-u
$daemon_group = 'amavis';     # (no default;  customary: vscan or amavis), 
-g


$mydomain = 'norman.local'; # a convenient default for other settings

I'm not sure of the $mydomain. The machine is just a standalone machine,
and it's not really configured with a FQDN. I've tried using @mydomain =
'localhost', but it didn't make any difference.

As mentioned, when I'm sending mail to user@localhost, it doesn't appear
in the inbox. When I remove the above changes to the exim4 config file
(reset the configuration to default, so that there's no routing to
amavis), both the old mail (the mail that "disappeared" after adding the
above lines) and new mail to user@localhost is received. So the problem if
with my amavisd-new configuration, and not exim4.

Obviously, I'm missing some important routing or transport config, but I
cannot see what, so I'm grateful for any advice.

Thanks in advance,
Regards,
Frank HøvinFrom fanf2@??? Tue Sep 25 15:49:38 2007
Envelope-to: exim-users@???
Received: from ppsw-8.csi.cam.ac.uk ([131.111.8.138]:33675)
    by tahini.csx.cam.ac.uk with esmtp (Exim 4.67)
    (envelope-from <fanf2@???>) id 1IaBjB-0001uE-St
    for exim-users@???; Tue, 25 Sep 2007 15:49:37 +0100
X-Cam-SpamDetails: Not scanned
X-Cam-AntiVirus: No virus found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from hermes-2.csi.cam.ac.uk ([131.111.8.54]:51144)
    by ppsw-8.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.158]:25)
    with esmtpa (EXTERNAL:fanf2) id 1IaBj2-0005Me-QP (Exim 4.67)
    (return-path <fanf2@???>); Tue, 25 Sep 2007 15:49:24 +0100
Received: from fanf2 (helo/calhost) by hermes-2.csi.cam.ac.uk
    (hermes.cam.ac.uk) with local-esmtp id 1IaBj2-0005wf-5V (Exim 4.67)
    (return-path <fanf2@???>); Tue, 25 Sep 2007 15:49:24 +0100
Date: Tue, 25 Sep 2007 15:49:24 +0100
From: Tony Finch <dot@???>
X-X-Sender: fanf2@???
To: Craig <flea63@???>
In-Reply-To: <ff7f1d4a0709250702t4aa06327qe89cef780eb9a382@???>
Message-ID: <Pine.LNX.4.64.0709251548140.18673@???>
References: <471469500709250631o2481582at302ee4d826a753a1@???>
    <ff7f1d4a0709250702t4aa06327qe89cef780eb9a382@???>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset£-ASCII
Sender: Tony Finch <fanf2@???>
X-Spam-Score: -3.5 (---)
X-Spam-Status: No, scoreÓ.5 required~0 tests÷LÒ.012, BAYES_00Ñ.5,
    UNPARSEABLE_RELAY.001 autolearnO version^1.8
Cc: Exim Users <exim-users@???>
Subject: Re: [exim] EXIM TLS to Exchange
X-BeenThere: exim-users@???
X-Mailman-Version: 2.1.7
Precedence: list
Reply-To: exim-users@???
List-Id: A user list for the exim MTA <exim-users.exim.org>
List-Unsubscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject¾subscribe>
List-Archive: <http://lists.exim.org/lurker/list/exim-users.html>
List-Post: <mailto:exim-users@exim.org>
List-Help: <mailto:exim-users-request@exim.org?subjectŽlp>
List-Subscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject¥bscribe>
X-List-Received-Date: Tue, 25 Sep 2007 14:49:38 -0000


On Tue, 25 Sep 2007, Darton Williams wrote:
>
> Take a look at section 33.5 of the Exim spec, "Authentication by an
> Exim Client". You want to put your Exchange server in
> hosts_require_auth and set up an authenticator, probably either
> plaintext (34.6 for examples) or CRAM-MD5 (35.2)


You might also want to look at section 39.9, Configuring an Exim client to
use TLS, especially the tls_verify_certificates option of the SMTP
transport.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}