Re: [exim] Why doesn't Exim authenticate against IMAP direct…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jakob Hirsch
Dátum:  
Címzett: 'Exim-users'
Tárgy: Re: [exim] Why doesn't Exim authenticate against IMAP directly?
Marc Perkel wrote:

> Dovecot uses multiple back ends. I am using more than one. I am also
> using the standard shadow/passwd files. And I am developing a third


Wow, facts, after all.

> Do you want to write an example of how I would authenticate against both
> a Linuxconf and a passwd/shadow file system? I'm not convinced Exim can
> do it. But a simple IMAP call could.


Exim is quite flexible. untested, but the concept should be clear:

server_condition = ${if and{ \
  {!eq {$2}{}} \
  {!eq {$3}{}} \
  {crypteq {$3}{\
    ${extract {1}{:}{\
      ${lookup {${extract {1}{@%!}{$2}}} lsearch\
        {/etc/vmail/shadow.${extract {2}{@%!}{$2}}}}}}}\
  {1}\
  {... the same with pam}}


This is really not rocket science.