<html><head></head><body><div class="ydpa6d5215fyahoo-style-wrap" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><div style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"></div>
<div dir="ltr" data-setdir="false" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;">like capture local_port, I using %a will got below error</div><div dir="ltr" data-setdir="false" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><span><br></span></div><div dir="ltr" data-setdir="false" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><span>Error: Failed to expand plugin setting last_login_key = 'last-login/%u/%d/%r/%l/%a': Unknown variable '%a'</span><br></div><div style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><br></div><div dir="ltr" data-setdir="false" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><br></div><div dir="ltr" data-setdir="false" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;">If I using any of $local_port ,'<span><span style="color: rgb(0, 0, 0); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">$local_port', "<span><span style="color: rgb(0, 0, 0); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">$local_port", `<span><span style="color: rgb(0, 0, 0); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">$local_port`</span></span></span></span></span></span></div><div dir="ltr" data-setdir="false" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><span><span style="color: rgb(0, 0, 0); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"><span><span style="color: rgb(0, 0, 0); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"><span><span style="color: rgb(0, 0, 0); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;"><br></span></span></span></span></span></span></div><div dir="ltr" data-setdir="false" style="">I got the database update as <span style="color: rgb(0, 0, 0); font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;">$local_port ,'</span>$local_port', "$local_port", `$local_port` at the field column record.</div><div dir="ltr" data-setdir="false" style=""><br></div><div dir="ltr" data-setdir="false" style=""><br></div><div dir="ltr" data-setdir="false" style=""><br></div>
</div><div id="yahoo_quoted_4584889487" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
Henry (<hl1723@yahoo.com.hk>) 在 2021年2月27日星期六 下午10:57:27 [GMT+8] 寫道:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv1266740748"><div><div class="yiv1266740748ydp4bd028fayahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
<div dir="ltr">I already try using other <span><span style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;">variables , I found it only support "<span><span style="color:rgb(62, 67, 73);font-family:Roboto;font-size:17px;">Mail service user variables", no support "<span><span style="color:rgb(62, 67, 73);font-family:Roboto;font-size:17px;">Login variables" and "<span><span style="color:rgb(62, 67, 73);font-family:Roboto;font-size:17px;">Authentication variables"</span></span></span></span></span></span></span></span></div><div><br clear="none"></div><div dir="ltr">below the error when I try to using <span><span style="color:rgb(62, 67, 73);font-family:Roboto;font-size:17px;">"</span><span style="color:rgb(62, 67, 73);font-family:Roboto;font-size:17px;">Login variables" and "Authentication variables"</span></span></div><div dir="ltr"><br clear="none"></div><div dir="ltr"><span>Error: Failed to expand plugin setting last_login_key = 'last-login/%u/%d/%r/%l/%k': Unknown variable '%k'</span><br clear="none"></div><div dir="ltr"><div><div>Error: Failed to expand plugin setting last_login_key = 'last-login/%u/%d/%r/%l/%b': Unknown variable '%b'</div><div dir="ltr"><span>Error: Failed to expand plugin setting last_login_key = 'last-login/%u/%d/%r/%l/%m': Unknown variable '%m'</span><br clear="none"></div></div><div><br clear="none"></div><div dir="ltr">I using centos 8 and dovecot-2.3.13-2.x86_64, </div><div dir="ltr"><br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">thanks </div><div><br clear="none"></div></div>
</div><div class="yiv1266740748yahoo_quoted" id="yiv1266740748yahoo_quoted_4818710581">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
Aki Tuomi (<aki.tuomi@open-xchange.com>) 在 2021年2月27日星期六 下午07:32:38 [GMT+8] 寫道:
</div>
<div><br clear="none"></div>
<div><br clear="none"></div>
<div class="yiv1266740748yqt1078904970" id="yiv1266740748yqt83189"><div><div dir="ltr">last_login supports some of the variables. <br clear="none"><br clear="none"><br clear="none">Mail service and mail user variables are supported. <br clear="none"><br clear="none">You can try export the auth variables as userdb variables and use $variablename. <br clear="none"><br clear="none">Aki<br clear="none"><div class="yiv1266740748yqt2276207475" id="yiv1266740748yqtfd19506"><br clear="none">On 27 February 2021 7.29.10 EET, Henry <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:hl1723@yahoo.com.hk" target="_blank" href="mailto:hl1723@yahoo.com.hk">hl1723@yahoo.com.hk</a>> wrote:<br clear="none">> <br clear="none">>Anyone know then last_login plugins do support standard auth variables<br clear="none">>in var-expand?like %k %a variables.<br clear="none">>I need logging other fields such as port 143 or 993, and tls 1.1 or tls<br clear="none">>1.3, client hostname,<br clear="none">>any patch for this? thanks<br clear="none">><br clear="none">><a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://doc.dovecot.org/configuration_manual/config_file/config_variables/">https://doc.dovecot.org/configuration_manual/config_file/config_variables/</a><br clear="none">> Henry (<<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:hl1723@yahoo.com.hk" target="_blank" href="mailto:hl1723@yahoo.com.hk">hl1723@yahoo.com.hk</a>>) 在 2021年2月19日星期五 下午12:15:10 [GMT+8] 寫道: <br clear="none">> <br clear="none">>but I need logging other fields such as port 143 or 993, and tls 1.1 or<br clear="none">>tls 1.3, client hostname, what should I do it ?<br clear="none">><a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://doc.dovecot.org/configuration_manual/config_file/config_variables/">https://doc.dovecot.org/configuration_manual/config_file/config_variables/</a><br clear="none">><br clear="none">>Aki Tuomi (<<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:aki.tuomi@open-xchange.com" target="_blank" href="mailto:aki.tuomi@open-xchange.com">aki.tuomi@open-xchange.com</a>>) 在 2021年2月18日星期四 下午03:04:10<br clear="none">>[GMT+8] 寫道: <br clear="none">> <br clear="none">> <br clear="none">>> On 18/02/2021 08:57 Henry <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:hl1723@yahoo.com.hk" target="_blank" href="mailto:hl1723@yahoo.com.hk">hl1723@yahoo.com.hk</a>> wrote:<br clear="none">>> <br clear="none">>> <br clear="none">>> <br clear="none">>> <br clear="none">>> Anyone kwon the last-login plugins can using Authentication variables<br clear="none">>such as %m mechanism, %a local_port .<br clear="none">>> we want to record this in DB, thanks<br clear="none">><br clear="none">>You can use this syntax to add further fields for last_login plugin.<br clear="none">><br clear="none">> map {<br clear="none">> pattern = shared/last-login/$user/$domain<br clear="none">> table = last_login<br clear="none">> value_field = last_login<br clear="none">> value_type = uint<br clear="none">><br clear="none">> fields {<br clear="none">> username = $user<br clear="none">> domain = $domain<br clear="none">> rip = $rip<br clear="none">> }<br clear="none">>} <br clear="none">><br clear="none">>Aki</div><br clear="none">> <br clear="none"><br clear="none">-- <br clear="none">Sent from my Android device with K-9 Mail. Please excuse my brevity.<div class="yiv1266740748yqt2276207475" id="yiv1266740748yqtfd49615"><br clear="none"></div></div></div></div>
</div>
</div></div></div></div>
</div>
</div></body></html>