<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p> I am building a custom server platform in which dovecot is used
for imap/pop . But the default authentication mechanism is not
suitable for me becuase each domain will have different system
users and different location for mail storage . So I need to
create a custom authentication mechanism using python . There is
an option to use Key-value authentication (dict) database via
socket as per <br>
</p>
<p><a class="moz-txt-link-freetext" href="https://doc.dovecot.org/configuration_manual/authentication/dict/#complete-example-for-authenticating-via-a-unix-socket">https://doc.dovecot.org/configuration_manual/authentication/dict/#complete-example-for-authenticating-via-a-unix-socket</a><br>
</p>
<p><br>
</p>
<p>The above documentation link have a sample perl script too to
send authentication to <br>
</p>
<p>uri = proxy:/var/run/auth_proxy_dovecot/socket:somewhere<br>
</p>
<p>So my question is how the inputs are send to the socket file ? in
which format ?</p>
<p>How the result return ? and in which format ?</p>
<p>Let us say I can create a python socket program that can listen
to /var/run/auth_proxy_dovecot/socket for getting the inputs from
dovecot , but what is the format <br>
</p>
<p>Is it like the following <br>
</p>
<p>AUTH PLAIN</p>
<p>USER <a class="moz-txt-link-abbreviated" href="mailto:test@myemail.com">test@myemail.com</a></p>
<p>PASS mypassword</p>
<p><br>
</p>
<p>I looked into the documentation and developer documentation, I
am unable to see how dovecot send the data , I can see a
sample perl for answering dict lookups. Any one have a python
alternative for it. ?</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-signature">-- <br>
<table width="351" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="vertical-align: top;
text-align:left;color:#000000;font-size:12px;font-family:helvetica,
arial;; text-align:left"> <b><span
style="color:#333333;font-size:15px;font-family:helvetica,
arial">Sherin Abdulkhareem</span></b><br>
<span
style="color:#000000;font-size:12px;font-family:helvetica,
arial">Chairman & Managing Director</span> <br>
<br>
<table style="margin:0 2px 2px 0" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<td style="padding-right:2px"><img
src="https://s1g.s3.amazonaws.com/c68ef84603f4bac6062a06016933942c.png"
alt="email" style="border:none" width="38"
height="38"></td>
<td><span style="font:12px helvetica, arial">Email <a
href="mailto:sherin@sherin.in"
style="color:#1b8f27;text-decoration:none">sherin@sherin.in</a></span></td>
</tr>
</tbody>
</table>
<table style="margin:0 2px 2px 0" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<td style="padding-right:2px"><img
src="https://s1g.s3.amazonaws.com/7d5d53dd0d5eb001a7733fbdd41b5f69.png"
alt="mobile" style="border:none" width="38"
height="38"></td>
<td><span style="font:12px helvetica, arial">Mobile <span
style="color:#000000">(+91)9496533234</span></span></td>
</tr>
</tbody>
</table>
<table style="margin:0 2px 2px 0" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<td style="padding-right:2px"><img
src="https://s1g.s3.amazonaws.com/82b331c02dc2d04a1ee912919812a3f5.png"
alt="office" style="border:none" width="38"
height="38"></td>
<td><span style="font:12px helvetica, arial">Office <span
style="color:#000000">(+91)4716007799</span></span></td>
</tr>
</tbody>
</table>
<br>
<b><span
style="color:#333333;font-size:15px;font-family:helvetica,
arial">Syslint Technologies India Private Limited</span></b><br>
First Floor,Asiatic Business Center<br>
Kazhakkootam, Trivandrum<br>
PIN-695582<br>
India <br>
<br>
<table cellpadding="0" border="0">
<tbody>
<tr>
<td style="padding-right:5px"><a
href="https://facebook.com/sherin.co.in"
style="display: inline-block"><img
src="https://s1g.s3.amazonaws.com/5b1d6222d7a0877f26bd0833c1775867.png"
alt="Facebook" style="border:none" width="38"
height="38"></a></td>
<td style="padding-right:5px"><a
href="https://linkedin.com/in/sherina"
style="display: inline-block"><img
src="https://s1g.s3.amazonaws.com/67b195bcdc417aa3108b1cfd596c0ce8.png"
alt="LinkedIn" style="border:none" width="38"
height="38"></a></td>
<td style="padding-right:5px"><a
href="https://plus.google.com/+sherinAbdulkhareem"
style="display: inline-block"><img
src="https://s1g.s3.amazonaws.com/ef41783c59cdf76121dce4f400235ae1.png"
alt="Google+" style="border:none" width="38"
height="38"></a></td>
</tr>
</tbody>
</table>
<a href="http://sherin.in"
style="text-decoration:none;color:#1b8f27">sherin.in</a><br>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>