<html><head></head><body><div class="ydp4bd028fayahoo-style-wrap" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><div></div>
<div dir="ltr" data-setdir="false">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></div><div dir="ltr" data-setdir="false">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" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><span>Error: Failed to expand plugin setting last_login_key = 'last-login/%u/%d/%r/%l/%k': Unknown variable '%k'</span><br></div><div dir="ltr" data-setdir="false"><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" data-setdir="false"><span>Error: Failed to expand plugin setting last_login_key = 'last-login/%u/%d/%r/%l/%m': Unknown variable '%m'</span><br></div></div><div><br></div><div dir="ltr" data-setdir="false">I using centos 8 and dovecot-2.3.13-2.x86_64, </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">thanks </div><div><br></div></div>
</div><div id="yahoo_quoted_4818710581" class="yahoo_quoted">
<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></div>
<div><br></div>
<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="yqt2276207475" id="yqtfd19506"><br clear="none">On 27 February 2021 7.29.10 EET, Henry <<a shape="rect" ymailto="mailto:hl1723@yahoo.com.hk" 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 shape="rect" href="https://doc.dovecot.org/configuration_manual/config_file/config_variables/" target="_blank">https://doc.dovecot.org/configuration_manual/config_file/config_variables/</a><br clear="none">> Henry (<<a shape="rect" ymailto="mailto:hl1723@yahoo.com.hk" 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 shape="rect" href="https://doc.dovecot.org/configuration_manual/config_file/config_variables/" target="_blank">https://doc.dovecot.org/configuration_manual/config_file/config_variables/</a><br clear="none">><br clear="none">>Aki Tuomi (<<a shape="rect" ymailto="mailto:aki.tuomi@open-xchange.com" 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 shape="rect" ymailto="mailto:hl1723@yahoo.com.hk" 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="yqt2276207475" id="yqtfd49615"><br clear="none"></div></div></div>
</div>
</div></body></html>