Re: [exim] Relay just from my laptop

Pàgina inicial
Delete this message
Reply to this message
Autor: Jean-Louis Leroy
Data:  
A: exim-users
Assumpte: Re: [exim] Relay just from my laptop
Thanks to all of you.

> If you have any further questions about the debian configs, please
> take them to the debian exim users list documented in that directory
> - on this list, we agree with you about the state of that config.


And I agree with myself too so I threw out the Debian way and started
my own exim4.conf. I have succeeded in talking to exim using Kmail
with this authenticator:

fixed_plain:
driver = plaintext
public_name = PLAIN
server_condition = ${if and {{eq{$2}{myuser}}{eq{$3}{mypassword}}}{yes}{no}}
server_set_id = $2

Now I'd like to authenticate against courier's authdaemon using this:

plain_courier_authdaemon:
  driver = plaintext
  public_name = PLAIN
  server_condition = \
               ${if eq {${readsocket{/var/run/courier/authdaemon/socket}\
               {AUTH ${strlen:exim\nlogin\n$2\n$3\n}\nexim\nlogin\n$2\n$3\n}}}{FAIL\n}{no}{yes}}
  server_set_id = $2


...but I get this error: 31584 expansion failed: failed to connect to
socket /var/run/courier/authdaemon/socket: Permission denied. The
permissions on the socket are:

# ll /var/run/courier/authdaemon/socket
srwxrwxrwx 1 root root 0 2006-03-24 08:35 /var/run/courier/authdaemon/socket

A copy of my exim4.conf is here:
http://www.europerl.be/downloads/exim4.conf. If someone has the time
to take a look at it and point out obvious mistakes or just suggest
improvements I'd be very grateful.
--
Jean-Louis Leroy
Sound Object Logic
http://www.soundobjectlogic.com