Re: [exim] testing login from the command line

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Chris Gerhard
Fecha:  
A: exim-users
Asunto: Re: [exim] testing login from the command line

On 05/07/2020 11:15, Jeremy Harris via Exim-users wrote:
> On 05/07/2020 11:00, Chris Gerhard via Exim-users wrote:
>> If I write a program to connect to that socket it works just fine, as
>> any user, and exim-4.93.0.3 has no issues either, so something weird is
>> going on and I want to debug it directly using the exim-4.94 binary, but
>> to do so I need to get it to attempt the dovecot login.
> http://jetmore.org/john/code/swaks/


Thank you.

Just in case anyone else hits this. On Illumos it appears that if you
have _XOPEN_SOURCE_EXTENDED set when compiling src/ip.c then connect
will check the permissions on the socket in the file system, which for
the dovecot auth socket is mode 600 and owned by dovecot, not exim. This
seems odd to have the permission checking controlled by the way the
client is compiled rather than the way the server is, but that is what
happens.

Adding:

#ifdef _XOPEN_SOURCE_EXTENDED
#undef _XOPEN_SOURCE_EXTENDED
#endif

to the top of src/ip.c makes authentication work.

--chris