Hi! I'm gonna need to use dovecot's auth-client socket in an authentication program. Now the auth-client socket is only used by my MTA, which is postfix. Because postfix's smtpd process (which uses the auth-client socket) runs chrooted under postfix's spool directory, I must create the auth-client socket under that spool directory. However, to reach that socket from another chrooted program is impossible. Can I create multiple instances of auth-client sockets? I tried to define another client {} stanza in socket listen {} in dovecot.conf, but only the last client socket got created. I need only a true or false response from dovecot regarding the authentication, and I thought that this is exactly what auth-client socket will do. However, if I can not reach it, is there any alternative to this? What's up with the auth-master or auth-worker sockets? Are they capable of respond to an auth request too? btw, I'm running dovecot-1.2.3 Thanks! Daniel -- L?VAI D?niel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
LEVAI Daniel:> I'm gonna need to use dovecot's auth-client socket in an authentication > program. Now the auth-client socket is only used by my MTA, which is postfix. > Because postfix's smtpd process (which uses the auth-client socket) runs > chrooted under postfix's spool directory, I must create the auth-client socket > under that spool directory. However, to reach that socket from another > chrooted program is impossible. Can I create multiple instances of auth-client > sockets?I don't know. But if the answer is "No", you could try to bind-mount the socket to the second location. -- Regards mks
On Sun, 2009-08-09 at 11:43 +0200, LEVAI Daniel wrote:> Can I create multiple instances of auth-client > sockets? I tried to define another client {} stanza in socket listen {} in > dovecot.conf, but only the last client socket got created.socket listen { client { .. } } socket listen { client { .. } } -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090809/14062f63/attachment-0002.bin>
On Sunday 09 August 2009 20.44.31 Timo Sirainen wrote:> On Sun, 2009-08-09 at 11:43 +0200, LEVAI Daniel wrote: > > Can I create multiple instances of auth-client > > sockets? I tried to define another client {} stanza in socket listen {} > > in dovecot.conf, but only the last client socket got created. > > socket listen { > client { .. } > } > socket listen { > client { .. } > }Marvelous, thanks! Daniel -- L?VAI D?niel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1