<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 10, 2020 at 12:08 PM David Morsberger <<a href="mailto:david@mmpcrofton.com">david@mmpcrofton.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">I wish someone could help me. I’m trying to track auth in the lmtp code. Nice code base but I’m having trouble tracking the call stack for the error <br>
<br>
Sent from my iPhone<br>
<br>
> On Oct 9, 2020, at 08:00, David Morsberger <<a href="mailto:david@mmpcrofton.com" target="_blank">david@mmpcrofton.com</a>> wrote:<br>
> <br>
> Alexander,<br>
> <br>
> Do you see anything wrong in my config?<br>
> <br>
> David <br>
> <br>
> Sent from my iPhone<br>
> <br>
>> On Oct 7, 2020, at 18:19, David Morsberger <<a href="mailto:david@mmpcrofton.com" target="_blank">david@mmpcrofton.com</a>> wrote:<br>
>> On 2020-10-07 12:43, Alexander Dalloz wrote:<br>
>>>>> Am 07.10.2020 um 18:20 schrieb <a href="mailto:david@mmpcrofton.com" target="_blank">david@mmpcrofton.com</a>:<br>
>>>>> Any ideas on how to resolve the Userdb connect/lookup problem? My users are pinging me on Sieve support.<br>
>>>>> Thanks,<br>
>>>>> David<br>
>>> Provide a full output of "doveconf -n"?<br>
>>> Alexander<br>
>> Alexandar,<br>
>> Thanks and here you go.<br>
>> # 2.3.7.2 (3c910f64b): /etc/dovecot/dovecot.conf<br>
>> # Pigeonhole version 0.5.7.2 ()<br>
>> # OS: Linux 5.4.0-48-generic x86_64 Ubuntu 20.04.1 LTS<br>
>> # Hostname: <a href="http://mmp-mail.mmpcrofton.com" rel="noreferrer" target="_blank">mmp-mail.mmpcrofton.com</a><br>
>> base_dir = /var/run/dovecot/<br>
>> first_valid_uid = 150<br>
>> login_greeting = Dovecot ready.<br>
>> mail_gid = 150<br>
>> mail_location = mbox:~/mail:INBOX=/var/mail/%u<br>
>> mail_privileged_group = mail<br>
>> mail_uid = 150<br>
>> managesieve_notify_capability = mailto<br>
>> managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext<br>
>> namespace inbox {<br>
>> inbox = yes<br>
>> location =<br>
>> mailbox Drafts {<br>
>> auto = subscribe<br>
>> special_use = \Drafts<br>
>> }<br>
>> mailbox Junk {<br>
>> auto = subscribe<br>
>> special_use = \Junk<br>
>> }<br>
>> mailbox Sent {<br>
>> auto = subscribe<br>
>> special_use = \Sent<br>
>> }<br>
>> mailbox "Sent Messages" {<br>
>> auto = no<br>
>> special_use = \Sent<br>
>> }<br>
>> mailbox Spam {<br>
>> auto = create<br>
>> special_use = \Junk<br>
>> }<br>
>> mailbox Trash {<br>
>> auto = subscribe<br>
>> special_use = \Trash<br>
>> }<br>
>> prefix =<br>
>> }<br>
>> passdb {<br>
>> args = /etc/dovecot/dovecot-sql.conf.ext<br>
>> driver = sql<br>
>> }<br>
>> plugin {<br>
>> sieve = file:/home/mail/rules/%u/;active=/home/mail/rules/%u/.dovecot.sieve<br>
>> sieve_dir = /home/mail/rules/%u<br>
>> }<br>
>> protocols = " imap lmtp sieve pop3 sieve"<br>
>> service auth {<br>
>> unix_listener /var/spool/postfix/private/auth {<br>
>> group = postfix<br>
>> mode = 0660<br>
>> user = postfix<br>
>> }<br>
>> }<br>
>> service lmtp {<br>
>> unix_listener /var/spool/postfix/private/dovecot-lmtp {<br>
>> group = postfix<br>
>> mode = 0600<br>
>> user = postfix<br>
>> }<br>
>> }<br>
>> ssl = required<br>
>> ssl_cert = </etc/letsencrypt/live/<a href="http://imap.mmpcrofton.com/fullchain.pem" rel="noreferrer" target="_blank">imap.mmpcrofton.com/fullchain.pem</a><br>
>> ssl_client_ca_dir = /etc/ssl/certs<br>
>> ssl_dh = # hidden, use -P to show it<br>
>> ssl_key = # hidden, use -P to show it<br>
>> userdb {<br>
>> driver = prefetch<br>
>> }<br>
>> userdb {<br>
>> args = /etc/dovecot/dovecot-sql.conf.ext<br>
>> driver = sql<br>
>> }<br>
>> protocol lmtp {<br>
>> mail_plugins = " sieve"<br>
>> postmaster_address = <a href="mailto:david@mmpcrofton.com" target="_blank">david@mmpcrofton.com</a><br>
>> }<br>
>> protocol imap {<br>
>> mail_max_userip_connections = 50<br>
>> }<br></blockquote><div><br></div><div><br></div><div>Pretty sure you can set up multiple unix_listener's. What about creating another one, inside the 'service auth' container? It'll need to have unix_listener set to 'auth-userdb' (for dovecot's sake, which probably means that you'll to leave it with default user/group/permissions) with a 'path' of /var/run/dovecot. And then rename the existing one to auth-userdb-postfix (totally arbitrary), though note that that will change the filename of the socket itself, so you'll need to change postfix to use <span style="color:rgb(0,0,0);font-family:Menlo;font-size:11px">/var/spool/postfix/private/</span><span style="color:rgb(0,0,0);font-family:Menlo;font-size:11px">auth/auth-userdb-postfix (i.e. same last component as the argument to 'unix_listener')</span></div><div><span style="color:rgb(0,0,0);font-family:Menlo;font-size:11px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Menlo;font-size:11px">So you'd end up with something like:</span></div><div><span style="color:rgb(0,0,0);font-family:Menlo;font-size:11px"><br></span></div><div><div style="color:rgb(0,0,0);font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">service auth {</span></div><div style="font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal;color:rgb(50,244,241)"><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,0,0)">unix_listener auth-userdb {</span></div><div style="color:rgb(0,0,0);margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">    path = /var/run/dovecot</span></div><div style="color:rgb(0,0,0);margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">    mode = 0660 (or whatever the default is)</span></div><div style="color:rgb(0,0,0);margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">    user = $dovecot_auth_user_dunno_what</span></div><div style="color:rgb(0,0,0);margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">    group = $dovecot_auth_group_dunno_what</span></div><div style="margin:0px;font-stretch:normal;line-height:normal"><span style="color:rgb(0,0,0)">  </span><span style="color:rgb(0,0,0)">}</span></div></div><div style="font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal;color:rgb(50,244,241)"><span style="color:rgb(0,0,0)">  </span><span style="color:rgb(0,0,0)">unix_listener auth-userdb-postfix {</span></div><div style="color:rgb(0,0,0);font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">    path = /var/spool/postfix/private/auth</span></div><div style="color:rgb(0,0,0);font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">    mode = 0660</span></div><div style="color:rgb(0,0,0);font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">    user = postfix</span></div><div style="color:rgb(0,0,0);font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">    group = postfix</span></div><div style="font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal;color:rgb(50,244,241)"><span style="color:rgb(0,0,0)">  </span><span style="color:rgb(0,0,0)">}</span></div><div style="color:rgb(0,0,0);font-family:Menlo;font-size:11px"><span style="font-variant-ligatures:no-common-ligatures">}</span></div></div><div style="color:rgb(0,0,0);font-family:Menlo;font-size:11px"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="color:rgb(0,0,0);font-family:Menlo;font-size:11px"><span style="font-variant-ligatures:no-common-ligatures">And then postfix would have </span>/var/spool/postfix/private/auth/auth-userdb-postfix for its dovecot-related socket</div></div></div></div></div></div></div>