Re: [Exim] cyrus and lmtp sockets

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Barry Pederson
Date:  
À: Igor Karpov
CC: Kevin P. Fleming, exim-users
Sujet: Re: [Exim] cyrus and lmtp sockets
Igor Karpov wrote:

> Kevin P. Fleming wrote:
>
>> Igor Karpov wrote:
>>
>>> # Authentificator
>>>
> It doesn't work for me:
>
> 2004-01-26 18:43:45 1Al9pt-0001d9-S9 auth_cram authenticator failed
> H=ns.minjust.gov.ua [193.111.173.11] 501 5.5.4 undefined error!
> 2004-01-26 18:43:45 1Al9pt-0001d9-S9 == jc@??? R=localuser
> T=local_delivery_cyrus defer (-42): authentication required but
> authentication attempt(s) failed



You can also get around the authentication problem by running Cyrus' lmtpd
with the "-a" option, which the man page describes as:

     Preauthorize  connections  initiated  on  an  internet socket, instead
     of  requiring  LMTP AUTH.  This should only be used for connections
     coming from trusted hosts.


So in your cyrus.conf, you'd have something like:

       lmtp          cmd="lmtpd -a" listen="lmtp" prefork=0


Then in Exim, you can just setup the transport pretty simply, somthing like:

cyrus_lmtp:
driver = smtp
protocol = lmtp
hosts = 1.2.3.4
hosts_override = true

You'd just have to be pretty sure that the machine running cyrus would only
accept LMTP connections from your Exim machine, perhaps using whatever kind
of firewall you have handy.

    Barry